[VizBuilder] Create a new wizard directly on a dashboard#2384
[VizBuilder] Create a new wizard directly on a dashboard#2384abbyhu2000 merged 4 commits intoopensearch-project:mainfrom
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. |
099eb50 to
4329340
Compare
888a689 to
2de1e1f
Compare
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
joshuarrrr
left a comment
There was a problem hiding this comment.
Looks great, thanks for cleaning up the existing implementation and adding some nice unit tests. A few minor questions and suggestions, but nothing blocking.
| 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.
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.
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.xThen, 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:jestyarn test:jest_integrationyarn test:ftr