dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #51150
Re: How do I filter for authorities
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@xxxxxxxxxxxxxx>
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,aut
> horities&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@xxxxxxxxxxxxxx | http://www.baosystems.com | Skype:
> hardingt@xxxxxxxxx | 2900 K Street, Suite 507, Washington D.C. 20007
>
> _______________________________________________
> Mailing list: https://launchpad.net/~dhis2-devs
> Post to : dhis2-devs@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dhis2-devs
> More help : https://help.launchpad.net/ListHelp
>
>
References