-
Notifications
You must be signed in to change notification settings - Fork 892
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
[VizBuilder] Create a new wizard directly on a dashboard #2384
[VizBuilder] Create a new wizard directly on a dashboard #2384
Conversation
2538d9d
to
e61d0ff
Compare
Codecov Report
@@ Coverage Diff @@
## main #2384 +/- ##
==========================================
+ Coverage 66.75% 66.78% +0.03%
==========================================
Files 3200 3201 +1
Lines 60886 60914 +28
Branches 9250 9254 +4
==========================================
+ Hits 40644 40682 +38
+ Misses 18030 18019 -11
- Partials 2212 2213 +1
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
src/plugins/wizard/public/application/utils/get_top_nav_config.tsx
Outdated
Show resolved
Hide resolved
src/plugins/wizard/public/application/utils/get_top_nav_config.tsx
Outdated
Show resolved
Hide resolved
099eb50
to
4329340
Compare
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.
partial review
888a689
to
2de1e1f
Compare
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.
Ship it 🚢
src/plugins/wizard/public/application/utils/get_top_nav_config.tsx
Outdated
Show resolved
Hide resolved
2de1e1f
to
d5edab2
Compare
After selecting a dashboard, create a new wizard directly from the dashboard and have the option to add to that dashboard. Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com>
Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com>
Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com>
0f900b3
to
baaa10b
Compare
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
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.
Looks great, thanks for cleaning up the existing implementation and adding some nice unit tests. A few minor questions and suggestions, but nothing blocking.
src/plugins/wizard/public/application/utils/get_top_nav_config.tsx
Outdated
Show resolved
Hide resolved
src/plugins/wizard/public/application/utils/get_top_nav_config.tsx
Outdated
Show resolved
Hide resolved
savedWizardVis = { | ||
id: '1', | ||
title: 'save wizard wiz title', | ||
description: '', | ||
visualizationState: '', | ||
styleState: '', | ||
version: 0, | ||
copyOnSave: true, | ||
searchSourceFields: {}, | ||
save: jest.fn().mockReturnValue('1'), | ||
}; |
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.
I wonder if there's some existing way to automock saved objects from their definitions... this definitely works, but seems like something you shouldn't really have to do.
src/plugins/wizard/public/application/utils/get_top_nav_config.test.tsx
Outdated
Show resolved
Hide resolved
Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com>
baaa10b
to
dfd7809
Compare
The backport to
To backport manually, run these commands in your terminal: # Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-2.x 2.x
# Navigate to the new working tree
cd .worktrees/backport-2.x
# Create a new branch
git switch --create backport/backport-2384-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 b75e07dd45d4d6b189fbd177ee5bad60a1d08505
# Push it to GitHub
git push --set-upstream origin backport/backport-2384-to-2.x
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-2.x Then, create a pull request where the |
…project#2384) * Create a new wizard directly on a dashboard After selecting a dashboard, create a new wizard directly from the dashboard and have the option to add to that dashboard. Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com> * hook change to solve browser warning Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com> * Move onsave out from getTopNavConfig function and added unit tests Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com> * Add changelog Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com> Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com> (cherry picked from commit b75e07d)
…project#2384) * Create a new wizard directly on a dashboard After selecting a dashboard, create a new wizard directly from the dashboard and have the option to add to that dashboard. Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com> * hook change to solve browser warning Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com> * Move onsave out from getTopNavConfig function and added unit tests Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com> * Add changelog Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com> Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com>
…project#2384) * Create a new wizard directly on a dashboard After selecting a dashboard, create a new wizard directly from the dashboard and have the option to add to that dashboard. Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com> * hook change to solve browser warning Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com> * Move onsave out from getTopNavConfig function and added unit tests Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com> * Add changelog Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com> Signed-off-by: abbyhu2000 <abigailhu2000@gmail.com> Signed-off-by: Sergey V. Osipov <sipopo@yandex.ru>
Description
After selecting a dashboard, create a new wizard directly from the dashboard and have the option to add to that dashboard.
Signed-off-by: abbyhu2000 abigailhu2000@gmail.com
Issues Resolved
resolves #2381
Check List
yarn test:jest
yarn test:jest_integration
yarn test:ftr