[ARVADOS-WORKBENCH2] updated: 2.2.1-118-gdb354daa

Git user git at public.arvados.org
Thu Nov 4 00:40:58 UTC 2021


Summary of changes:
 src/models/group.ts                              | 1 +
 src/models/project.ts                            | 2 +-
 src/store/groups-panel/groups-panel-actions.ts   | 4 ++--
 src/views-components/data-explorer/renderers.tsx | 2 +-
 4 files changed, 5 insertions(+), 4 deletions(-)

       via  db354daa7825bd4c91e9b06ed81e6c83e1e1c999 (commit)
       via  7a680cc5d30e85f46c417892cc3c42467ebee2b9 (commit)
      from  7321d5c4f34a9d4288602b6e6ce8c8560f3614ee (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 db354daa7825bd4c91e9b06ed81e6c83e1e1c999
Author: Stephen Smith <stephen at curii.com>
Date:   Wed Nov 3 20:39:23 2021 -0400

    18123: Fix directionality of link tail renderer.
    
    Arvados-DCO-1.1-Signed-off-by: Stephen Smith <stephen at curii.com>

diff --git a/src/views-components/data-explorer/renderers.tsx b/src/views-components/data-explorer/renderers.tsx
index 77b5b694..71b82b6f 100644
--- a/src/views-components/data-explorer/renderers.tsx
+++ b/src/views-components/data-explorer/renderers.tsx
@@ -309,7 +309,7 @@ export const ResourceLinkTail = connect(
         const tailResource = getResource<Resource>(resource?.tailUuid || '')(state.resources);
 
         return {
-            item: tailResource || { uuid: resource?.tailUuid || '', kind: resource?.headKind || ResourceKind.NONE }
+            item: tailResource || { uuid: resource?.tailUuid || '', kind: resource?.tailKind || ResourceKind.NONE }
         };
     })((props: { item: Resource } & DispatchProp<any>) =>
         renderLink(props.dispatch, props.item));

commit 7a680cc5d30e85f46c417892cc3c42467ebee2b9
Author: Stephen Smith <stephen at curii.com>
Date:   Wed Nov 3 20:35:01 2021 -0400

    18123: Add role group class to model to fix creating groups.
    
    Arvados-DCO-1.1-Signed-off-by: Stephen Smith <stephen at curii.com>

diff --git a/src/models/group.ts b/src/models/group.ts
index 365e9cce..7d144a58 100644
--- a/src/models/group.ts
+++ b/src/models/group.ts
@@ -17,4 +17,5 @@ export interface GroupResource extends TrashableResource {
 export enum GroupClass {
     PROJECT = 'project',
     FILTER  = 'filter',
+    ROLE  = 'role',
 }
diff --git a/src/models/project.ts b/src/models/project.ts
index 86ac04f6..b47b426f 100644
--- a/src/models/project.ts
+++ b/src/models/project.ts
@@ -5,7 +5,7 @@
 import { GroupClass, GroupResource } from "./group";
 
 export interface ProjectResource extends GroupResource {
-    groupClass: GroupClass.PROJECT | GroupClass.FILTER;
+    groupClass: GroupClass.PROJECT | GroupClass.FILTER | GroupClass.ROLE;
 }
 
 export const getProjectUrl = (uuid: string) => {
diff --git a/src/store/groups-panel/groups-panel-actions.ts b/src/store/groups-panel/groups-panel-actions.ts
index dcf81f2d..099d046d 100644
--- a/src/store/groups-panel/groups-panel-actions.ts
+++ b/src/store/groups-panel/groups-panel-actions.ts
@@ -10,7 +10,7 @@ import { Participant } from 'views-components/sharing-dialog/participant-select'
 import { RootState } from 'store/store';
 import { ServiceRepository } from 'services/services';
 import { getResource } from 'store/resources/resources';
-import { GroupResource } from 'models/group';
+import { GroupResource, GroupClass } from 'models/group';
 import { getCommonResourceServiceError, CommonResourceServiceError } from 'services/common-service/common-resource-service';
 import { snackbarActions, SnackbarKind } from 'store/snackbar/snackbar-actions';
 import { PermissionLevel } from 'models/permission';
@@ -72,7 +72,7 @@ export const createGroup = ({ name, users = [] }: CreateGroupFormData) =>
     async (dispatch: Dispatch, _: {}, { groupsService, permissionService }: ServiceRepository) => {
         dispatch(startSubmit(CREATE_GROUP_FORM));
         try {
-            const newGroup = await groupsService.create({ name });
+            const newGroup = await groupsService.create({ name, groupClass: GroupClass.ROLE });
             for (const user of users) {
                 await addGroupMember({
                     user,

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list