-
Notifications
You must be signed in to change notification settings - Fork 273
fix: update chart sorting control labels/descriptions #1436
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/superset/superset-ui/CrWYdoDmoNxAaSWpSyARM6Grxkt6 |
0bd0b45
to
e5f03ba
Compare
e5f03ba
to
21c3593
Compare
Codecov Report
@@ Coverage Diff @@
## master #1436 +/- ##
=======================================
Coverage 30.42% 30.42%
=======================================
Files 497 497
Lines 10003 10003
Branches 1689 1689
=======================================
Hits 3043 3043
Misses 6714 6714
Partials 246 246
Continue to review full report at Codecov.
|
packages/superset-ui-chart-controls/src/shared-controls/dndControls.tsx
Outdated
Show resolved
Hide resolved
packages/superset-ui-chart-controls/src/shared-controls/index.tsx
Outdated
Show resolved
Hide resolved
@@ -333,10 +337,11 @@ const limit: SharedControlConfig<'SelectControl'> = { | |||
default: 100, | |||
choices: formatSelectOptions(SERIES_LIMITS), | |||
description: t( | |||
'Limits the number of time series that get displayed. A sub query ' + |
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.
The TL;DR is I removed the term time
for consistency and the direction @villebro is moving, renamed dimension to column, and added a cost comment.
), | ||
}; | ||
|
||
const sort_by: SharedControlConfig<'MetricsControl'> = { | ||
type: 'MetricsControl', | ||
label: t('Sort By'), | ||
label: t('Series sort by'), |
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.
Striving for consistency (in a somewhat inconsistent world), i.e., other labels are of the form Group by
and not Group By
.
b68a49d
to
5e68eef
Compare
Thanks @kgabryje and @ktmud for the review. Based on learnings from https://github.com/apache/superset/pull/17236—where enforcement is difficult—I updated the language to be recommendations, i.e., should rather than must. I also discovered that the |
🏠 Internal
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 updates the
Group by
,Sort by
,Series limit
, andRow limit
descriptions to provide more context, recommended behaviors, and standardizes the language.Related PRs: