Skip to content

Commit d9c78ff

Browse files
committed
Remove left over
1 parent b73057b commit d9c78ff

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

backend/infrahub/core/branch/tasks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,10 +174,10 @@ async def rebase_branch(branch: str, context: InfrahubContext, send_events: bool
174174
parameters={"branch": obj.name, "ipam_node_details": ipam_node_details},
175175
)
176176

177-
await workflow.submit_workflow(workflow=DIFF_REFRESH_ALL, context=context, parameters={"branch_name": obj.name})
178177
await workflow.submit_workflow(
179178
workflow=BRANCH_MIGRATE, context=context, parameters={"branch": obj.name, "send_events": send_events}
180179
)
180+
await workflow.submit_workflow(workflow=DIFF_REFRESH_ALL, context=context, parameters={"branch_name": obj.name})
181181

182182
if not send_events:
183183
return
@@ -235,7 +235,7 @@ async def migrate_branch(branch: str, context: InfrahubContext, send_events: boo
235235
log.info(f"Running migrations for branch '{obj.name}'")
236236
await migration_runner.run(db=db)
237237
except MigrationFailureError as exc:
238-
log.error(f"Failed to migrate branch '{obj.name}': {exc.errors}")
238+
log.error(f"Failed to run migrations for branch '{obj.name}': {exc.errors}")
239239
return
240240

241241
if obj.status == BranchStatus.NEED_UPGRADE_REBASE:

backend/infrahub/core/migrations/runner.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,6 @@ async def run(self, db: InfrahubDatabase) -> None:
4040

4141
if execution_result.success:
4242
validation_result = await migration.validate_migration(db=db)
43-
# FIXME: graph_version should be changed elsewhere?
44-
# if validation_result.success and self.branch.status != BranchStatus.NEED_UPGRADE_REBASE:
45-
# self.branch.graph_version = migration.minimum_version + 1
46-
# await self.branch.save(db=db)
4743

4844
if not execution_result.success or (validation_result and not validation_result.success):
4945
if execution_result.errors:

0 commit comments

Comments
 (0)