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
!250
Add promote P to PE workflow.
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Add promote P to PE workflow.
feature/NAT-690-p-to-pe-promotion
into
develop
Overview
11
Commits
8
Pipelines
9
Changes
4
Merged
Neda Moeini
requested to merge
feature/NAT-690-p-to-pe-promotion
into
develop
10 months ago
Overview
11
Commits
8
Pipelines
9
Changes
4
Expand
0
0
Merge request reports
Compare
develop
version 8
e6f57ab1
10 months ago
version 7
f06ba9cf
10 months ago
version 6
344950b2
10 months ago
version 5
15aab481
10 months ago
version 4
bbe36c5f
10 months ago
version 3
a1d3bd5d
10 months ago
version 2
d67dcfae
10 months ago
version 1
3d01efb6
10 months ago
develop (base)
and
version 2
latest version
d6af8805
8 commits,
10 months ago
version 8
e6f57ab1
11 commits,
10 months ago
version 7
f06ba9cf
7 commits,
10 months ago
version 6
344950b2
6 commits,
10 months ago
version 5
15aab481
6 commits,
10 months ago
version 4
bbe36c5f
5 commits,
10 months ago
version 3
a1d3bd5d
4 commits,
10 months ago
version 2
d67dcfae
2 commits,
10 months ago
version 1
3d01efb6
1 commit,
10 months ago
4 files
+
644
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Some changes are not shown
For a faster browsing experience, some files are collapsed by default.
Expand all files
Files
4
Search (e.g. *.vue) (Ctrl+P)
gso/migrations/versions/2024-08-07_88dd5a44150d_add_promote_p_to_pe_workflows.py
0 → 100644
+
39
−
0
Options
"""
Add promote P to PE workflows..
Revision ID: 88dd5a44150d
Revises: 41fd1ae225aq
Create Date: 2024-08-07 13:54:44.362435
"""
import
sqlalchemy
as
sa
from
alembic
import
op
# revision identifiers, used by Alembic.
revision
=
'
88dd5a44150d
'
down_revision
=
'
41fd1ae225aq
'
branch_labels
=
None
depends_on
=
None
from
orchestrator.migrations.helpers
import
create_workflow
,
delete_workflow
new_workflows
=
[
{
"
name
"
:
"
promote_p_to_pe
"
,
"
target
"
:
"
MODIFY
"
,
"
description
"
:
"
Promote P router to PE router
"
,
"
product_type
"
:
"
Router
"
}
]
def
upgrade
()
->
None
:
conn
=
op
.
get_bind
()
for
workflow
in
new_workflows
:
create_workflow
(
conn
,
workflow
)
def
downgrade
()
->
None
:
conn
=
op
.
get_bind
()
for
workflow
in
new_workflows
:
delete_workflow
(
conn
,
workflow
[
"
name
"
])
Loading