-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Time Series: tooltip sort by alphabetical order #5442
Conversation
a81acc2
to
13d555c
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.
Cool, could you tell me whether changing the setting is "sticky" and is remembered? Also, we may need some migration in case {tooltipSort: "default"}
is set on local storage to {tooltipSort: "alphabetical"}
.
@@ -27,7 +27,7 @@ export enum PluginType { | |||
// When editing a value of the enum, please write a backward compatible | |||
// deserializer in data_source/metrics_data_source.ts. | |||
export enum TooltipSort { | |||
DEFAULT = 'default', | |||
ALPHABETICAL = 'Alphabetical', |
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.
ALPHABETICAL = 'alphabetical',
for consistency please.
dfd5b72
to
cec1bd9
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.
Tested manually by altering the local storage. Looks like because of the switch statement in the metrics_reducers, everything work as intended. LGTM.
metricsSettings.tooltipSort = TooltipSort.ALPHABETICAL; | ||
break; |
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.
alternative: remove these two lines.
In the list of tooltip sorting method, we replace "default" with "alphabetical". The alphabetical order is based on the display name.
In the list of tooltip sorting method, we replace "default" with "alphabetical". The alphabetical order is based on the display name.
In the list of tooltip sorting method, we remove "default" and replace with "alphabetical order". The alphabetical order is based on the display name.