-
Notifications
You must be signed in to change notification settings - Fork 919
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
[Multiple Datasource] Pass data source menu to top nav via function instead of using component #6594
Conversation
Signed-off-by: Lu Yu <nluyu@amazon.com>
Signed-off-by: Lu Yu <nluyu@amazon.com>
❌ Empty Changelog SectionThe Changelog section in your PR description is empty. Please add a valid changelog entry or entries. If you did add a changelog entry, check to make sure that it was not accidentally included inside the comment block in the Changelog section. |
); | ||
spyOn(utils, 'getApplication').and.returnValue({ id: 'test2' }); | ||
spyOn(utils, 'getUiSettings').and.returnValue(uiSettings); | ||
spyOn(utils, 'getHideLocalCluster').and.returnValue({ enabled: true }); |
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.
should we set this to enabled: false
based on the test case description?
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.
@zhongnansu This test itself needs to be fixed since it doesn't change disregards of local cluster is set since it doesn't check the options from popover. We can cut another meta issue for all the tests that we are missing testing, or do you think this needs to block the change?
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.
@BionIT agreed that we should fix the text, this is non blocking issue
I think in this PR, the test was modified to remove the check for local cluster existence
https://github.com/opensearch-project/OpenSearch-Dashboards/pull/6358/files#diff-ff98db435bf1f4c1bfe7ea1869b5d25b7e731148ce6060333bf37b0dee33219fL78
…nstead of using component (#6594) * change top nav to use interface to render data source menu Signed-off-by: Lu Yu <nluyu@amazon.com> * change value Signed-off-by: Lu Yu <nluyu@amazon.com> --------- Signed-off-by: Lu Yu <nluyu@amazon.com> (cherry picked from commit b7b27aa) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…nstead of using component (#6594) (#6601) * change top nav to use interface to render data source menu * change value --------- (cherry picked from commit b7b27aa) Signed-off-by: Lu Yu <nluyu@amazon.com> 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>
…nstead of using component (opensearch-project#6594) * change top nav to use interface to render data source menu Signed-off-by: Lu Yu <nluyu@amazon.com> * change value Signed-off-by: Lu Yu <nluyu@amazon.com> --------- Signed-off-by: Lu Yu <nluyu@amazon.com>
Description
In this change, we changed to pass data source menu to top nav via function instead of using the component, this way we avoid coupling the plugin level props into the top nav menu component
Issues Resolved
Screenshot
topnavmount.mp4
Testing the changes
The following steps were performed in the recording:
Screenshot when hide local cluster is true:
Screenshot when hide local cluster is false:
Changelog
Check List
yarn test:jest
yarn test:jest_integration