[arvados] updated: 2.7.0-6089-g0f3ce3e925

git repository hosting git at public.arvados.org
Wed Mar 13 13:15:17 UTC 2024


Summary of changes:
 .../src/store/side-panel-tree/side-panel-tree-actions.ts  | 15 +++++++--------
 1 file changed, 7 insertions(+), 8 deletions(-)

       via  0f3ce3e9251fbcdd761a9b531332eb94a10381c0 (commit)
      from  0f0fd0ece6c2003b9cb5811af73f5455bdf9a894 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 0f3ce3e9251fbcdd761a9b531332eb94a10381c0
Author: Lisa Knox <lisaknox83 at gmail.com>
Date:   Wed Mar 13 09:14:12 2024 -0400

    21357: refined resource fetches 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 031a7fda53..2fadb0ec01 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
@@ -163,25 +163,21 @@ export const loadFavoritesTree = () => async (dispatch: Dispatch, getState: () =
 
 const setFaves = async(links: LinkResource[], dispatch: Dispatch, getState: () => RootState, services: ServiceRepository) => {
 
-    const responseLinks = await services.linkService.list({
-        filters: new FilterBuilder()
-            .addEqual("link_class", LinkClass.STAR)
-            .addEqual('tail_uuid', getUserUuid(getState()))
-            .addEqual('tail_kind', ResourceKind.USER)
-            .getFilters()
-    }).then(results => results);
-    const uuids = responseLinks.items.map(it => it.headUuid);
+    const uuids = links.map(it => it.headUuid);
     const groupItems: any = await services.groupsService.list({
+        select: ['uuid', 'name'],
         filters: new FilterBuilder()
             .addIn("uuid", uuids)
             .getFilters()
     });
     const collectionItems: any = await services.collectionService.list({
+        select: ['uuid', 'name'],
         filters: new FilterBuilder()
             .addIn("uuid", uuids)
             .getFilters()
     });
     const processItems: any = await services.containerRequestService.list({
+        select: ['uuid', 'name'],
         filters: new FilterBuilder()
             .addIn("uuid", uuids)
             .getFilters()
@@ -225,18 +221,21 @@ export const loadPublicFavoritesTree = () => async (dispatch: Dispatch, getState
 
     const uuids = items.map(it => it.headUuid);
     const groupItems: any = await services.groupsService.list({
+        select: ['uuid', 'name'],
         filters: new FilterBuilder()
             .addIn("uuid", uuids)
             .addIsA("uuid", typeFilters)
             .getFilters()
     });
     const collectionItems: any = await services.collectionService.list({
+        select: ['uuid', 'name'],
         filters: new FilterBuilder()
             .addIn("uuid", uuids)
             .addIsA("uuid", typeFilters)
             .getFilters()
     });
     const processItems: any = await services.containerRequestService.list({
+        select: ['uuid', 'name'],
         filters: new FilterBuilder()
             .addIn("uuid", uuids)
             .addIsA("uuid", typeFilters)

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list