Skip to content

Conversation

simianhacker
Copy link
Member

🍒 Summary

  • Changed MAX_DIMENSIONS_SELECTIONS from 10 to 1 in constants
  • Removed RENAME operation for single dimensions in ESQL query generation
  • Updated chart layers to use actual dimension name instead of DIMENSIONS_COLUMN for single dimensions
  • Modified dimensions selector to use singleSelection mode and updated UI messaging to singular
  • Updated all related tests to reflect single dimension behavior
  • Made singleSelection dynamic based on MAX_DIMENSIONS_SELECTIONS constant
  • Removed unused rename import from ESQL composer

Fixes #238878

🎙️ Prompts

  • "I would like to limit the number of dimension the user can select to 1"
  • "I also like to modify the ESQL query that is generated to remove the RENAME for a single dimension"
  • "We also need to update useChartLayers to use just the dimension name when there is a single dimension specified instead of the DIMENSION_COLUMN"
  • "When the MAX_DIMENSION_SELECTIONS is greater than one, set the single selection to false"
  • "Can you update the test for create_esql_query"
  • "Can you check to see if there are tests for use_chart_layers and use_chart_layers_from_esql"

🤖 This commit was assisted by Cursor

…ation

- Changed MAX_DIMENSIONS_SELECTIONS from 10 to 1 in constants
- Removed RENAME operation for single dimensions in ESQL query generation
- Updated chart layers to use actual dimension name instead of DIMENSIONS_COLUMN for single dimensions
- Modified dimensions selector to use singleSelection mode and updated UI messaging to singular
- Updated all related tests to reflect single dimension behavior
- Made singleSelection dynamic based on MAX_DIMENSIONS_SELECTIONS constant
- Removed unused rename import from ESQL composer

Prompts:

- "I would like to limit the number of dimension the user can select to 1"
- "I also like to modify the ESQL query that is generated to remove the RENAME for a single dimension"
- "We also need to update useChartLayers to use just the dimension name when there is a single dimension specified instead of the DIMENSION_COLUMN"
- "When the MAX_DIMENSION_SELECTIONS is greater than one, set the single selection to false"
- "Can you update the test for create_esql_query"
- "Can you check to see if there are tests for use_chart_layers and use_chart_layers_from_esql"

🤖 This commit was assisted by Cursor
@simianhacker simianhacker requested a review from a team as a code owner October 14, 2025 20:34
@simianhacker simianhacker added release_note:skip Skip the PR/issue when compiling release notes Team:obs-ux-infra_services Observability Infrastructure & Services User Experience Team backport:version Backport to applied version labels v9.2.0 metrics-in-discover:technical-preview v9.3.0 labels Oct 14, 2025
@elasticmachine
Copy link
Contributor

Pinging @elastic/obs-ux-infra_services-team (Team:obs-ux-infra_services)

@elasticmachine
Copy link
Contributor

elasticmachine commented Oct 14, 2025

💔 Build Failed

Failed CI Steps

History

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:version Backport to applied version labels metrics-in-discover:technical-preview release_note:skip Skip the PR/issue when compiling release notes Team:obs-ux-infra_services Observability Infrastructure & Services User Experience Team v9.2.0 v9.3.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Metrics][Discover] Do not support multidimensional breakdown

2 participants