Improve workflow performances (#15528)

- on draft creation, do not fetch the full version. Avoid the fetch of
steps and trigger
- on activation, we were performing 8 queries/mutations synchronously +
2 additional for automated triggers. I refacto the call it it gets
reduced to 4 queries/mutations + 2 additional for automated triggers
This commit is contained in:
Thomas Trompette
2025-11-03 17:23:01 +01:00
committed by GitHub
parent c2d8fd495a
commit d1330a4a8c
10 changed files with 158 additions and 130 deletions
@@ -21,7 +21,12 @@ export const useCreateDraftFromWorkflowVersion = () => {
name: true,
statuses: true,
lastPublishedVersionId: true,
versions: true,
versions: {
id: true,
status: true,
name: true,
createdAt: true,
},
},
});