Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
atdb-ldv
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
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
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ASTRON SDC
atdb-ldv
Commits
6c73fa8d
Commit
6c73fa8d
authored
1 year ago
by
Nico Vermaas
Browse files
Options
Downloads
Patches
Plain Diff
also reset aggregation state on FETCHED (instead of only DEFINED)
parent
6adedfa6
No related branches found
No related tags found
1 merge request
!353
also reset aggregation state on FETCHED (instead of only DEFINED)
Pipeline
#85848
passed
1 year ago
Stage: test
Stage: build
Stage: deploy_to_test
Stage: deploy_to_production
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
atdb/taskdatabase/models.py
+11
-0
11 additions, 0 deletions
atdb/taskdatabase/models.py
atdb/taskdatabase/templates/taskdatabase/index.html
+1
-1
1 addition, 1 deletion
atdb/taskdatabase/templates/taskdatabase/index.html
with
12 additions
and
1 deletion
atdb/taskdatabase/models.py
+
11
−
0
View file @
6c73fa8d
...
...
@@ -238,6 +238,17 @@ class Task(models.Model):
# which is always... except in some simpler unittests
pass
# when tasks are put back on fetched (resetting the flow), also reset some activity values
if
(
self
.
status
!=
State
.
FETCHED
.
value
)
&
(
self
.
new_status
==
State
.
FETCHED
.
value
):
try
:
self
.
activity
.
status
=
State
.
FETCHED
.
value
self
.
activity
.
is_processed
=
False
self
.
activity
.
is_aggregated
=
False
self
.
activity
.
save
()
except
:
# only bother with it if the task actually has an activity attached
# which is always... except in some simpler unittests
pass
# when a task goes to PROCESSED...
if
(
self
.
status
!=
State
.
PROCESSED
.
value
)
&
(
self
.
new_status
==
State
.
PROCESSED
.
value
):
...
...
This diff is collapsed.
Click to expand it.
atdb/taskdatabase/templates/taskdatabase/index.html
+
1
−
1
View file @
6c73fa8d
...
...
@@ -31,7 +31,7 @@
{% include 'taskdatabase/pagination.html' %}
</div>
</div>
<p
class=
"footer"
>
Version 2
7 May
2024
<p
class=
"footer"
>
Version 2
1 Jun
2024
</div>
{% include 'taskdatabase/refresh.html' %}
...
...
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