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

This commit is contained in:
Yuri Tseretyan 2025-02-05 14:15:02 -05:00 committed by GitHub
parent 6787cdccb9
commit 33b11d5c76
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -262,6 +262,8 @@ func TestRuleWithFolderFingerprint(t *testing.T) {
"UpdatedBy": {},
"IntervalSeconds": {},
"Annotations": {},
"ID": {},
"OrgID": {},
}
tp := reflect.TypeOf(rule).Elem()