From d0865e28ffe78ce5ec201dab12b634cbdafcb4e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milorad=20FIlipovi=C4=87?= Date: Tue, 27 Dec 2022 14:51:48 +0100 Subject: [PATCH] fix(editor): Fix for loading executions that are not on the current executions list (#5035) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix(editor): fixed executions list scroll not working on large screens * ⚡ Use limit to only load necessary number of additional executions * 🐛 Fixing loading execution that is not on the current execution list * ✔️ Fixing lint error * ⚡ Fixing more executions count logic * 📚 Updating comments * 🔥 Removing leftover `console.log` --- packages/editor-ui/src/api/workflows.ts | 4 ++ .../ExecutionsView/ExecutionsSidebar.vue | 35 ++++++++++++--- .../ExecutionsView/ExecutionsView.vue | 44 ++++++++++++++++--- .../src/plugins/i18n/locales/en.json | 1 + packages/editor-ui/src/stores/workflows.ts | 5 +++ 5 files changed, 79 insertions(+), 10 deletions(-) diff --git a/packages/editor-ui/src/api/workflows.ts b/packages/editor-ui/src/api/workflows.ts index f476f03a86..f649ca3740 100644 --- a/packages/editor-ui/src/api/workflows.ts +++ b/packages/editor-ui/src/api/workflows.ts @@ -27,3 +27,7 @@ export async function getCurrentExecutions(context: IRestApiContext, filter: IDa export async function getFinishedExecutions(context: IRestApiContext, filter: IDataObject) { return await makeRestApiRequest(context, 'GET', '/executions', { filter }); } + +export async function getExecutionData(context: IRestApiContext, executionId: string) { + return await makeRestApiRequest(context, 'GET', `/executions/${executionId}`); +} diff --git a/packages/editor-ui/src/components/ExecutionsView/ExecutionsSidebar.vue b/packages/editor-ui/src/components/ExecutionsView/ExecutionsSidebar.vue index 135b3d2eeb..2e5ab97b8d 100644 --- a/packages/editor-ui/src/components/ExecutionsView/ExecutionsSidebar.vue +++ b/packages/editor-ui/src/components/ExecutionsView/ExecutionsSidebar.vue @@ -1,5 +1,5 @@