Skip to content

Commit deb2273

Browse files
committed
perf(pipeline): currently not allowed to change is_default field
1 parent bc3b24d commit deb2273

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/api/http/service/pipeline.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@ async def update_pipeline(self, pipeline_uuid: str, pipeline_data: dict) -> None
8686
del pipeline_data['for_version']
8787
if 'stages' in pipeline_data:
8888
del pipeline_data['stages']
89+
if 'is_default' in pipeline_data:
90+
del pipeline_data['is_default']
91+
8992
await self.ap.persistence_mgr.execute_async(
9093
sqlalchemy.update(persistence_pipeline.LegacyPipeline).where(persistence_pipeline.LegacyPipeline.uuid == pipeline_uuid).values(**pipeline_data)
9194
)

0 commit comments

Comments
 (0)