X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/6bdb4758d981aa05c19700761d3ace0db7af324a..795e98eac92b86652d3fe9de6657ffffc009d90e:/src/store/side-panel-tree/side-panel-tree-actions.ts diff --git a/src/store/side-panel-tree/side-panel-tree-actions.ts b/src/store/side-panel-tree/side-panel-tree-actions.ts index 4aa5e26e..1f18b85c 100644 --- a/src/store/side-panel-tree/side-panel-tree-actions.ts +++ b/src/store/side-panel-tree/side-panel-tree-actions.ts @@ -23,7 +23,8 @@ export enum SidePanelTreeCategory { PUBLIC_FAVORITES = 'Public Favorites', WORKFLOWS = 'Workflows', FAVORITES = 'Favorites', - TRASH = 'Trash' + TRASH = 'Trash', + ALL_PROCESSES = 'All Processes' } export const SIDE_PANEL_TREE = 'sidePanelTree'; @@ -44,6 +45,7 @@ export const getSidePanelTreeBranch = (uuid: string) => (treePicker: TreePicker) }; const SIDE_PANEL_CATEGORIES = [ + SidePanelTreeCategory.ALL_PROCESSES, SidePanelTreeCategory.PUBLIC_FAVORITES, SidePanelTreeCategory.WORKFLOWS, SidePanelTreeCategory.FAVORITES, @@ -55,9 +57,7 @@ export const isSidePanelTreeCategory = (id: string) => SIDE_PANEL_CATEGORIES.som export const initSidePanelTree = () => (dispatch: Dispatch, getState: () => RootState, { authService }: ServiceRepository) => { const rootProjectUuid = getUserUuid(getState()); - if (!rootProjectUuid) { - return; - } + if (!rootProjectUuid) { return; } const nodes = SIDE_PANEL_CATEGORIES.map(id => initTreeNode({ id, value: id })); const projectsNode = initTreeNode({ id: rootProjectUuid, value: SidePanelTreeCategory.PROJECTS }); const sharedNode = initTreeNode({ id: SidePanelTreeCategory.SHARED_WITH_ME, value: SidePanelTreeCategory.SHARED_WITH_ME }); @@ -91,7 +91,7 @@ const loadProject = (projectUuid: string) => dispatch(treePickerActions.LOAD_TREE_PICKER_NODE({ id: projectUuid, pickerId: SIDE_PANEL_TREE })); const params = { filters: new FilterBuilder() - .addEqual('ownerUuid', projectUuid) + .addEqual('owner_uuid', projectUuid) .getFilters(), order: new OrderBuilder() .addAsc('name') @@ -112,7 +112,7 @@ const loadSharedRoot = async (dispatch: Dispatch, _: () => RootState, services: const params = { filters: `[${new FilterBuilder() .addIsA('uuid', ResourceKind.PROJECT) - .addEqual('groupClass', GroupClass.PROJECT) + .addEqual('group_class', GroupClass.PROJECT) .getFilters()}]`, order: new OrderBuilder() .addAsc('name', GroupContentsResourcePrefix.PROJECT) @@ -161,9 +161,7 @@ export const activateSidePanelTreeProject = (id: string) => export const activateSidePanelTreeBranch = (id: string) => async (dispatch: Dispatch, getState: () => RootState, services: ServiceRepository) => { const userUuid = getUserUuid(getState()); - if (!userUuid) { - return; - } + if (!userUuid) { return; } const ancestors = await services.ancestorsService.ancestors(id, userUuid); const isShared = ancestors.every(({ uuid }) => uuid !== userUuid); if (isShared) {