Project

General

Profile

Actions

Bug #13763

open

[API] groups#contents response should obey caller-provided order (not sort on type first)

Added by Tom Clegg almost 6 years ago. Updated about 2 months ago.

Status:
New
Priority:
Normal
Assigned To:
-
Category:
API
Target version:
Story points:
-
Release:
Release relationship:
Auto

Description

Currently if a groups#contents request specifies order=[name], the response will be ordered

type=group              name=foo1
type=group              name=foo3
type=collection         name=foo2
type=collection         name=foo4
type=container_request  name=(null)

The response should be ordered

type=group              name=foo1
type=collection         name=foo2
type=group              name=foo3
type=collection         name=foo4
type=container_request  name=(null)
Nonexistent columns should be sorted as "greater than null". For example, with order=["groups.group_class", "users.first_name desc", "uuid"], the order of returned items should be
  1. groups with non-null group_class (sorted by group_class)
  2. groups with null group_class (sorted by uuid)
  3. users with null first_name (sorted by uuid)
  4. users with non-null first_name (sorted by descending first_name)
  5. container requests (sorted by uuid)
Actions

Also available in: Atom PDF