[ARVADOS] updated: 1.1.3-6-g3c31a5e

Git user git at public.curoverse.com
Mon Feb 12 12:19:15 EST 2018


Summary of changes:
 apps/workbench/app/assets/javascripts/components/search.js   | 1 +
 apps/workbench/app/assets/javascripts/components/sessions.js | 1 +
 apps/workbench/app/views/search/index.html                   | 7 -------
 apps/workbench/app/views/sessions/index.html                 | 7 -------
 4 files changed, 2 insertions(+), 14 deletions(-)

       via  3c31a5e643b930d1cdf227d2f5b151df48f20601 (commit)
      from  8dd93ce870df1f438fab7fceebe6abdec9763199 (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 3c31a5e643b930d1cdf227d2f5b151df48f20601
Author: Lucas Di Pentima <ldipentima at veritasgenetics.com>
Date:   Mon Feb 12 14:15:11 2018 -0300

    11454: Avoid instantiating new SessionDB before autoRedirectToHomeCluster()
    
    Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <ldipentima at veritasgenetics.com>

diff --git a/apps/workbench/app/assets/javascripts/components/search.js b/apps/workbench/app/assets/javascripts/components/search.js
index f4fde12..04572ec 100644
--- a/apps/workbench/app/assets/javascripts/components/search.js
+++ b/apps/workbench/app/assets/javascripts/components/search.js
@@ -104,6 +104,7 @@ window.SearchResultsTable = {
 window.Search = {
     oninit: function(vnode) {
         vnode.state.sessionDB = new SessionDB()
+        vnode.state.sessionDB.autoRedirectToHomeCluster('/search')
         vnode.state.searchEntered = m.stream()
         vnode.state.searchActive = m.stream()
         // When searchActive changes (e.g., when restoring state
diff --git a/apps/workbench/app/assets/javascripts/components/sessions.js b/apps/workbench/app/assets/javascripts/components/sessions.js
index f9e54ad..e172d3a 100644
--- a/apps/workbench/app/assets/javascripts/components/sessions.js
+++ b/apps/workbench/app/assets/javascripts/components/sessions.js
@@ -12,6 +12,7 @@ $(document).on('ready', function() {
 window.SessionsTable = {
     oninit: function(vnode) {
         vnode.state.db = new SessionDB();
+        vnode.state.db.autoRedirectToHomeCluster('/sessions');
         vnode.state.db.migrateNonFederatedSessions();
         vnode.state.hostToAdd = m.stream('');
         vnode.state.error = m.stream();
diff --git a/apps/workbench/app/views/search/index.html b/apps/workbench/app/views/search/index.html
index c26a643..6bcad0b 100644
--- a/apps/workbench/app/views/search/index.html
+++ b/apps/workbench/app/views/search/index.html
@@ -2,11 +2,4 @@
 
 SPDX-License-Identifier: AGPL-3.0 -->
 
-<script type="text/javascript">
-    $(document).on('ready', function() {
-        var db = new SessionDB()
-        db.autoRedirectToHomeCluster('/search')
-    })
-</script>
-
 <div data-mount-mithril="Search"></div>
diff --git a/apps/workbench/app/views/sessions/index.html b/apps/workbench/app/views/sessions/index.html
index ee1f636..bf23028 100644
--- a/apps/workbench/app/views/sessions/index.html
+++ b/apps/workbench/app/views/sessions/index.html
@@ -2,11 +2,4 @@
 
 SPDX-License-Identifier: AGPL-3.0 -->
 
-<script type="text/javascript">
-    $(document).on('ready', function() {
-        var db = new SessionDB()
-        db.autoRedirectToHomeCluster('/sessions')
-    })
-</script>
-
 <div data-mount-mithril="SessionsTable"></div>

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list