[ARVADOS] updated: b914818fb9e794dab68c428a52666507352a6770

git at public.curoverse.com git at public.curoverse.com
Fri Apr 25 15:44:32 EDT 2014


Summary of changes:
 .../api/app/controllers/application_controller.rb  |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

       via  b914818fb9e794dab68c428a52666507352a6770 (commit)
      from  6d2128ae15825ef03472897e09710b176e3cc1d9 (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 b914818fb9e794dab68c428a52666507352a6770
Author: Peter Amstutz <peter.amstutz at curoverse.com>
Date:   Fri Apr 25 15:44:29 2014 -0400

    Bugfix.  Objects returned by owned_items are now sorted by uuid in order to get
    a stable sort order when paging with limit and offset.

diff --git a/services/api/app/controllers/application_controller.rb b/services/api/app/controllers/application_controller.rb
index 6339125..713f2cf 100644
--- a/services/api/app/controllers/application_controller.rb
+++ b/services/api/app/controllers/application_controller.rb
@@ -103,7 +103,7 @@ class ApplicationController < ActionController::Base
                   "    AND mng_links.head_uuid=#{klass.table_name}.uuid")
           cond_sql += " OR mng_links.uuid IS NOT NULL"
         end
-        @objects = @objects.where(cond_sql, *cond_params)
+        @objects = @objects.where(cond_sql, *cond_params).order(:uuid)
         @limit = limit_all - all_objects.count
         apply_where_limit_order_params
         items_available = @objects.

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list