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
6f2b13a3
Commit
6f2b13a3
authored
11 months ago
by
Karel van Klink
Committed by
Neda Moeini
9 months ago
Browse files
Options
Downloads
Patches
Plain Diff
Replace dud migration for adding modify note workflow for a working one
parent
81db29e4
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-04-22_b5dfbc1ec7b2_add_modify_note_workflow_to_new_products.py
+33
-0
33 additions, 0 deletions
..._b5dfbc1ec7b2_add_modify_note_workflow_to_new_products.py
with
33 additions
and
0 deletions
gso/migrations/versions/2024-04-22_b5dfbc1ec7b2_add_modify_note_workflow_to_new_products.py
0 → 100644
+
33
−
0
View file @
6f2b13a3
"""
Add modify note workflow to new products.
Revision ID: b5dfbc1ec7b2
Revises: a1a69e7554c4
Create Date: 2024-04-22 10:22:00.763401
"""
import
sqlalchemy
as
sa
from
alembic
import
op
# revision identifiers, used by Alembic.
revision
=
'
b5dfbc1ec7b2
'
down_revision
=
'
a1a69e7554c4
'
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
=
[
"
Super_POP_SWITCH
"
,
"
OFFICE_ROUTER
"
,
"
SWITCH
"
,
"
LSI
"
,
"
POP_VLAN
"
,
"
IMP_IP_TRUNK
"
,
"
IMP_RTR
"
,
"
IMP_SITE
"
,
"
IMP_SPOP_SWITCH
"
,
"
IMP_OFFICE_RTR
"
]
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