Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
GraceDB Server
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Michael William Coughlin
GraceDB Server
Commits
3cdea877
Commit
3cdea877
authored
5 years ago
by
Tanner Prestegard
Committed by
GraceDB
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
alerts: use builtin model checks to determine if MDC or Test event
parent
0098b585
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gracedb/alerts/main.py
+2
-4
2 additions, 4 deletions
gracedb/alerts/main.py
with
2 additions
and
4 deletions
gracedb/alerts/main.py
+
2
−
4
View file @
3cdea877
...
...
@@ -37,8 +37,7 @@ def issue_alerts(event_or_superevent, alert_type, serialized_object,
if
is_event
(
event_or_superevent
):
# Test/MDC events
event
=
event_or_superevent
if
((
event
.
search
and
event
.
search
.
name
==
'
MDC
'
)
\
or
event
.
group
.
name
==
'
Test
'
):
if
event
.
is_mdc
()
or
event
.
is_test
():
return
# Offline events
...
...
@@ -47,8 +46,7 @@ def issue_alerts(event_or_superevent, alert_type, serialized_object,
else
:
# Test/MDC superevents
s
=
event_or_superevent
if
(
s
.
category
in
[
s
.
__class__
.
SUPEREVENT_CATEGORY_TEST
,
s
.
__class__
.
SUPEREVENT_CATEGORY_MDC
]):
if
s
.
is_mdc
()
or
s
.
is_test
():
return
# Superevents with offline preferred events
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment