Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save data in the UI per Hypervisor PK #1329

Merged
merged 2 commits into from
Aug 9, 2022
Merged

Save data in the UI per Hypervisor PK #1329

merged 2 commits into from
Aug 9, 2022

Conversation

Senyoret1
Copy link
Contributor

Did you run make format && make check?
The go code was not changed. npm run lint and npm run build were used.

Changes:

  • As requested some time ago, now the UI saves the data associated with the hypervisor PK. This means that the data saved by the user while connected to a hypervisor will not appear when connection to another hypervisor.

This prevents problems when testing with different hypervisor PKs in the same machine and any situation in which the hypervisor PK is changed but the URL stays the same.

How to test this PR:
Open the Skywire manager and VPN UI in the browser and make some changes (like adding labels to a transport or selecting a VPN server). After that, change the hypervisor PK but not the URL (you can create a new config file for the hypervisor just for the test).

Using the previous version, the UI shows for the second hypervisor the same data saved for the first hypervisor (same custom labels and same selected VPN server), as the data is saved only associated with the URL used for accessing the UI. With the changes on this PR, the data saved for the first hypervisor will not be available for the second one, as the data is saved assiciated with the URL and also with the PK of the hypervisor. If you return to the first hypervisor PK, its data is available again.

NOTE: the first time you open the UI with the changes on this PR, all old data is migrated to the new format and associated with the PK of the hypervisor you are using at that time.

@0pcom 0pcom added the v1.1.0 label Aug 2, 2022
@jdknives jdknives merged commit cf85db9 into skycoin:develop Aug 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants