Skip to content

Conversation

@grafana-delivery-bot
Copy link
Contributor

Backport c73b3cc from #110311


Recording rule fields were not being copied correctly when duplicating an alert rule. This manifests as missing TargetDataSourceUID fields from the Record part of the rule when rules in a group are re-ordered.

Added some additional tests to ensure we cover the generation of recording rules in tests and fixed the copying logic to ensure all fields are copied correctly.

Recording rule fields were not being copied correctly when duplicating an alert rule. This manifests as missing `TargetDataSourceUID` fields from the `Record` part of the rule when rules in a group are re-ordered.

Added some additional tests to ensure we cover the generation of recording rules in tests and fixed the copying logic to ensure all fields are copied correctly.

(cherry picked from commit c73b3cc)
@github-actions
Copy link
Contributor

😢 zizmor failed with exit code 14.

Expand for full output
error[bot-conditions]: spoofable bot actor check
  --> ./.github/workflows/pr-dependabot-update-go-workspace.yml:18:3
   |
18 | /   update:
19 | |     runs-on: "ubuntu-latest"
20 | |     if: ${{ github.actor == 'dependabot[bot]' && github.event.pull_request.head.repo.full_name == github.repository }}
   | |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ actor context may be spoofable
21 | |     continue-on-error: true
...  |
68 | |           git push origin "$BRANCH_NAME"
69 | |         fi
   | |___________^ this job
   |
   = note: audit confidence → Medium
   = note: this finding has an auto-fix

192 findings (63 ignored, 128 suppressed, 1 fixable): 0 unknown, 0 informational, 0 low, 0 medium, 1 high

@moustafab moustafab enabled auto-merge (rebase) August 28, 2025 18:24
@moustafab moustafab merged commit 007b734 into release-12.1.2 Aug 28, 2025
91 of 95 checks passed
@moustafab moustafab deleted the backport-110311-to-release-12.1.2 branch August 28, 2025 18:27
@github-project-automation github-project-automation bot moved this from In review to Done in Alerting Aug 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant