-
Notifications
You must be signed in to change notification settings - Fork 279
[OLD] frontend: PluginSettings: Refactor local storage and plugin data #2671
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
Conversation
005cabd
to
d2f8668
Compare
Last push adds backwards comp so that all settings wont be set to off or on |
I have tried to keep the changes as small as possible to accomplish everything it needs to, I am not using the map object to save information anymore, although to hit these targets I still had to use most of what I had reworked previously for this PR the targets it needs to hit were:
The plugin data comes from the backend, reused the same method of reaching it from the previous rework
The data is now trimmed down to just being the name and isEnabled, it is now being used the same way as the original settings where this local saved item is how new app start ups save plugin settings
The local storage handling logic checks for the old format and changes it to the new format |
d2f8668
to
56e912f
Compare
56e912f
to
c150408
Compare
Some things to do to avoid duplicating of logic:
|
c150408
to
83f279e
Compare
83f279e
to
98c1b58
Compare
98c1b58
to
6cea967
Compare
b39d2a4
to
93ed4b0
Compare
93ed4b0
to
47dfb30
Compare
pushing rebase of current main |
note: that last disabled e2e needs to be redone in a later PR as it is out dated with the changes made to two different branches, this branch and the plugins name change branch, this is in my stack for playwright changes I will be working on later |
f7991dc
to
f7d5e24
Compare
@vyncent-t It seems there’s conflicts now. Can you please fix them? Also, can you please check if the PR description is up to date? I see a lot of changes since the last PR description edit, so I guess if needs updating. |
f7d5e24
to
77e1d63
Compare
944d4bc
to
e4e4515
Compare
2b038b1
to
2b8da16
Compare
This PR reduces the size of plugin information saved in local storage, it also introduces the getPlugins hook for fetching plugin information. Signed-off-by: Vincent T <[email protected]>
18c9206
to
3dc54a8
Compare
since we now use a multi cluster structure to run our tests, the cluster navigation step must be its own full nav step, different from navigateToPage, if it is tied to an auth step. Signed-off-by: Vincent T <[email protected]>
3dc54a8
to
a210f61
Compare
Unknown CLA label state. Rechecking for CLA labels. Send feedback to sig-contributor-experience at kubernetes/community. /check-cla |
|
Closing because new PR is here: #3123 |
Fixes Issue #2595
Description
name
andisEnabled
status in local storage. This ensures plugin settings persist when closing and reopening the app.usePlugins
hook intolib/k8s/api/v2
Changes
name
andisEnabled
) in local storage.How to Test
headlampPluginSettings
headlampPluginSettings
name
andisEnabled
) are fetched from the backend and displayed correctly in the UI.Notes