Alerting: Remove ID and OrgID from hash calculation (#100140)
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user