mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Alerting: Remove ID and OrgID from hash calculation (#100140)
This commit is contained in:
parent
6787cdccb9
commit
33b11d5c76
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user