[ARVADOS-WORKBENCH2] updated: 1.4.1-91-gdec81d42

Git user git at public.curoverse.com
Tue Nov 5 21:12:39 UTC 2019


Summary of changes:
 src/store/auth/auth-action-session.ts | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

       via  dec81d42222814723ff0386665928045ff41eac8 (commit)
      from  087d49d5c43866c8a20e8ac830ccc9b12188408f (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 dec81d42222814723ff0386665928045ff41eac8
Author: Peter Amstutz <pamstutz at veritasgenetics.com>
Date:   Tue Nov 5 16:12:09 2019 -0500

    15736: Make sure to save sessions from state not local

diff --git a/src/store/auth/auth-action-session.ts b/src/store/auth/auth-action-session.ts
index 1c9d1d14..5b8acf9a 100644
--- a/src/store/auth/auth-action-session.ts
+++ b/src/store/auth/auth-action-session.ts
@@ -203,7 +203,7 @@ export const validateSessions = () =>
                     }
                 }
             }
-            services.authService.saveSessions(sessions);
+            services.authService.saveSessions(getState().auth.sessions);
             dispatch(progressIndicatorActions.STOP_WORKING("sessionsValidation"));
         }
     };
@@ -246,9 +246,9 @@ export const addSession = (remoteHost: string, token?: string, sendToLogin?: boo
                 };
 
                 if (sessions.find(s => s.clusterId === config.uuidPrefix)) {
-                    dispatch(authActions.UPDATE_SESSION(session));
+                    await dispatch(authActions.UPDATE_SESSION(session));
                 } else {
-                    dispatch(authActions.ADD_SESSION(session));
+                    await dispatch(authActions.ADD_SESSION(session));
                 }
                 services.authService.saveSessions(getState().auth.sessions);
 
@@ -302,7 +302,6 @@ export const toggleSession = (session: Session) =>
 export const initSessions = (authService: AuthService, config: Config, user: User) =>
     (dispatch: Dispatch<any>) => {
         const sessions = authService.buildSessions(config, user);
-        authService.saveSessions(sessions);
         dispatch(authActions.SET_SESSIONS(sessions));
         dispatch(validateSessions());
     };

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list