Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mentat-test
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
713
Mentat
mentat-test
Commits
987917e0
Commit
987917e0
authored
5 years ago
by
Jan Zerdik
Browse files
Options
Downloads
Patches
Plain Diff
Conditioning sending summary report to mail only if group has set SUMMARY or BOTH reporting.
(Redmine issue:
#5538
)
parent
81b1277e
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
lib/mentat/reports/event.py
+1
-1
1 addition, 1 deletion
lib/mentat/reports/event.py
with
1 addition
and
1 deletion
lib/mentat/reports/event.py
+
1
−
1
View file @
987917e0
...
...
@@ -358,7 +358,7 @@ class EventReporter(BaseReporter):
report
.
structured_data
=
self
.
prepare_structured_data
(
events
.
get
(
'
regular_aggr
'
,
{}),
events
.
get
(
'
relapsed_aggr
'
,
{}),
settings
)
# Send report via email.
if
not
settings
.
mute
:
if
not
settings
.
mute
and
settings
.
mode
in
(
mentat
.
const
.
REPORTING_MODE_SUMMARY
,
mentat
.
const
.
REPORTING_MODE_BOTH
)
:
self
.
_mail_report
(
report
,
settings
,
attachment_files
,
result
,
template_vars
)
# Commit all changes on report object to database.
...
...
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