Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
GÉANT Service Orchestrator
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
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
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
GÉANT Orchestration and Automation Team
GAP
GÉANT Service Orchestrator
Commits
0c060540
Commit
0c060540
authored
1 year ago
by
Karel van Klink
Committed by
Neda Moeini
9 months ago
Browse files
Options
Downloads
Patches
Plain Diff
add modify_note workflow to all existing products
parent
dfccb6c3
No related branches found
No related tags found
1 merge request
!139
Feature/add validation workflows
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gso/migrations/versions/2024-01-10_75c63ad44cbb_add_modify_note_workflow_to_all_products.py
+32
-0
32 additions, 0 deletions
..._75c63ad44cbb_add_modify_note_workflow_to_all_products.py
with
32 additions
and
0 deletions
gso/migrations/versions/2024-01-10_75c63ad44cbb_add_modify_note_workflow_to_all_products.py
0 → 100644
+
32
−
0
View file @
0c060540
"""
Add modify_note workflow to all products.
Revision ID: 75c63ad44cbb
Revises: 6c986f219e3f
Create Date: 2024-01-10 17:19:25.190165
"""
import
sqlalchemy
as
sa
from
alembic
import
op
# revision identifiers, used by Alembic.
revision
=
'
75c63ad44cbb
'
down_revision
=
'
6c986f219e3f
'
branch_labels
=
None
depends_on
=
None
from
orchestrator.migrations.helpers
import
add_products_to_workflow_by_product_tag
,
remove_products_from_workflow_by_product_tag
new_workflows
=
[
"
SITE
"
,
"
RTR
"
,
"
IPTRUNK
"
]
def
upgrade
()
->
None
:
conn
=
op
.
get_bind
()
for
product_tag
in
new_workflows
:
add_products_to_workflow_by_product_tag
(
conn
,
"
modify_note
"
,
product_tag
)
def
downgrade
()
->
None
:
conn
=
op
.
get_bind
()
for
product_tag
in
new_workflows
:
remove_products_from_workflow_by_product_tag
(
conn
,
"
modify_note
"
,
product_tag
)
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