-
Notifications
You must be signed in to change notification settings - Fork 916
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
[Workspace] Register a workspace dropdown menu at the top of left nav bar #6150
[Workspace] Register a workspace dropdown menu at the top of left nav bar #6150
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #6150 +/- ##
==========================================
+ Coverage 67.31% 67.33% +0.02%
==========================================
Files 3350 3351 +1
Lines 64993 65037 +44
Branches 10468 10474 +6
==========================================
+ Hits 43750 43793 +43
- Misses 18695 18697 +2
+ Partials 2548 2547 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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.
LGTM
@@ -74,6 +74,7 @@ function createCoreSetupMock({ | |||
} = {}) { | |||
const mock = { | |||
application: applicationServiceMock.createSetupContract(), | |||
chrome: chromeServiceMock.createSetupContract(), |
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.
So nice to have this in core mock, have encountered type error in some test cases
src/plugins/workspace/public/components/workspace_menu/workspace_menu.tsx
Outdated
Show resolved
Hide resolved
src/plugins/workspace/public/components/workspace_menu/workspace_menu.tsx
Show resolved
Hide resolved
When workspace is enabled, the workspace plugin will register a workspace dropdown menu via `chrome.registerCollapsibleNavHeader` which displays a list of workspaces, links to create workspace page and workspace list page. Signed-off-by: Yulong Ruan <[email protected]>
Signed-off-by: Yulong Ruan <[email protected]>
Signed-off-by: Yulong Ruan <[email protected]>
Signed-off-by: Yulong Ruan <[email protected]>
Signed-off-by: Yulong Ruan <[email protected]>
8b8d7c7
to
862ae3b
Compare
src/plugins/workspace/public/components/workspace_menu/workspace_menu.tsx
Show resolved
Hide resolved
Thanks for the change, overall looks good to me. |
The backport to
To backport manually, run these commands in your terminal: # Navigate to the root of your repository
cd $(git rev-parse --show-toplevel)
# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add ../.worktrees/OpenSearch-Dashboards/backport-2.x 2.x
# Navigate to the new working tree
pushd ../.worktrees/OpenSearch-Dashboards/backport-2.x
# Create a new branch
git switch --create backport/backport-6150-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 a2ed39f76c75bec843243ff85113485984102dbc
# Push it to GitHub
git push --set-upstream origin backport/backport-6150-to-2.x
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/OpenSearch-Dashboards/backport-2.x Then, create a pull request where the |
… bar (opensearch-project#6150) When workspace is enabled, the workspace plugin will register a workspace dropdown menu via `chrome.registerCollapsibleNavHeader` which displays a list of workspaces, links to create workspace page and workspace list page. --------- Signed-off-by: Yulong Ruan <[email protected]>
… bar (#6150) (#6505) When workspace is enabled, the workspace plugin will register a workspace dropdown menu via `chrome.registerCollapsibleNavHeader` which displays a list of workspaces, links to create workspace page and workspace list page. --------- Signed-off-by: Yulong Ruan <[email protected]>
Description
When workspace is enabled, the workspace plugin will register a workspace dropdown menu via
chrome.registerCollapsibleNavHeader
which displays a list of workspaces, links to create workspace page and workspace list page.NOT IN THE SCOPE OF THIS PR
Issues Resolved
#6149
Screenshot
workspace.dropdown.mov
Testing the changes
Update OSD config with
workspace.enabled: true
, and you will see the workspace dropdown menu on the top of the left nav bar.Check List
yarn test:jest
yarn test:jest_integration