canvas-lms/spec/lib/bookmarked_collection
Jon Jensen 931276caf5 normalize group sorting, add SimpleBookmarker for common case
refs CNVS-6219

what's different in this change:
1. /groups now sorts by name. previously there was no guaranteed order.
2. /api/v1/users/self/groups should now sort by name (was id).
3. /api/v1/group_categories/:group_category_id/groups now sorts groups.
   previously there was no guaranteed order, making pagination unreliable.
4. /api/v1/accounts/:account_id/groups and /api/v1/courses/:course_id/groups
   are no longer case-sensitive, and sort by id in the event of a tie.

test plan:
* see specs
* ensure groups are sorted alphabetically (case insensitive) in the
  following places:
  1. /groups page
  2. /api/v1/users/self/groups
  3. /api/v1/accounts/:account_id/groups
  4. /api/v1/courses/:course_id/groups
  5. /api/v1/group_categories/:group_category_id/groups

Change-Id: I9c4cb34ead05f72640db43d40a67dcef97643de0
Reviewed-on: https://gerrit.instructure.com/22210
Tested-by: Jenkins <jenkins@instructure.com>
Product-Review: Marc LeGendre <marc@instructure.com>
QA-Review: Marc LeGendre <marc@instructure.com>
Reviewed-by: Landon Wilkins <lwilkins@instructure.com>
2013-07-12 23:09:50 +00:00
..
collection_spec.rb bookmarked pagination, including multi-shard 2013-01-22 09:41:18 -07:00
merge_proxy_spec.rb add publish state to assignments 2013-05-17 13:44:19 +00:00
proxy_spec.rb arel-ify specs 2013-03-27 21:51:21 +00:00
simple_bookmarker_spec.rb normalize group sorting, add SimpleBookmarker for common case 2013-07-12 23:09:50 +00:00