perf(pipeline): currently not allowed to change is_default field

This commit is contained in:
Junyan Qin
2025-04-16 14:00:11 +08:00
parent bc3b24d2f1
commit deb22739b7

View File

@@ -86,6 +86,9 @@ class PipelineService:
del pipeline_data['for_version']
if 'stages' in pipeline_data:
del pipeline_data['stages']
if 'is_default' in pipeline_data:
del pipeline_data['is_default']
await self.ap.persistence_mgr.execute_async(
sqlalchemy.update(persistence_pipeline.LegacyPipeline).where(persistence_pipeline.LegacyPipeline.uuid == pipeline_uuid).values(**pipeline_data)
)