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

Convert Hide Alert Checks from localStorage to user settings #7282

Merged

Conversation

rottencandy
Copy link
Contributor

@rottencandy rottencandy commented Nov 20, 2020

Story:
https://issues.redhat.com/browse/ODC-5106

Description:
Use useUserSettings hook to store the local storage data into a config map.

Browser conformance:

  • Chrome
  • Firefox
  • Safari
  • Edge

@rottencandy rottencandy force-pushed the healthcheck-usersettings branch 2 times, most recently from 07e7f7a to ce3e025 Compare November 24, 2020 10:38
@rottencandy rottencandy force-pushed the healthcheck-usersettings branch 2 times, most recently from 7b4062a to f06d66e Compare November 25, 2020 16:43
@@ -30,6 +30,8 @@ export const UNASSIGNED_APPLICATIONS_KEY = '#UNASSIGNED_APP#';
// Prefix our localStorage items to avoid conflicts if another app ever runs on the same domain.
export const STORAGE_PREFIX = 'bridge';

export const CONFIGMAP_PREFIX = 'console';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rottencandy @invincibleJai Can / should we call this USERSETTINGS_PREFIX ? 😄

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated.

});
[settings, callback] = useUserSettings('devconsole.topology.key', 'list');
expect(callback).toBeDefined();
});
Copy link
Member

@jerolimov jerolimov Nov 25, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New tests looks easier 👍

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is part of Sahil's PR

@openshift-ci-robot openshift-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Nov 26, 2020
@openshift-ci-robot openshift-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Nov 26, 2020
@invincibleJai
Copy link
Member

/lgtm

Verified the changes , works as expected

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Nov 26, 2020
@rottencandy
Copy link
Contributor Author

/assign @christianvogt

@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: andrewballantyne, invincibleJai, rottencandy

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 27, 2020
@openshift-merge-robot openshift-merge-robot merged commit 5a29f72 into openshift:master Nov 27, 2020
@spadgett spadgett added this to the v4.7 milestone Nov 30, 2020
@rottencandy rottencandy deleted the healthcheck-usersettings branch December 7, 2020 14:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. component/shared Related to console-shared lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants