Skip to content
Snippets Groups Projects
Commit 99a4bf1d authored by Nico Vermaas's avatar Nico Vermaas
Browse files

identify summary task (datamodel change)

parent 8650d768
No related branches found
No related tags found
1 merge request!343added mechanism and structure to check if a task is a 'summary' task
Pipeline #72882 passed
......@@ -220,6 +220,10 @@ class Task(models.Model):
if (self.status != State.PROCESSED.value) & (self.new_status == State.PROCESSED.value):
self.is_summary = check_if_summary(self)
# nv:20feb2024, same as above, but for backward compatibilty reasons.
# For tasks that are already beyond PROCESSED, but not yet ingested.
if (self.status != State.VALIDATED.value) & (self.new_status == State.VALIDATED.value):
self.is_summary = check_if_summary(self)
# make sure that every task has an activity (also for backward compatibility)
associate_task_with_activity(self)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment