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
Commits
a5924dbd
Verified
Commit
a5924dbd
authored
1 month ago
by
Karel van Klink
Browse files
Options
Downloads
Patches
Plain Diff
Make typing more strict in IAS modification workflow
parent
7b1dc6ef
No related branches found
No related tags found
1 merge request
!407
Add support for modifying the IAS flavour in creation and modification workflows
Pipeline
#93436
canceled
1 month ago
Stage: tox
Stage: documentation
Stage: sonarqube
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gso/workflows/l3_core_service/ias/modify_ias.py
+3
-3
3 additions, 3 deletions
gso/workflows/l3_core_service/ias/modify_ias.py
with
3 additions
and
3 deletions
gso/workflows/l3_core_service/ias/modify_ias.py
+
3
−
3
View file @
a5924dbd
"""
Modification workflow for a IAS subscription.
"""
from
orchestrator
import
begin
,
conditional
,
done
,
workflow
from
orchestrator.domain
import
SubscriptionModel
from
orchestrator.targets
import
Target
from
orchestrator.workflow
import
StepList
from
orchestrator.workflows.steps
import
resync
,
store_process_subscription
,
unsync
...
...
@@ -10,6 +9,7 @@ from pydantic_forms.core import FormPage
from
pydantic_forms.types
import
FormGenerator
,
UUIDstr
from
gso.products.product_blocks.ias
import
IASFlavor
from
gso.products.product_types.ias
import
IAS
from
gso.workflows.l3_core_service.base_modify_l3_core_service
import
(
Operation
,
create_new_sbp
,
...
...
@@ -25,12 +25,12 @@ def modify_ias_input_form_generator(subscription_id: UUIDstr) -> FormGenerator:
initial_generator
=
initial_input_form_generator
(
subscription_id
)
initial_user_input
=
yield
from
initial_generator
subscription
=
SubscriptionModel
.
from_subscription
(
subscription_id
)
subscription
=
IAS
.
from_subscription
(
subscription_id
)
# Additional IAS step
class
IASExtraForm
(
FormPage
):
# TODO: remove type hint workaround
ias_flavor
:
IASFlavor
|
str
=
subscription
.
ias
.
ias_flavor
# type: ignore[attr-defined]
ias_flavor
:
IASFlavor
|
str
=
subscription
.
ias
.
ias_flavor
ias_extra
=
yield
IASExtraForm
return
initial_user_input
|
ias_extra
.
model_dump
()
...
...
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