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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ASTRON SDC
atdb-ldv
Commits
ef8c27a2
Commit
ef8c27a2
authored
1 year ago
by
Nico Vermaas
Browse files
Options
Downloads
Patches
Plain Diff
update filter and workflow_id
parent
77e562af
No related branches found
No related tags found
1 merge request
!339
SDC-1188 - STEP 1 of 3 (the database)
Pipeline
#71672
failed
1 year ago
Stage: test
Stage: build
Stage: deploy_to_test
Stage: deploy_to_production
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
atdb/taskdatabase/services/activities.py
+9
-5
9 additions, 5 deletions
atdb/taskdatabase/services/activities.py
with
9 additions
and
5 deletions
atdb/taskdatabase/services/activities.py
+
9
−
5
View file @
ef8c27a2
...
...
@@ -77,14 +77,10 @@ def associate_task_with_activity(task, save_task=True):
activity
=
Activity
(
sas_id
=
task
.
sas_id
,
project
=
task
.
project
,
workflow_id
=
task
.
workflow
.
id
,
filter
=
task
.
filter
)
activity
.
save
()
# update activity
activity
.
filter
=
task
.
filter
activity
.
workflow_id
=
task
.
workflow
.
id
task
.
activity
=
activity
if
save_task
:
task
.
save
()
...
...
@@ -163,4 +159,12 @@ def update_activity(task):
# only save when changed
if
activity
.
is_verified
!=
current_is_verified
:
activity
.
save
()
if
activity
.
filter
!=
task
.
filter
:
activity
.
filter
=
task
.
filter
activity
.
save
()
if
activity
.
workflow_id
!=
task
.
workflow
.
id
:
activity
.
workflow_id
=
task
.
workflow
.
id
activity
.
save
()
\ No newline at end of file
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