[arvados] created: 2.7.0-6602-g3be7b3a4c2

git repository hosting git at public.arvados.org
Fri May 17 16:07:16 UTC 2024


        at  3be7b3a4c2b7e514297f7a506c8f8a2dc0af6e2f (commit)


commit 3be7b3a4c2b7e514297f7a506c8f8a2dc0af6e2f
Author: Lisa Knox <lisaknox83 at gmail.com>
Date:   Fri May 17 12:07:02 2024 -0400

    21712: added category param in link verification function
    
    Arvados-DCO-1.1-Signed-off-by: Lisa Knox <lisa.knox at curii.com>

diff --git a/services/workbench2/src/store/side-panel-tree/side-panel-tree-actions.ts b/services/workbench2/src/store/side-panel-tree/side-panel-tree-actions.ts
index d900c77abb..691b436c83 100644
--- a/services/workbench2/src/store/side-panel-tree/side-panel-tree-actions.ts
+++ b/services/workbench2/src/store/side-panel-tree/side-panel-tree-actions.ts
@@ -102,11 +102,11 @@ export const loadSidePanelTreeProjects = (projectUuid: string) =>
         const node = treePicker ? getNode(projectUuid)(treePicker) : undefined;
         if (projectUuid === SidePanelTreeCategory.PUBLIC_FAVORITES) {
             const unverifiedPubFaves = await dispatch<any>(loadPublicFavoritesTree());
-            verifyAndUpdateLinkNames(unverifiedPubFaves, dispatch, getState, services);
+            verifyAndUpdateLinkNames(projectUuid, unverifiedPubFaves, dispatch, getState, services);
         } else if (projectUuid === SidePanelTreeCategory.FAVORITES) {
             const unverifiedFaves = await dispatch<any>(loadFavoritesTree());
             await setFaves(unverifiedFaves, dispatch, getState, services);
-            verifyAndUpdateLinkNames(unverifiedFaves, dispatch, getState, services);
+            verifyAndUpdateLinkNames(projectUuid, unverifiedFaves, dispatch, getState, services);
         } else if (node || projectUuid !== '') {
             await dispatch<any>(loadProject(projectUuid));
         }
@@ -188,12 +188,12 @@ const setFaves = async(links: LinkResource[], dispatch: Dispatch, getState: () =
     dispatch(resourcesActions.SET_RESOURCES(responseItems));
 };
 
-const verifyAndUpdateLinkNames = async (links: LinkResource[], dispatch: Dispatch, getState: () => RootState, services: ServiceRepository) => {
+const verifyAndUpdateLinkNames = async (category: SidePanelTreeCategory, links: LinkResource[], dispatch: Dispatch, getState: () => RootState, services: ServiceRepository) => {
     const verfifiedLinks = await verifyAndUpdateLinks(links, dispatch, getState, services);
 
     dispatch(
         treePickerActions.LOAD_TREE_PICKER_NODE_SUCCESS({
-            id: SidePanelTreeCategory.FAVORITES,
+            id: category,
             pickerId: SIDE_PANEL_TREE,
             nodes: verfifiedLinks.map(item => initTreeNode({ id: item.headUuid, value: item })),
         })

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list