[ARVADOS-WORKBENCH2] updated: 1.1.4-533-g303a176

Git user git at public.curoverse.com
Mon Aug 6 09:10:14 EDT 2018


Summary of changes:
 src/models/object-types.ts | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)

       via  303a17641bad0df71ac0450d95941c418e9ac1fb (commit)
      from  1121d0dbc1e26350b1063f110d9e90ccdd0f91e8 (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 303a17641bad0df71ac0450d95941c418e9ac1fb
Author: Pawel Kowalczyk <pawel.kowalczyk at contractors.roche.com>
Date:   Mon Aug 6 15:09:53 2018 +0200

    strings for enums
    
    Feature #13905
    
    Arvados-DCO-1.1-Signed-off-by: Pawel Kowalczyk <pawel.kowalczyk at contractors.roche.com>

diff --git a/src/models/object-types.ts b/src/models/object-types.ts
index c01df75..f0f17e0 100644
--- a/src/models/object-types.ts
+++ b/src/models/object-types.ts
@@ -6,18 +6,18 @@ const USER_UUID_REGEX = /.*tpzed.*/;
 const GROUP_UUID_REGEX = /.*-j7d0g-.*/;
 
 export enum ObjectTypes {
-    USER,
-    GROUP,
-    UNKNOWN
+    USER = "User",
+    GROUP = "Group",
+    UNKNOWN = "Unknown"
 }
 
 export const getUuidObjectType = (uuid: string) => {
-    switch(true) {
-       case USER_UUID_REGEX.test(uuid):
-          return ObjectTypes.USER;
-       case GROUP_UUID_REGEX.test(uuid):
-          return ObjectTypes.GROUP;
-       default:
-          return ObjectTypes.UNKNOWN;
+    switch (true) {
+        case USER_UUID_REGEX.test(uuid):
+            return ObjectTypes.USER;
+        case GROUP_UUID_REGEX.test(uuid):
+            return ObjectTypes.GROUP;
+        default:
+            return ObjectTypes.UNKNOWN;
     }
- };
\ No newline at end of file
+};
\ No newline at end of file

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list