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

Loki/Elastic: Assert queryfix value to always be string #81349

Merged
merged 1 commit into from
Jan 29, 2024

Conversation

svennergr
Copy link
Contributor

What is this feature?

The value of a QueryFixAction can actually be number in some cases. With the current types we always assume it is a string. That leads to some errors when e.g. number values are being filtered.

@grafana-pr-automation

This comment was marked as outdated.

@grafana-pr-automation grafana-pr-automation bot added the levitate breaking change A label indicating a breaking change and assigned by Levitate. label Jan 26, 2024
@grafana-pr-automation grafana-pr-automation bot requested review from a team and jackw and removed request for a team January 26, 2024 11:15
@svennergr svennergr force-pushed the svennergr/fix-query-fix-types branch from a6d2af4 to 2bb16b9 Compare January 26, 2024 11:47
@svennergr svennergr changed the title Logs: Fix queryfix value can be number or string Loki/Elastic: Assert queryfix value to always be string Jan 26, 2024
@svennergr svennergr requested review from matyax and removed request for jackw January 26, 2024 11:47
@svennergr svennergr marked this pull request as ready for review January 26, 2024 11:48
@svennergr svennergr requested a review from a team as a code owner January 26, 2024 11:48
@svennergr svennergr added type/bug backport v10.3.x Mark PR for automatic backport to v10.3.x and removed levitate breaking change A label indicating a breaking change and assigned by Levitate. labels Jan 26, 2024
Copy link
Contributor

This PR must be merged before a backport PR will be created.

1 similar comment
Copy link
Contributor

This PR must be merged before a backport PR will be created.

@svennergr svennergr force-pushed the svennergr/fix-query-fix-types branch from 2bb16b9 to 9ec101d Compare January 26, 2024 12:23
@svennergr svennergr requested a review from a team as a code owner January 26, 2024 12:23
@svennergr svennergr requested review from ifrost and removed request for a team January 26, 2024 12:24
Copy link
Contributor

@matyax matyax left a comment

Choose a reason for hiding this comment

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

Fantastic! 👌

@svennergr svennergr merged commit ca5c297 into main Jan 29, 2024
14 checks passed
@svennergr svennergr deleted the svennergr/fix-query-fix-types branch January 29, 2024 10:46
grafana-delivery-bot bot pushed a commit that referenced this pull request Jan 29, 2024
Fix `value` can be `string` or `number`

(cherry picked from commit ca5c297)
Ukochka pushed a commit that referenced this pull request Feb 14, 2024
svennergr added a commit that referenced this pull request Feb 29, 2024
…1463)

Loki/Elastic: Assert queryfix value to always be string (#81349)

Fix `value` can be `string` or `number`

(cherry picked from commit ca5c297)

Co-authored-by: Sven Grossmann <sven.grossmann@grafana.com>
@aangelisc aangelisc modified the milestones: 10.4.x, 10.4.0 Mar 6, 2024
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.

None yet

3 participants