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] Rearrange options #144891

Merged
merged 2 commits into from Nov 9, 2022
Merged

[Lens] Rearrange options #144891

merged 2 commits into from Nov 9, 2022

Conversation

flash1293
Copy link
Contributor

Fixes #138075

Group by this field

This PR moves the "Group by this field" below the field selector. I renamed it to "Aggregate by this dimension first" (instead of field) because it's more accurate - this isn't really about the field and also a thing for the "Filters" function which doesn't have a field:
Screenshot 2022-11-09 at 12 29 29
Screenshot 2022-11-09 at 12 29 33
Screenshot 2022-11-09 at 12 29 38
Screenshot 2022-11-09 at 12 29 44

Drive-by change: Move the "Include empty rows" up above the granularity slider for intervals to match the date histogram order

Collapse by

It also moves "Collapse by" into the data section (relevant for xy breakdown, table rows and partition slices)
Screenshot 2022-11-09 at 12 36 53
Screenshot 2022-11-09 at 12 36 59
Screenshot 2022-11-09 at 12 36 40
Screenshot 2022-11-09 at 12 36 46

Also works for text based:
Screenshot 2022-11-09 at 12 47 08

Technical details

For the collapse by part I had to add another form render hook to the visualization renderDimensionEditorDataExtra which is passed to the datasource dimension editor so it can be rendered in the right place. On the datasource side the integration for text based is very straight forward, for form based there are two flavors - just render below the operation edit options or pass to the operation editor (used for terms)

@flash1293 flash1293 added release_note:enhancement Team:Visualizations Visualization editors, elastic-charts and infrastructure Feature:Lens backport:skip This commit does not require backporting labels Nov 9, 2022
@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Public APIs missing comments

Total count of every public API that lacks a comment. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats comments for more detailed information.

id before after diff
lens 582 584 +2

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
lens 1.3MB 1.3MB +2.2KB
Unknown metric groups

API count

id before after diff
lens 675 678 +3

ESLint disabled in files

id before after diff
osquery 1 2 +1

ESLint disabled line counts

id before after diff
enterpriseSearch 19 21 +2
fleet 59 65 +6
osquery 108 113 +5
securitySolution 440 446 +6
total +19

Total ESLint disabled count

id before after diff
enterpriseSearch 20 22 +2
fleet 67 73 +6
osquery 109 115 +6
securitySolution 517 523 +6
total +20

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

@flash1293 flash1293 marked this pull request as ready for review November 9, 2022 13:00
@flash1293 flash1293 requested a review from a team as a code owner November 9, 2022 13:00
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-visualizations @elastic/kibana-visualizations-external (Team:Visualizations)

Copy link
Contributor

@stratoula stratoula left a comment

Choose a reason for hiding this comment

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

Changes LGTM! tested it locally and works as expected. Thanx Joe :)

@flash1293 flash1293 merged commit 452b81f into elastic:main Nov 9, 2022
jloleysens added a commit to jloleysens/kibana that referenced this pull request Nov 9, 2022
* main:
  [Lens] Rearrange options (elastic#144891)
  [Actionable Observability] Integrate alert search bar on rule details page (elastic#144718)
  [Security Solution] [Exceptions] Adds options to create a shared exception list and to create a single item from the manage exceptions view (elastic#144575)
  [Actionable Observability] Add context.alertDetailsUrl to connector template for Uptime > Monitor status & Uptime TLS rules (elastic#144740)
  [Security Solution] [Feat] Add Bulk Events to Timeline. (elastic#142737)
  [TIP] Env specific cypress config (elastic#144894)
  skip flaky suite (elastic#144885)
  [Enterprise Search] Fixes Search Index page to go blank when connection lost (elastic#144022)
  [Cloud Posture] track findings pages (elastic#144822)
  [ContentManagement] Inspector flyout (elastic#144240)
  [Cloud Posture] Dashboard Redesign - data counter cards (elastic#144565)
  [TIP] Run e2e pipeline on CI (elastic#144776)
  [Guided onboarding] Config updates for the Security guide (elastic#144844)
  Cleanup unused code for claiming tasks by id (elastic#144408)
  Ping the response-ops team whenever a new connector type is registered (elastic#144736)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting Feature:Lens release_note:enhancement Team:Visualizations Visualization editors, elastic-charts and infrastructure v8.6.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Lens] Move settings from the appearance section to the data section
5 participants