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

Reject recording rules with incompatible fields #2000

Merged
merged 10 commits into from
Feb 4, 2025
Merged

Conversation

rwwiv
Copy link
Contributor

@rwwiv rwwiv commented Jan 23, 2025

This PR introduces logic to validate that conflicting fields are not used for recording rules, since these values are stripped by Grafana and will cause plans to always show diffs for these fields.

Note: Due to limitations in the SDK this PR moves some validation out of the schema into CreateContext in order to allow for us to check for conflicting fields, which is not possible on a ListType

@rwwiv rwwiv requested review from a team as code owners January 23, 2025 15:35
Copy link

In order to lower resource usage and have a faster runtime, PRs will not run Cloud tests automatically.
To do so, a Grafana Labs employee must trigger the cloud acceptance tests workflow manually.

@cindy
Copy link

cindy commented Jan 28, 2025

Can you fill out the PR description? Otherwise, this looks good to me 👍

@rwwiv rwwiv enabled auto-merge (squash) January 31, 2025 21:17
Copy link

@moustafab moustafab left a comment

Choose a reason for hiding this comment

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

LGTM, looks like ci docs check is failing because jq has a new website

@rwwiv rwwiv merged commit e93a250 into main Feb 4, 2025
26 checks passed
@rwwiv rwwiv deleted the rwwiv/rr-incompat-fields branch February 4, 2025 14:57
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.

3 participants