Skip to content
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

ref(discover): Introduce some order to discover columns #28832

Merged
merged 1 commit into from
Sep 27, 2021

Conversation

wmak
Copy link
Member

@wmak wmak commented Sep 24, 2021

  • This sorts fields, tags, measurements and breakdowns alphabetically
  • This regroups functions slightly so that they're next to other similar
    functions (eg. avg + percentile)
    • Not sorting alphabetically cause the order of some things become
      strange (eg. p100 before p50)

- This sorts fields, tags, measurements and breakdowns alphabetically
- This regroups functions slightly so that they're next to other similar
  functions (eg. avg + percentile)
  - Not sorting alphabetically cause the order of some things become
    strange (eg. p100 before p50)
@wmak wmak requested a review from a team September 24, 2021 18:26
@wmak wmak requested a review from a team as a code owner September 24, 2021 18:26
isSortable: true,
multiPlotType: 'area',
},
eps: {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorta count related, so i've put this with the other count functions

@@ -507,6 +508,7 @@ export function generateFieldOptions({
}

if (measurementKeys !== undefined && measurementKeys !== null) {
measurementKeys.sort();
Copy link
Member Author

@wmak wmak Sep 24, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could sort these at the source, but this way we can add more and they'll be sorted without any additional dev work. List is small enough I can't imagine this will have a perf impact

@wmak wmak merged commit 4f5f70d into master Sep 27, 2021
@wmak wmak deleted the wmak/ref/sort-discover-columns branch September 27, 2021 16:04
vuluongj20 pushed a commit that referenced this pull request Sep 30, 2021
- This sorts fields, tags, measurements and breakdowns alphabetically
- This regroups functions slightly so that they're next to other similar
  functions (eg. avg + percentile)
  - Not sorting alphabetically cause the order of some things become
    strange (eg. p100 before p50)
@github-actions github-actions bot locked and limited conversation to collaborators Oct 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants