Skip to content

Commit 716afd3

Browse files
committed
Remove WorkflowDefinition.branch_support
1 parent 876eec5 commit 716afd3

File tree

2 files changed

+0
-18
lines changed

2 files changed

+0
-18
lines changed

backend/infrahub/workflows/catalogue.py

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
from infrahub.core.constants import BranchSupportType
2-
31
from .constants import WorkflowTag, WorkflowType
42
from .models import WorkerPoolDefinition, WorkflowDefinition
53

@@ -19,15 +17,13 @@
1917
type=WorkflowType.USER,
2018
module="infrahub.transformations.tasks",
2119
function="transform_render_jinja2_template",
22-
branch_support=BranchSupportType.AWARE,
2320
)
2421

2522
TRANSFORM_PYTHON_RENDER = WorkflowDefinition(
2623
name="transform_render_python",
2724
type=WorkflowType.USER,
2825
module="infrahub.transformations.tasks",
2926
function="transform_python",
30-
branch_support=BranchSupportType.AWARE,
3127
)
3228

3329
ANONYMOUS_TELEMETRY_SEND = WorkflowDefinition(
@@ -43,7 +39,6 @@
4339
type=WorkflowType.INTERNAL,
4440
module="infrahub.core.migrations.schema.tasks",
4541
function="schema_apply_migrations",
46-
branch_support=BranchSupportType.AWARE,
4742
tags=[WorkflowTag.DATABASE_CHANGE],
4843
)
4944

@@ -52,7 +47,6 @@
5247
type=WorkflowType.INTERNAL,
5348
module="infrahub.core.validators.tasks",
5449
function="schema_validate_migrations",
55-
branch_support=BranchSupportType.AWARE,
5650
)
5751

5852
TRIGGER_ARTIFACT_DEFINITION_GENERATE = WorkflowDefinition(
@@ -74,7 +68,6 @@
7468
type=WorkflowType.INTERNAL,
7569
module="infrahub.core.ipam.tasks",
7670
function="ipam_reconciliation",
77-
branch_support=BranchSupportType.AWARE,
7871
tags=[WorkflowTag.DATABASE_CHANGE],
7972
)
8073

@@ -90,7 +83,6 @@
9083
type=WorkflowType.INTERNAL,
9184
module="infrahub.generators.tasks",
9285
function="request_generator_definition_run",
93-
branch_support=BranchSupportType.AWARE,
9486
)
9587

9688
REQUEST_ARTIFACT_GENERATE = WorkflowDefinition(
@@ -134,7 +126,6 @@
134126
type=WorkflowType.INTERNAL,
135127
module="infrahub.git.tasks",
136128
function="create_branch",
137-
branch_support=BranchSupportType.AWARE,
138129
tags=[WorkflowTag.DATABASE_CHANGE],
139130
)
140131

@@ -143,7 +134,6 @@
143134
type=WorkflowType.INTERNAL,
144135
module="infrahub.git.tasks",
145136
function="add_git_repository",
146-
branch_support=BranchSupportType.AWARE,
147137
tags=[WorkflowTag.DATABASE_CHANGE],
148138
)
149139

@@ -168,7 +158,6 @@
168158
type=WorkflowType.INTERNAL,
169159
module="infrahub.git.tasks",
170160
function="merge_git_repository",
171-
branch_support=BranchSupportType.AWARE,
172161
tags=[WorkflowTag.DATABASE_CHANGE],
173162
)
174163

@@ -177,7 +166,6 @@
177166
type=WorkflowType.INTERNAL,
178167
module="infrahub.core.branch.tasks",
179168
function="rebase_branch",
180-
branch_support=BranchSupportType.AWARE,
181169
tags=[WorkflowTag.DATABASE_CHANGE],
182170
)
183171

@@ -186,7 +174,6 @@
186174
type=WorkflowType.INTERNAL,
187175
module="infrahub.core.branch.tasks",
188176
function="merge_branch",
189-
branch_support=BranchSupportType.AWARE,
190177
tags=[WorkflowTag.DATABASE_CHANGE],
191178
)
192179

@@ -195,15 +182,13 @@
195182
type=WorkflowType.INTERNAL,
196183
module="infrahub.core.branch.tasks",
197184
function="delete_branch",
198-
branch_support=BranchSupportType.AWARE,
199185
)
200186

201187
BRANCH_VALIDATE = WorkflowDefinition(
202188
name="branch-validate",
203189
type=WorkflowType.INTERNAL,
204190
module="infrahub.core.branch.tasks",
205191
function="validate_branch",
206-
branch_support=BranchSupportType.AWARE,
207192
)
208193

209194
BRANCH_CANCEL_PROPOSED_CHANGES = WorkflowDefinition(
@@ -218,7 +203,6 @@
218203
type=WorkflowType.INTERNAL,
219204
module="infrahub.groups.tasks",
220205
function="update_graphql_query_group",
221-
branch_support=BranchSupportType.AWARE,
222206
)
223207

224208
PROCESS_COMPUTED_MACRO = WorkflowDefinition(

backend/infrahub/workflows/models.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
from typing_extensions import Self
1111

1212
from infrahub import __version__
13-
from infrahub.core.constants import BranchSupportType
1413

1514
from .constants import TAG_NAMESPACE, WorkflowTag, WorkflowType
1615

@@ -40,7 +39,6 @@ class WorkflowDefinition(BaseModel):
4039
module: str
4140
function: str
4241
cron: str | None = None
43-
branch_support: BranchSupportType = BranchSupportType.AGNOSTIC
4442
tags: list[WorkflowTag] = Field(default_factory=list)
4543

4644
@property

0 commit comments

Comments
 (0)