fix notifications
This commit is contained in:
1 parent
e790c02d59
commit
a0f558b43c
10 files changed
+277
-7
No files matched your search
@@ -190,6 +190,14 @@ func (t *Tracker) SetStatusStore(ctx context.Context, store StatusStore) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// IsIgnored reports whether a person ignored the issue. It also answers for
|
||||
// issues not yet recreated since a restart, which alerting needs.
|
||||
func (t *Tracker) IsIgnored(id string) bool {
|
||||
t.mu.Lock()
|
||||
defer t.mu.Unlock()
|
||||
return t.triage[id].Status == StatusIgnored
|
||||
}
|
||||
|
||||
// persistLocked records a decision. The write happens off the lock.
|
||||
func (t *Tracker) persistLocked(id string, st TriageState) {
|
||||
if st.Status == StatusOpen {
|
||||
|
||||
Reference in new issue
Block a user