-
Notifications
You must be signed in to change notification settings - Fork 915
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
fix(vis_type_vega): Use default categorical color palette directly #3663
fix(vis_type_vega): Use default categorical color palette directly #3663
Conversation
rather than relying on vega.scheme. Also update vega.scheme name Fixes opensearch-project#3582 Signed-off-by: Josh Romero <[email protected]>
Codecov Report
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more @@ Coverage Diff @@
## main #3663 +/- ##
=======================================
Coverage 66.45% 66.45%
=======================================
Files 3208 3208
Lines 61593 61593
Branches 9502 9502
=======================================
Hits 40932 40932
Misses 18384 18384
Partials 2277 2277
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
@joshuarrrr I think this is missing a changelog entry? |
@abbyhu2000 Yeah, it also needs a regression test case. |
I looked more deeply into this, and I can't really figure out what the root cause is. It appears this is a regression caused by bumping vega from 5.22.1 to 5.22.3: #3533 But none of the changes really jump out at me as a possible cause: https://github.com/vega/vega/releases/tag/v5.23.0 Using a reference to the Given the above I'm not sure a regression test is particularly helpful in this case. While using the |
Changelog isn't necessary, as this is a minor re-implementation to fix an unreleased regression. |
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 think the change seems to be beneficial for improved accessibility and error resolution. If the assessment is correct, the risks should be minimal. I also see tests been added which is good.
…3663) rather than relying on vega.scheme. Also update vega.scheme name Fixes #3582 Signed-off-by: Josh Romero <[email protected]> (cherry picked from commit e194bc5) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…3663) rather than relying on vega.scheme. Also update vega.scheme name Fixes #3582 Signed-off-by: Josh Romero <[email protected]> (cherry picked from commit e194bc5) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…3663) (#3743) rather than relying on vega.scheme. Also update vega.scheme name Fixes #3582 (cherry picked from commit e194bc5) Signed-off-by: Josh Romero <[email protected]> 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>
…pensearch-project#3663) rather than relying on vega.scheme. Also update vega.scheme name Fixes opensearch-project#3582 Signed-off-by: Josh Romero <[email protected]> Signed-off-by: vagimeli <[email protected]>
…3663) (#3744) rather than relying on vega.scheme. Also update vega.scheme name Fixes #3582 (cherry picked from commit e194bc5) Signed-off-by: Josh Romero <[email protected]> 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>
…pensearch-project#3663) rather than relying on vega.scheme. Also update vega.scheme name Fixes opensearch-project#3582 Signed-off-by: Josh Romero <[email protected]> Signed-off-by: David Sinclair <[email protected]>
Description
rather than relying on vega.scheme. Also update vega.scheme name
Before
Screen.Recording.2023-03-27.at.6.37.17.PM.mov
After
(note that the color palette scale is still applied correctly)
Screen.Recording.2023-03-27.at.6.42.25.PM.mov
Possible Breaking Change
The only usage of the
elastic
custom scheme previously was to set the default value forconfig.range.category
, and that behavior is restored by this PR. However, it was previously possible to explicitly setscheme: "elastic"
within a spec - that's no longer possible. I think it's highly unlikely that there's a vega property that accepts ascheme
property that doesn't also use the defaultconfig.range.category
, but it may be possible. I'm also unsure if elastic ever documented any such usage. But my personal judgement is that this is unlikely to break any real user specs.Issues Resolved
Fixes #3582
Check List
yarn test:jest
yarn test:jest_integration
yarn test:ftr