-
Notifications
You must be signed in to change notification settings - Fork 917
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
[navigation]fix: redirect user to home in global when workspace is enabled #7551
Conversation
Signed-off-by: SuZhou-Joe <[email protected]>
Signed-off-by: SuZhou-Joe <[email protected]>
Signed-off-by: SuZhou-Joe <[email protected]>
c90f169
to
d43fdac
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #7551 +/- ##
=======================================
Coverage 63.64% 63.64%
=======================================
Files 3629 3630 +1
Lines 79522 79535 +13
Branches 12604 12608 +4
=======================================
+ Hits 50611 50620 +9
- Misses 25842 25844 +2
- Partials 3069 3071 +2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Signed-off-by: SuZhou-Joe <[email protected]>
import { DEFAULT_NAV_GROUPS } from '../../../core/public'; | ||
|
||
describe('<DevToolsIcon />', () => { | ||
it('should call some methods from core service when click', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: better to elaborate what's the some methods
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, updated.
src/core/public/chrome/ui/header/collapsible_nav_group_enabled_top.tsx
Outdated
Show resolved
Hide resolved
Signed-off-by: SuZhou-Joe <[email protected]>
Signed-off-by: SuZhou-Joe <[email protected]>
…abled (#7551) * feat: redirect user to home when in global Signed-off-by: SuZhou-Joe <[email protected]> * Changeset file for PR #7551 created/updated * Changeset file for PR #7551 created/updated * feat: add some comment Signed-off-by: SuZhou-Joe <[email protected]> * feat: remove useless change Signed-off-by: SuZhou-Joe <[email protected]> * feat: optimize comment Signed-off-by: SuZhou-Joe <[email protected]> * feat: optimize description and variable naming Signed-off-by: SuZhou-Joe <[email protected]> * feat: update Signed-off-by: SuZhou-Joe <[email protected]> --------- Signed-off-by: SuZhou-Joe <[email protected]> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com> Co-authored-by: Anan Zhuang <[email protected]> (cherry picked from commit 96936f3) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…abled (#7551) * feat: redirect user to home when in global Signed-off-by: SuZhou-Joe <[email protected]> * Changeset file for PR #7551 created/updated * Changeset file for PR #7551 created/updated * feat: add some comment Signed-off-by: SuZhou-Joe <[email protected]> * feat: remove useless change Signed-off-by: SuZhou-Joe <[email protected]> * feat: optimize comment Signed-off-by: SuZhou-Joe <[email protected]> * feat: optimize description and variable naming Signed-off-by: SuZhou-Joe <[email protected]> * feat: update Signed-off-by: SuZhou-Joe <[email protected]> --------- Signed-off-by: SuZhou-Joe <[email protected]> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com> Co-authored-by: Anan Zhuang <[email protected]> (cherry picked from commit 96936f3) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…abled (#7551) (#7572) * feat: redirect user to home when in global * Changeset file for PR #7551 created/updated * Changeset file for PR #7551 created/updated * feat: add some comment * feat: remove useless change * feat: optimize comment * feat: optimize description and variable naming * feat: update --------- (cherry picked from commit 96936f3) Signed-off-by: SuZhou-Joe <[email protected]> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com> Co-authored-by: Anan Zhuang <[email protected]>
…abled (opensearch-project#7551) * feat: redirect user to home when in global Signed-off-by: SuZhou-Joe <[email protected]> * Changeset file for PR opensearch-project#7551 created/updated * Changeset file for PR opensearch-project#7551 created/updated * feat: add some comment Signed-off-by: SuZhou-Joe <[email protected]> * feat: remove useless change Signed-off-by: SuZhou-Joe <[email protected]> * feat: optimize comment Signed-off-by: SuZhou-Joe <[email protected]> * feat: optimize description and variable naming Signed-off-by: SuZhou-Joe <[email protected]> * feat: update Signed-off-by: SuZhou-Joe <[email protected]> --------- Signed-off-by: SuZhou-Joe <[email protected]> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com> Co-authored-by: Anan Zhuang <[email protected]>
Description
When workspace is enabled, users are not supposed to create any objects in global, thus the new left navigation need to redirect users to home, and in home, user won't be able to expand the left navigation.
back
tohome
when user is in settings and setup / data administration nav groups.Issues Resolved
Screenshot
Before fix
Before the fix, you can see users is able to go into all use case and create objects in global.
20240729183432978.mp4
After fix
User will be redirect to home.
20240729183633650.mp4
Testing the changes
Changelog
Check List
yarn test:jest
yarn test:jest_integration