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
Jira
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
Merge requests
!436
Add modify note workflow to all existing products
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Add modify note workflow to all existing products
feature/add-modify-note
into
develop
Overview
0
Commits
2
Pipelines
1
Changes
9
Merged
Karel van Klink
requested to merge
feature/add-modify-note
into
develop
1 month ago
Overview
0
Commits
2
Pipelines
1
Changes
9
Expand
0
0
Merge request reports
Compare
develop
develop (base)
and
latest version
latest version
e8e0da07
2 commits,
1 month ago
9 files
+
110
−
67
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
9
Search (e.g. *.vue) (Ctrl+P)
gso/migrations/versions/2025-06-20_24858fd1d805_add_modify_note_workflow_to_existing_.py
0 → 100644
+
70
−
0
Options
"""
Add modify note workflow to existing products.
Revision ID: 24858fd1d805
Revises: 550e3aebc1c5
Create Date: 2025-06-20 10:51:57.321841
"""
import
sqlalchemy
as
sa
from
alembic
import
op
# revision identifiers, used by Alembic.
revision
=
'
24858fd1d805
'
down_revision
=
'
550e3aebc1c5
'
branch_labels
=
None
depends_on
=
None
from
orchestrator.migrations.helpers
import
create_workflow
,
delete_workflow
,
add_products_to_workflow_by_product_tag
,
\
remove_products_from_workflow_by_product_tag
product_tags
=
[
"
ER
"
,
"
COP
"
,
"
EP
"
,
"
G_IP
"
,
"
G_PLUS
"
,
"
IAS
"
,
"
IMP_ER
"
,
"
IMP_COP
"
,
"
IMP_EP
"
,
"
IMP_G_IP
"
,
"
IMP_G_PLUS
"
,
"
IMP_IAS
"
,
"
IMP_IP_TRUNK
"
,
"
IMP_LSI
"
,
"
IMP_LHC
"
,
"
IMP_OFFICE_RTR
"
,
"
IMPORTED_OPENGEAR
"
,
"
IMP_RE_LHCONE
"
,
"
IMP_RE_PEER
"
,
"
IMP_RTR
"
,
"
IMP_SITE
"
,
"
IMP_SPOP_SWITCH
"
,
"
IMP_SWITCH
"
,
"
IPTRUNK
"
,
"
LSI
"
,
"
LHC
"
,
"
OFFICE_ROUTER
"
,
"
OPENGEAR
"
,
"
POP_VLAN
"
,
"
RE_LHCONE
"
,
"
RE_PEER
"
,
"
RTR
"
,
"
SITE
"
,
"
Super_POP_SWITCH
"
,
"
SWITCH
"
,
"
VRF
"
,
]
def
upgrade
()
->
None
:
conn
=
op
.
get_bind
()
for
product
in
product_tags
:
add_products_to_workflow_by_product_tag
(
conn
,
"
modify_note
"
,
product
)
def
downgrade
()
->
None
:
conn
=
op
.
get_bind
()
for
product
in
product_tags
:
remove_products_from_workflow_by_product_tag
(
conn
,
"
modify_note
"
,
product
)
Loading