Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
LOFAR
Manage
Activity
Members
Labels
Plan
Issues
Wiki
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review 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
RadioObservatory
LOFAR
Commits
39793e9f
Commit
39793e9f
authored
1 year ago
by
Jorrit Schaap
Browse files
Options
Downloads
Patches
Plain Diff
only annotate/validate docs in relevant states
parent
e82c6ede
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1148
TMSS_992
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
SAS/TMSS/backend/src/tmss/tmssapp/models/scheduling.py
+2
-1
2 additions, 1 deletion
SAS/TMSS/backend/src/tmss/tmssapp/models/scheduling.py
with
2 additions
and
1 deletion
SAS/TMSS/backend/src/tmss/tmssapp/models/scheduling.py
+
2
−
1
View file @
39793e9f
...
...
@@ -631,11 +631,12 @@ class Dataproduct(RefreshFromDbInvalidatesCachedPropertiesMixin, TemplateSchemaM
self
.
validate_doc_using_template
(
'
specifications_doc
'
,
'
specifications_template
'
)
def
save
(
self
,
force_insert
=
False
,
force_update
=
False
,
using
=
None
,
update_fields
=
None
):
if
self
.
producer
.
subtask
.
state
.
value
!=
SubtaskState
.
Choices
.
FIN
ISH
ED
.
value
:
if
self
.
producer
.
subtask
.
state
.
value
in
(
SubtaskState
.
Choices
.
DE
FIN
ED
.
value
,
SubtaskState
.
Choices
.
SCHEDULING
.
value
,
SubtaskState
.
Choices
.
SCHEDUL
ED
.
value
)
:
self
.
annotate_doc_using_template
(
'
specifications_doc
'
,
'
specifications_template
'
)
self
.
add_defaults_to_doc_using_template
(
'
specifications_doc
'
,
'
specifications_template
'
)
self
.
validate_doc_using_template
(
'
specifications_doc
'
,
'
specifications_template
'
)
if
self
.
producer
.
subtask
.
state
.
value
==
SubtaskState
.
Choices
.
FINISHING
.
value
:
self
.
annotate_doc_using_template
(
'
feedback_doc
'
,
'
feedback_template
'
)
self
.
validate_doc_using_template
(
'
feedback_doc
'
,
'
feedback_template
'
)
...
...
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