opensearch-project / OpenSearch-Dashboards

📊 Open source visualization dashboards for OpenSearch.
https://opensearch.org/docs/latest/dashboards/index/
Apache License 2.0
1.62k stars 834 forks source link

Make Field Selection the first step while adding/editing Aggregation in Vis Builder #7145

Open LDrago27 opened 3 weeks ago

LDrago27 commented 3 weeks ago

Is your feature request related to a problem? Please describe.

Currently when an user tries to add an Aggregation in Vis Builder, User needs to select the type of aggregation and then select the field and rest of the sub params. The order of user interactions are not highly intuitive. In order to increase the intuitiveness and ease of use of the features, the options should be reordered so that User selects the field before selecting the Aggregation.

Describe the solution you'd like

User should be able select the field Name before selecting the Aggregation type while creating a new Aggregation.

Describe alternatives you've considered

No

LDrago27 commented 2 weeks ago

Swapping the order of fields and aggregations has limitations related to how we handle aggregation. If we implement the suggestion to display fields before aggregations, certain aggregations that are not directly linked to any fields, such as Count and Nested Aggregations (including Parent Pipeline Aggregations and Sibling Pipeline Aggregations), will not have a way to be shown to users. This change would eliminate many advanced features currently available to users. Therefore, we are not proceeding with the proposed changes.