whiteoctober / IATI

AidView
aidview.net
7 stars 3 forks source link

Filter selection not always showing #74

Closed siwhitehouse closed 11 years ago

siwhitehouse commented 11 years ago

When selecting filters they are not always shown as such in the AidView UI.

For instance:

http://aidview.net/activities?Country=BS

ought to show "Selected: Bahamas " in the bottom left. Instead I'm seeing "Selected:--".

I've taken a quick look at the API and can't see why this might be the case from the response I get from it, although I'm uncertain of the precise call you're using.

siwhitehouse commented 11 years ago

We are also seeing some peculiar behaviour when selecting a country followed by an organisation. Sometimes it is not remembering the Country selection and at other times it is. We've tested this on a couple of different machines and have cleared the cache but aren't seeing a resolution (or can find a reason why it is happening).

It would be good to discuss a way to diagnose this with you.

benfoxall commented 11 years ago

Looks like the initial issue is to do with the page size being fixed on the api, the result is now (correctly) limited to 20 items.

http://data.aidinfolabs.org/xquery/woapi.xq?format=json&groupby=Country&result=values

I'll enter a high limit for this query

The second issue in your comment is resolved at a803c088bcdbf920ef582776138f411a68c21bf8

Mattdevinit commented 11 years ago

This looks great now for filter by sector and filter by country, but doesn't seem to work for filter by organisation (i.e doesn't show which organisation you have filtered)? And thanks for sorting the issue whereby filter by organisation reset to an original search by organisation