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

Elasticsearch: Fix processing of duplicated metric types and field #66973

Merged
merged 4 commits into from
Apr 24, 2023

Conversation

ivanahuckova
Copy link
Member

@ivanahuckova ivanahuckova commented Apr 20, 2023

In this PR, we are fixing naming of metric in case when we have duplicated metric type and duplicated field. In backend, we've had a logic that was handling duplicated query type with different field name, but it didn't account case when we also have same field.

To fix this, in case we have duplicated metric type and field, we append metric id to it. If metric is not duplicated, nothing changes.

Fixes #66849
Part of #54011

To test this, create query with duplicated metric type and field and test if response is correctly processed.

image

image

image

@github-actions
Copy link
Contributor

Backend code coverage report for PR #66973

Plugin Main PR Difference
elasticsearch 89.0% 89.0% 0%

@github-actions
Copy link
Contributor

Frontend code coverage report for PR #66973
No changes

Copy link
Contributor

@gabor gabor left a comment

Choose a reason for hiding this comment

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

LGTM 👍 nice work.

@ivanahuckova ivanahuckova merged commit e2e243d into main Apr 24, 2023
@ivanahuckova ivanahuckova deleted the ivana/es-duplicated-metric-naming branch April 24, 2023 15:26
@zerok zerok modified the milestones: 10.0.0, 10.0.0-preview May 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

elastic: in backend-mode, duplicate metrics fail
4 participants