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

[Lens] Maintain order of operations in dimension panel #78864

Merged
merged 1 commit into from
Sep 30, 2020

Conversation

wylieconlon
Copy link
Contributor

This PR maintains all the existing behavior except that operations are now displayed in the same order regardless of whether they are considered "compatible" or not. This results in the following behavior:

configuration with consistent order

Closes #78153

Checklist

@wylieconlon wylieconlon added Team:Visualizations Visualization editors, elastic-charts and infrastructure v8.0.0 release_note:skip Skip the PR/issue when compiling release notes Feature:Lens v7.10.0 labels Sep 29, 2020
@wylieconlon wylieconlon requested review from dej611, flash1293, mbondyra and a team September 29, 2020 20:20
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app (Team:KibanaApp)

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

async chunks size

id value diff baseline
lens 995.5KB -118.0B 995.6KB

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@@ -960,12 +960,12 @@ describe('IndexPatternDimensionEditorPanel', () => {
const items: EuiListGroupItemProps[] = wrapper.find(EuiListGroup).prop('listItems') || [];

expect(items.map(({ label }: { label: React.ReactNode }) => label)).toEqual([
'Unique count',
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The tests already covered the behavior of the buttons, so the only change here is to the ordering.

@mbondyra
Copy link
Contributor

The code looks good. Tested in Chrome and it works fine 🆗

I am just wondering that maybe the alphabetic order on the long run might now be enough and we should remember about this one when adding other aggregations. In Visualize we have subcategories for metric aggregations, parent pipeline aggregations and sibling pipeline aggs (picture below). Adding subcategories or at least group by them when sorting would be an improvement.

image

image

@wylieconlon
Copy link
Contributor Author

@mbondyra Yes I'm definitely interested in categorizing them! I think it will become obvious once we start adding calculations.

@wylieconlon wylieconlon merged commit 9605e29 into elastic:master Sep 30, 2020
@wylieconlon wylieconlon deleted the lens/maintain-order branch September 30, 2020 15:38
gmmorris added a commit to gmmorris/kibana that referenced this pull request Sep 30, 2020
* master: (97 commits)
  [Actions] Adds a "Test Connector" button on the Connectors List to make discovery of the Test tab easier (elastic#78746)
  [Discover] Fix functional time picker test permissions (elastic#78564)
  [ML] Fixing module datafeed overrides (elastic#78925)
  Adds some missing licenses to the CSV export (elastic#78719)
  [dev/cli] ensure plugins/ and all watch source dirs exist (elastic#78973)
  [Lens] Stop using scripted metric to collect telemetry (elastic#78687)
  [Lens] fix wrong message in fields accordion (elastic#78924)
  [Enterprise Search][App Search] Credentials Logic updates (elastic#78644)
  [Monitoring] Disk usage alerting (elastic#75419)
  [SECURITY_SOLUTION] Trusted apps list expand/collapse details (elastic#78601)
  Update content on interstitial page (elastic#78881)
  chore(NA): include hjson as a prod dependency (elastic#78941)
  Fix empty meta fields input in Advanced Settings  (elastic#78576)
  [Lens] Maintain order of operations in dimension panel (elastic#78864)
  Fix plugin doc title (elastic#78880)
  load apm-rum agent lazily (elastic#78760)
  [ML] Skip full ML access permission test
  Optimize charts plugin (elastic#78922)
  ui_actions service initial docs (elastic#78902)
  skip failing suite (elastic#78942)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Lens release_note:skip Skip the PR/issue when compiling release notes Team:Visualizations Visualization editors, elastic-charts and infrastructure v7.10.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Lens] avoid moving the aggregation location
4 participants