[ARVADOS] updated: 30186c3f928d280e4af97a4989d7a82dfe68d592

Git user git at public.curoverse.com
Fri Jun 30 11:05:25 EDT 2017


Summary of changes:
 apps/workbench/app/controllers/repositories_controller.rb | 4 ++--
 apps/workbench/app/views/repositories/_show_help.html.erb | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

       via  30186c3f928d280e4af97a4989d7a82dfe68d592 (commit)
      from  d898b4cb9c5e4a0e9366fa987d0e51af1918ae58 (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 30186c3f928d280e4af97a4989d7a82dfe68d592
Author: radhika <radhika at curoverse.com>
Date:   Fri Jun 30 11:05:00 2017 -0400

    11870: minor updates
    
    Arvados-DCO-1.1-Signed-off-by: Radhika Chippada <radhika at curoverse.com>

diff --git a/apps/workbench/app/controllers/repositories_controller.rb b/apps/workbench/app/controllers/repositories_controller.rb
index 78ac055..37bc000 100644
--- a/apps/workbench/app/controllers/repositories_controller.rb
+++ b/apps/workbench/app/controllers/repositories_controller.rb
@@ -34,8 +34,8 @@ class RepositoriesController < ApplicationController
   end
 
   def all_repos
-    limit = if params[:limit] then params[:limit].to_i else 100 end
-    offset = if params[:offset] then params[:offset].to_i else 0 end
+    limit = params[:limit].andand.to_i || 100
+    offset = params[:offset].andand.to_i || 0
     @filters = params[:filters] || []
 
     if @filters.any?
diff --git a/apps/workbench/app/views/repositories/_show_help.html.erb b/apps/workbench/app/views/repositories/_show_help.html.erb
index 0983d87..afc7e54 100644
--- a/apps/workbench/app/views/repositories/_show_help.html.erb
+++ b/apps/workbench/app/views/repositories/_show_help.html.erb
@@ -1,7 +1,7 @@
 <%
     filters = @filters + [["owner_uuid", "=", current_user.uuid]]
-    example = Repository.all.order("name ASC").limit(1).filter(filters).results.first
-    example = Repository.all.order("name ASC").limit(1).results.first if !example
+    example = Repository.all.order("name ASC").filter(filters).limit(1).results.first
+    example = Repository.all.order("name ASC").results.limit(1).first if !example
 %>
 
 <% if example %>

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list