diff --git a/client/src/components/Markdown/Sections/MarkdownVitessce.vue b/client/src/components/Markdown/Sections/MarkdownVitessce.vue
index 14deeac736a..6063fac9c35 100644
--- a/client/src/components/Markdown/Sections/MarkdownVitessce.vue
+++ b/client/src/components/Markdown/Sections/MarkdownVitessce.vue
@@ -1,9 +1,10 @@
@@ -86,10 +86,7 @@ watch(
{{ errorMessage }}
-
- {{ invocationLoadError }}
-
-
+
{
const originalModule = jest.requireActual("@/stores/invocationStore");
- const mockFetchInvocationForId = jest.fn().mockImplementation((fetchParams) => {
+ const mockFetchInvocationById = jest.fn().mockImplementation((fetchParams) => {
if (fetchParams.id === "error-invocation") {
throw new Error("User does not own specified item.");
}
@@ -72,10 +72,10 @@ jest.mock("@/stores/invocationStore", () => {
getInvocationJobsSummaryById: jest.fn().mockImplementation((invocationId) => {
return invocationJobsSummaryById[invocationId];
}),
- fetchInvocationForId: mockFetchInvocationForId,
+ fetchInvocationById: mockFetchInvocationById,
fetchInvocationJobsSummaryForId: mockFetchInvocationJobsSummaryForId,
}),
- mockFetchInvocationForId,
+ mockFetchInvocationById,
mockFetchInvocationJobsSummaryForId,
};
});
@@ -207,8 +207,8 @@ function isInvocationAndJobTerminal(wrapper: Wrapper): boolean {
/** Asserts that the invocation was fetched in the store the given number of times */
function assertInvocationFetched(count = 1) {
- const { mockFetchInvocationForId } = jest.requireMock("@/stores/invocationStore");
- expect(mockFetchInvocationForId).toHaveBeenCalledTimes(count);
+ const { mockFetchInvocationById } = jest.requireMock("@/stores/invocationStore");
+ expect(mockFetchInvocationById).toHaveBeenCalledTimes(count);
}
/** Asserts that the jobs summary was fetched in the store the given number of times */
diff --git a/client/src/components/WorkflowInvocationState/WorkflowInvocationState.vue b/client/src/components/WorkflowInvocationState/WorkflowInvocationState.vue
index 741702b1cdc..2423981774c 100644
--- a/client/src/components/WorkflowInvocationState/WorkflowInvocationState.vue
+++ b/client/src/components/WorkflowInvocationState/WorkflowInvocationState.vue
@@ -183,7 +183,7 @@ watch(
async (id) => {
invocationLoaded.value = false;
try {
- await invocationStore.fetchInvocationForId({ id });
+ await invocationStore.fetchInvocationById({ id });
invocationLoaded.value = true;
// Only start polling if there is a valid invocation
if (invocation.value) {
@@ -216,7 +216,7 @@ onUnmounted(() => {
async function pollStepStatesUntilTerminal() {
if (!invocationSchedulingTerminal.value) {
- await invocationStore.fetchInvocationForId({ id: props.invocationId });
+ await invocationStore.fetchInvocationById({ id: props.invocationId });
stepStatesInterval.value = setTimeout(pollStepStatesUntilTerminal, 3000);
}
}
diff --git a/client/src/stores/invocationStore.ts b/client/src/stores/invocationStore.ts
index aa367f3cd7c..2dd92a99b83 100644
--- a/client/src/stores/invocationStore.ts
+++ b/client/src/stores/invocationStore.ts
@@ -56,7 +56,7 @@ export const useInvocationStore = defineStore("invocationStore", () => {
}
const {
- fetchItemById: fetchInvocationForId,
+ fetchItemById: fetchInvocationById,
getItemById: getInvocationById,
getItemLoadError: getInvocationLoadError,
isLoadingItem: isLoadingInvocation,
@@ -71,7 +71,7 @@ export const useInvocationStore = defineStore("invocationStore", () => {
return {
cancelWorkflowScheduling,
- fetchInvocationForId,
+ fetchInvocationById,
fetchInvocationJobsSummaryForId,
fetchInvocationStepById,
getInvocationById,