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

Transformations: Add string type check to field value in substring value matcher #87782

Merged
merged 2 commits into from
May 14, 2024

Conversation

nmarrs
Copy link
Contributor

@nmarrs nmarrs commented May 13, 2024

Add string type check for field value for the substring value matcher. Field values are not always strings and can be arrays etc. We will now return false if the value passed is not a string and causing a runtime error

Screenshot 2024-05-13 at 4 31 20 PM

See this thread in slack for additional context

@nmarrs nmarrs added area/transformations no-backport Skip backport of PR no-changelog Skip including change in changelog/release notes labels May 13, 2024
@nmarrs nmarrs requested a review from timlevett May 13, 2024 23:33
@nmarrs nmarrs self-assigned this May 13, 2024
@nmarrs nmarrs requested a review from a team as a code owner May 13, 2024 23:33
@nmarrs nmarrs requested review from codeincarnate and baldm0mma and removed request for a team May 13, 2024 23:33
@grafana-delivery-bot grafana-delivery-bot bot added this to the 11.1.x milestone May 13, 2024
Copy link
Contributor

@baldm0mma baldm0mma left a comment

Choose a reason for hiding this comment

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

LGTM!

@nmarrs nmarrs merged commit d92ec98 into main May 14, 2024
18 checks passed
@nmarrs nmarrs deleted the add-string-check-to-substring-matcher branch May 14, 2024 23:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/frontend area/transformations no-backport Skip backport of PR no-changelog Skip including change in changelog/release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants