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:
+6
-1
@@ -21,7 +21,12 @@ export const useCreateDraftFromWorkflowVersion = () => {
|
||||
name: true,
|
||||
statuses: true,
|
||||
lastPublishedVersionId: true,
|
||||
versions: true,
|
||||
versions: {
|
||||
id: true,
|
||||
status: true,
|
||||
name: true,
|
||||
createdAt: true,
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user