Project

General

Profile

Actions

Bug #6240

open

[API] "order" params should be rejected or used (not silently ignored) even when they reference columns missing from the "select" param

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

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

Description

Works:

tomclegg@shell.4xphq:~$ arv -s collection list --order 'created_at desc' --limit 2
4xphq-4zz18-dlgfut054qerwrz
4xphq-4zz18-cyfxpfhi4hfdf5u
tomclegg@shell.4xphq:~$ arv -s collection list --order 'created_at asc' --limit 2
4xphq-4zz18-0h10cbbqzuqx2ij
4xphq-4zz18-1nksjinjkpy3sja

tomclegg@shell.4xphq:~$ arv -s collection list --select '["uuid","created_at"]' --order 'created_at desc' --limit 2
4xphq-4zz18-dlgfut054qerwrz
4xphq-4zz18-cyfxpfhi4hfdf5u
tomclegg@shell.4xphq:~$ arv -s collection list --select '["uuid","created_at"]' --order 'created_at asc' --limit 2
4xphq-4zz18-0h10cbbqzuqx2ij
4xphq-4zz18-1nksjinjkpy3sja

Silently ignores given order:

tomclegg@shell.4xphq:~$ arv -s collection list --select '["uuid"]' --order 'created_at desc' --limit 2
4xphq-4zz18-004t28r3og3bodi
4xphq-4zz18-00jz1ybalavvh5y
tomclegg@shell.4xphq:~$ arv -s collection list --select '["uuid"]' --order 'created_at asc' --limit 2
4xphq-4zz18-004t28r3og3bodi
4xphq-4zz18-00jz1ybalavvh5y
Actions

Also available in: Atom PDF