-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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: Partial revert of 17236 #17383
fix: Partial revert of 17236 #17383
Conversation
634e5f2
to
96cdacc
Compare
96cdacc
to
5681933
Compare
Codecov Report
@@ Coverage Diff @@
## master #17383 +/- ##
=======================================
Coverage 77.02% 77.02%
=======================================
Files 1038 1038
Lines 56013 56016 +3
Branches 7735 7735
=======================================
+ Hits 43142 43145 +3
Misses 12613 12613
Partials 258 258
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
@@ -1326,6 +1326,11 @@ def get_metric_names(metrics: Sequence[Metric]) -> List[str]: | |||
return [metric for metric in map(get_metric_name, metrics) if metric] | |||
|
|||
|
|||
def get_first_metric_name(metrics: Sequence[Metric]) -> Optional[str]: |
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 should probably be get_first_metric_label
, but i'll stamp because it's only a revert
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.
Although @etr2460 the function call get_metric_names
but assigns these to the metric_labels
variable thus the variable as opposed to the function could be misnamed.
Co-authored-by: John Bodley <[email protected]>
SUMMARY
This is a partial revert of #17236 as it seems other chart types: all ECharts, Bar Chart, etc. already perform an implicit ordering if undefined, i.e., the ship has sailed on this one—previously I wasn't aware just how prevalent the behavior was and thus the fallback seems like the rule rather than the exception. I also added updated comments to reflect this behavior.
Personally I'm a tad upset/frustrated that this behavior differs by chart type (search for
sort_by
in viz.py) as this simply adds confusion to the user and leads to a very inconsistent UX. When we introduce new behaviors we should:UPDATING.md
so institutions can inform/educate users of said changes.BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TESTING INSTRUCTIONS
CI.
ADDITIONAL INFORMATION