-
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
[Viz Builder] State validation before dispatching and loading #2351
[Viz Builder] State validation before dispatching and loading #2351
Conversation
Codecov Report
@@ Coverage Diff @@
## main #2351 +/- ##
==========================================
- Coverage 66.74% 66.73% -0.01%
==========================================
Files 3194 3195 +1
Lines 60803 60818 +15
Branches 9238 9241 +3
==========================================
+ Hits 40583 40588 +5
- Misses 18011 18021 +10
Partials 2209 2209
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/wizard_state_validation.ts
Outdated
Show resolved
Hide resolved
src/plugins/wizard/public/application/utils/wizard_state_validation.ts
Outdated
Show resolved
Hide resolved
src/plugins/wizard/public/application/utils/use/use_saved_wizard_vis.ts
Outdated
Show resolved
Hide resolved
5bd163c
to
f0163e3
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.
thanks for the changes, this looks good :)
src/plugins/wizard/public/application/utils/wizard_state_validation.ts
Outdated
Show resolved
Hide resolved
src/plugins/wizard/public/application/utils/wizard_state_validation.ts
Outdated
Show resolved
Hide resolved
src/plugins/wizard/public/application/utils/wizard_state_validation.ts
Outdated
Show resolved
Hide resolved
src/plugins/wizard/public/application/utils/wizard_state_validation.ts
Outdated
Show resolved
Hide resolved
f0163e3
to
3e66361
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.
Sorry i missed a few points in the initial review.
src/plugins/wizard/public/application/utils/wizard_state_validation.test.ts
Show resolved
Hide resolved
src/plugins/wizard/public/application/utils/wizard_state_validation.ts
Outdated
Show resolved
Hide resolved
version "1.0.5" | ||
resolved "https://registry.yarnpkg.com/@amoo-miki/vega-forced-csp-compliant-interpreter/-/vega-forced-csp-compliant-interpreter-1.0.5.tgz#49970be9b00ca7e45ced0617fbf373c77a28aab4" | ||
integrity sha512-lfeU77lVoUbSCC6N1ywdKg+I6K08xpkd82TLon+LebtKyC8aLCe7P5Dd/89zAPyFwRyobKftHu8z0xpV7R7a4Q== | ||
"vega-interpreter@npm:@amoo-miki/[email protected]": |
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.
@AMoo-Miki is this ok?
3e66361
to
5faff3b
Compare
Validate style and visualization state schema before dispatching state updates when loading wizard. Show error via toast. Signed-off-by: abbyhu2000 <[email protected]>
Signed-off-by: abbyhu2000 <[email protected]>
Signed-off-by: abbyhu2000 <[email protected]>
5faff3b
to
5668bad
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.
Nice! Ship-it 🚢
* State validation before dispatching Validate style and visualization state schema before dispatching state updates when loading wizard. Show error via toast. Signed-off-by: abbyhu2000 <[email protected]> * Fixes and add unit tests Signed-off-by: abbyhu2000 <[email protected]> * Add PR to changelog.md Signed-off-by: abbyhu2000 <[email protected]> Signed-off-by: abbyhu2000 <[email protected]> (cherry picked from commit 0279588)
* State validation before dispatching Validate style and visualization state schema before dispatching state updates when loading wizard. Show error via toast. Signed-off-by: abbyhu2000 <[email protected]> * Fixes and add unit tests Signed-off-by: abbyhu2000 <[email protected]> * Add PR to changelog.md Signed-off-by: abbyhu2000 <[email protected]> Signed-off-by: abbyhu2000 <[email protected]> (cherry picked from commit 0279588)
…#2449) * State validation before dispatching * Validate style and visualization state schema before dispatching state updates when loading wizard. Show error via toast. * Fixes and add unit tests * Add PR to changelog.md Signed-off-by: abbyhu2000 <[email protected]> (cherry picked from commit 0279588) Co-authored-by: Qingyang(Abby) Hu <[email protected]>
…arch-project#2351) * State validation before dispatching Validate style and visualization state schema before dispatching state updates when loading wizard. Show error via toast. Signed-off-by: abbyhu2000 <[email protected]> * Fixes and add unit tests Signed-off-by: abbyhu2000 <[email protected]> * Add PR to changelog.md Signed-off-by: abbyhu2000 <[email protected]> Signed-off-by: abbyhu2000 <[email protected]> Signed-off-by: Sergey V. Osipov <[email protected]>
Description
Validate style and visualization state schema before dispatching state updates when loading wizard. Error messages are shown via toast.
Signed-off-by: abbyhu2000 [email protected]
Issues Resolved
resolves #1882
Check List
yarn test:jest
yarn test:jest_integration
yarn test:ftr