Re: [Dhis2-devs] charts through API - filter by filters...

2016-09-19 Thread Olav Poppe
Great, thanks. Olav > 19. sep. 2016 kl. 13.33 skrev Morten Olav Hansen : > > Hi Olav > > This should now be working properly in 224 and master > > https://play.dhis2.org/dev/api/charts.json?fields=id,displayName,filterDimensions&filter=filterDimensions:in:[pe] > >

Re: [Dhis2-devs] charts through API - filter by filters...

2016-09-19 Thread Morten Olav Hansen
Hi Olav This should now be working properly in 224 and master https://play.dhis2.org/dev/api/charts.json?fields=id,displayName,filterDimensions&filter=filterDimensions:in:[pe] https://play.dhis2.org/demo/api/charts.json?fields=id,displayName,filterDimensions&filter=filterDimensions:in:[pe] -- M

Re: [Dhis2-devs] charts through API - filter by filters...

2016-09-15 Thread Morten Olav Hansen
Actually, it's the same bug.. I assume you tried on /demo ? or 224, CI hasn't build it yet.. I have started it now, so in about 30 min there should be a new war file to test That said.. the filtering doesn't actually work for these kinds of arrays, I will look into it -- Morten Olav Hansen Senio

Re: [Dhis2-devs] charts through API - filter by filters...

2016-09-15 Thread Morten Olav Hansen
Hm sounds like a bug, but different but. Let me have a look. On Friday, 16 September 2016, Olav Poppe wrote: > Thanks Morten. > > I tried filterDimensions (api/charts.json?filter=filterDimensions:in:[ou]), > but that gives "internal server error": Caused by: > org.postgresql.util.PSQLException:

Re: [Dhis2-devs] charts through API - filter by filters...

2016-09-15 Thread Olav Poppe
Thanks Morten.I tried filterDimensions (api/charts.json?filter=filterDimensions:in:[ou]), but that gives "internal server error": Caused by: org.postgresql.util.PSQLException: ERROR: syntax error at or near ")" (see attached stacktrace).Is this a bug again, or is my filter wrong somehow?Olav* WARN

Re: [Dhis2-devs] charts through API - filter by filters...

2016-09-15 Thread Morten Olav Hansen
Hi Olav At least the bug with simple collections are now fixed in 224 and master -- Morten Olav Hansen Senior Engineer, DHIS 2 University of Oslo http://www.dhis2.org On Fri, Sep 16, 2016 at 10:24 AM, Morten Olav Hansen wrote: > Hi Olav > > I see there is an issue there with collection of sim

Re: [Dhis2-devs] charts through API - filter by filters...

2016-09-15 Thread Morten Olav Hansen
Hi Olav I see there is an issue there with collection of simple type, I will have a look at it. That said, the filters (and rows) properties are only available if you use /api/charts/ID, as they are populated based on other props, so this filter will not work like that anyways. Maybe you want to