opensearch-project / OpenSearch-Dashboards

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

Derivative Unit field should not present in OpenSearch Query if unit field is not set in Visualisation #6745

Open kalaivani61294 opened 4 months ago

kalaivani61294 commented 4 months ago

Describe the bug

Derivative Unit field should not present in OpenSearch Query if unit field is not set in Visualisation

To Reproduce Steps to reproduce the behaviour:

  1. configure the derivative aggregation with unit value as empty
  2. Then, please check the open search query value will have unit field as same as intervalString configured

Expected behavior Derivative Unit field should not present in OpenSearch Query if unit field is not set in Visualisation

OpenSearch Version opensearch-1.2.4

Dashboards Version opensearch-1.2.0

Screenshots

If applicable, add screenshots to help explain your problem.

Host/Environment (please complete the following information):

Additional context

Add any other context about the problem here.

abbyhu2000 commented 4 months ago

@kavilla to reproduce the bug