Skip to content

Commit 1f50036

Browse files
authored
Merge pull request #41 from bcgsc/feature/KBDEV-1514-add-bulk-write-user-group
Feature/kbdev 1514 add bulk write user group
2 parents 8dae5e0 + e7d7688 commit 1f50036

3 files changed

Lines changed: 4 additions & 1 deletion

File tree

src/definitions/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ const BASE_SCHEMA: PartialSchemaDefn = {
5555
admin: PERMISSIONS.ALL,
5656
regular: PERMISSIONS.CREATE | PERMISSIONS.UPDATE | PERMISSIONS.READ,
5757
manager: PERMISSIONS.CREATE | PERMISSIONS.UPDATE | PERMISSIONS.READ,
58+
bulkWrite: PERMISSIONS.CREATE | PERMISSIONS.UPDATE | PERMISSIONS.READ,
5859
},
5960
description: 'External database, collection, or other authority which is used as reference for other entries',
6061
inherits: ['V', 'Evidence'],
@@ -121,6 +122,7 @@ const BASE_SCHEMA: PartialSchemaDefn = {
121122
admin: PERMISSIONS.ALL,
122123
regular: PERMISSIONS.READ,
123124
manager: PERMISSIONS.READ,
125+
bulkWrite: PERMISSIONS.READ,
124126
},
125127
properties: [
126128
{

src/definitions/ontology.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,7 @@ const models: PartialSchemaDefn = {
292292
default: PERMISSIONS.READ,
293293
admin: PERMISSIONS.ALL,
294294
manager: PERMISSIONS.ALL,
295+
bulkWrite: PERMISSIONS.ALL,
295296
},
296297
description: 'Curated list of terms used in classifying variants or assigning relevance to statements',
297298
inherits: ['Ontology'],

src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export type EmbeddedVertexName = (
8080

8181
export type ClassName = VertexName | EdgeName | EmbeddedVertexName;
8282

83-
export type GroupName = 'readonly' | 'regular' | 'manager' | 'admin';
83+
export type GroupName = 'readonly' | 'regular' | 'manager' | 'admin' | 'bulkWrite';
8484

8585
export type ClassPermissions = Partial<Record<GroupName, number> > & { default?: number };
8686

0 commit comments

Comments
 (0)