Hello!
I’m attempting to filter for roles with a specific authority and I’m getting a strange response:
Specifically:
Collection size must be integer F_PROGRAM_INDICATOR_PUBLIC_ADD
The URL I’m using is:
https://play.dhis2.org/2.29/api/userRoles?fields=name,id,authorities&filter=authorities:eq:F_PROGRAM_INDICATOR_PUBLIC_ADD
I haven’t tried this on 2.28 or 2.27, currently testing out some of the role changes for 2.29. Does anyone know what might be wrong with my syntax?
···
Timothy Harding
Sr. Systems Analyst, BAO Systems
+1 202-536-1541 | tharding@baosystems.com | http://www.baosystems.com | Skype: hardingt@gmail.com | 2900 K Street, Suite 507, Washington D.C. 20007
morten
(Morten Hansen)
2 May 2018 04:05
2
Hi Timothy
When you filter directly on a collection like that, what we do is to compare size only (so you can do authorities:eq:12), we don’t currently support filtering on collections of primitives (int, float, strings, etc).
Feel free to create a jira issue for it, but it might be a bit troublesome… as it can’t be implemented without breaking the current functionality
···
–
Morten Olav Hansen
Senior Engineer, DHIS 2
University of Oslo
http://www.dhis2.org
On Mon, Apr 30, 2018 at 6:57 PM, Timothy Harding tharding@baosystems.com wrote:
Hello!
I’m attempting to filter for roles with a specific authority and I’m getting a strange response:
Specifically:
Collection size must be integer F_PROGRAM_INDICATOR_PUBLIC_ADD
The URL I’m using is:
https://play.dhis2.org/2.29/api/userRoles?fields=name,id,authorities&filter=authorities:eq:F_PROGRAM_INDICATOR_PUBLIC_ADD
I haven’t tried this on 2.28 or 2.27, currently testing out some of the role changes for 2.29. Does anyone know what might be wrong with my syntax?
Timothy Harding
Sr. Systems Analyst, BAO Systems
+1 202-536-1541 | tharding@baosystems.com | http://www.baosystems.com | Skype: hardingt@gmail.com | 2900 K Street, Suite 507, Washington D.C. 20007
Mailing list: https://launchpad.net/~dhis2-devs
Post to : dhis2-devs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~dhis2-devs
More help : https://help.launchpad.net/ListHelp