Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor 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
AlekSIS®
Official
AlekSIS-Core
Commits
7b0ec505
Verified
Commit
7b0ec505
authored
4 years ago
by
Jonathan Weth
Browse files
Options
Downloads
Patches
Plain Diff
Set comment in data check solve revisions
parent
bc7876d5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!389
Add data check system
Pipeline
#5032
failed
4 years ago
Stage: test
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
aleksis/core/data_checks.py
+9
-1
9 additions, 1 deletion
aleksis/core/data_checks.py
with
9 additions
and
1 deletion
aleksis/core/data_checks.py
+
9
−
1
View file @
7b0ec505
...
...
@@ -5,6 +5,7 @@ from django.db.models.aggregates import Count
from
django.utils.translation
import
gettext
as
_
import
reversion
from
reversion
import
set_comment
from
templated_email
import
send_templated_mail
from
.util.core_helpers
import
celery_optional
,
get_site_preferences
...
...
@@ -150,7 +151,14 @@ class DataCheck:
:param solve_option: The name of the solve option that should be executed
"""
with
reversion
.
create_revision
():
cls
.
solve_options
[
solve_option
].
solve
(
check_result
)
solve_option_obj
=
cls
.
solve_options
[
solve_option
]
set_comment
(
_
(
f
"
Solve option
'
{
solve_option_obj
.
verbose_name
}
'
"
f
"
for data check
'
{
cls
.
verbose_name
}
'"
)
)
solve_option_obj
.
solve
(
check_result
)
@classmethod
def
register_result
(
cls
,
instance
)
->
"
DataCheckResult
"
:
...
...
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