-
Notifications
You must be signed in to change notification settings - Fork 13.9k
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: revert default series sort-by metric #17236
fix: revert default series sort-by metric #17236
Conversation
1a58a10
to
86ddaf8
Compare
f5d8a45
to
9652004
Compare
@@ -92,7 +92,7 @@ export const D3_FORMAT_OPTIONS = [ | |||
|
|||
const ROW_LIMIT_OPTIONS = [10, 50, 100, 250, 500, 1000, 5000, 10000, 50000]; | |||
|
|||
const SERIES_LIMITS = [0, 5, 10, 25, 50, 100, 500]; | |||
const SERIES_LIMITS = [5, 10, 25, 50, 100, 500]; |
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.
Consistent with apache-superset/superset-ui#1430. Note I'm unsure why things are defined in multiple places.
Codecov Report
@@ Coverage Diff @@
## master #17236 +/- ##
=======================================
Coverage 76.95% 76.95%
=======================================
Files 1038 1037 -1
Lines 55612 55609 -3
Branches 7590 7588 -2
=======================================
- Hits 42798 42796 -2
+ Misses 12564 12563 -1
Partials 250 250
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
9652004
to
8f659aa
Compare
8f659aa
to
8fbdc32
Compare
@zhaoyongjie any thoughts/comments regarding this in light of the comments I added here? |
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.
this makes sense. ideally we could export the SERIES_LIMITS
constant from superset-ui and use that here, but it feels out of scope
…ries limit (#17236) Co-authored-by: John Bodley <john.bodley@airbnb.com>
SUMMARY
This PR is one of a slew to the apache/superset and apache-superset/superset-ui repos to revert pseudo recent changes to the series restrictions for high cardinality groupings. For more context please refer to this Slack thread in the #committers channel.
Specifically this PR reverts #15343 (and more), i.e., does not fallback to the first selected metric and requires the user to specify a sort-by metric for improved UX, i.e., it was not apparent to the user from the UI how the sorting was happening. Furthermore said change was actually a breaking change but was not protected with a feature flag.
Initially I added logic for an XOR check that required either neither or both the series sort-by and limit needed to be provided, but this would be a breaking change—in addition to thinking about how this should work with the table row limit—and thus I felt this would be better handled at a later stage.
Related PRs:
TESTING INSTRUCTIONS
CI.
ADDITIONAL INFORMATION