Alerting: Remove ID and OrgID from hash calculation (#100140)

This commit is contained in:
Yuri Tseretyan authored and GitHub committed 2025-02-05 14:15:02 -05:00
1 parent 6787cdccb9
commit 33b11d5c76
2 files changed
+2 -2

No files matched your search

@@ -314,8 +314,6 @@ func (r ruleWithFolder) Fingerprint() fingerprint {
// fields that do not affect the state.
// TODO consider removing fields below from the fingerprint
writeInt(rule.ID)
writeInt(rule.OrgID)
writeInt(int64(rule.For))
if rule.DashboardUID != nil {
writeString(*rule.DashboardUID)
@@ -262,6 +262,8 @@ func TestRuleWithFolderFingerprint(t *testing.T) {
"UpdatedBy": {},
"IntervalSeconds": {},
"Annotations": {},
"ID": {},
"OrgID": {},
}
tp := reflect.TypeOf(rule).Elem()