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

Fix grr get of an AlertRuleGroup with UID containing dots #517

Merged
merged 2 commits into from
Nov 8, 2024

Conversation

K-Phoen
Copy link
Member

@K-Phoen K-Phoen commented Nov 4, 2024

Fixes #516

Fixes the logic used by grr get to split the Handler name from the rest of the UID.

Copy link

@Pokom Pokom left a comment

Choose a reason for hiding this comment

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

Source code changes looks reasonable enough for me 👍🏻

@K-Phoen
Copy link
Member Author

K-Phoen commented Nov 4, 2024

I want to do some more tests tomorrow, from this bit of code it looks like handler names can be composed of two parts (which surprises me). I feel like a bit more checks are required, in case I break something I'm just not aware of (that also wouldn't be covered by tests 😅)

@malcolmholmes
Copy link
Contributor

"this bit" above is needed for Synthetic Monitoring, IIRC, as a check didn't have a unique identifier - so we needed to use its name and type to make a unique identifier.

@K-Phoen
Copy link
Member Author

K-Phoen commented Nov 8, 2024

Thanks for the tip :)

I tested with SM checks and it seems to work fine.

@K-Phoen K-Phoen merged commit cad9d1d into main Nov 8, 2024
6 checks passed
@K-Phoen K-Phoen deleted the issue-516/get-AlertRuleGroup branch November 8, 2024 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: AlertRuleGroup get command fails with UID-s containing dot .
3 participants