Skip to content

Commit

Permalink
Merge branch 'release_24.0' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdbeek committed Mar 11, 2024
2 parents 9ddb6ad + 3dbc2c6 commit 74766a3
Show file tree
Hide file tree
Showing 38 changed files with 862 additions and 493 deletions.
14 changes: 6 additions & 8 deletions client/src/api/schema/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9752,7 +9752,7 @@ export interface components {
* Name
* @description The name of the creator.
*/
name: string;
name?: string | null;
/** Telephone */
telephone?: string | null;
/** URL */
Expand Down Expand Up @@ -11005,10 +11005,9 @@ export interface components {
};
/**
* Latest workflow UUID
* Format: uuid4
* @description TODO
*/
latest_workflow_uuid: string;
latest_workflow_uuid?: string | null;
/**
* License
* @description SPDX Identifier of the license associated with this workflow.
Expand Down Expand Up @@ -12108,18 +12107,17 @@ export interface components {
* Label
* @description Label of the input.
*/
label: string;
label: string | null;
/**
* UUID
* Format: uuid4
* @description Universal unique identifier of the input.
*/
uuid: string;
uuid: string | null;
/**
* Value
* @description TODO
*/
value: string;
value: Record<string, never> | null;
};
/** WorkflowInvocationCollectionView */
WorkflowInvocationCollectionView: {
Expand Down Expand Up @@ -12475,7 +12473,7 @@ export interface components {
* Name
* @description The name of the creator.
*/
name: string;
name?: string | null;
/** Telephone */
telephone?: string | null;
/** URL */
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/Grid/configs/historiesShared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ const gridConfig: GridConfig = {
filtering: new Filtering(validFilters, undefined, false, false),
getData: getData,
plural: "Histories",
sortBy: "name",
sortBy: "update_time",
sortDesc: true,
sortKeys: ["create_time", "name", "update_time", "username"],
title: "Shared Histories",
Expand Down
24 changes: 17 additions & 7 deletions client/src/components/History/Content/ContentItem.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import { PiniaVuePlugin } from "pinia";
import { getLocalVue } from "tests/jest/helpers";
import VueRouter from "vue-router";

import { mockFetcher } from "@/api/schema/__mocks__";

import ContentItem from "./ContentItem";

jest.mock("components/History/model/queries");
Expand All @@ -14,23 +16,31 @@ localVue.use(VueRouter);
localVue.use(PiniaVuePlugin);
const router = new VueRouter();

jest.mock("vue-router/composables", () => ({
useRoute: jest.fn(() => ({})),
useRouter: jest.fn(() => ({})),
}));

// mock queries
updateContentFields.mockImplementation(async () => {});

const item = {
id: "item_id",
some_data: "some_data",
tags: ["tag1", "tag2", "tag3"],
deleted: false,
visible: true,
};

describe("ContentItem", () => {
let wrapper;

beforeEach(() => {
mockFetcher.path("/api/datasets/{dataset_id}").method("get").mock({ data: item });
wrapper = mount(ContentItem, {
propsData: {
expandDataset: true,
item: {
id: "item_id",
some_data: "some_data",
tags: ["tag1", "tag2", "tag3"],
deleted: false,
visible: true,
},
item,
id: 1,
isDataset: true,
isHistoryItem: true,
Expand Down
Loading

0 comments on commit 74766a3

Please sign in to comment.