zimmerman-team / IATI.cloud

IATI datastore powered by Apache Solr. Automatically Extracts and parses IATI XML files referenced in the IATI Registry & refreshed every 3 hrs. IATI is a global initiative to improve the transparency of development and humanitarian resources and their results for addressing poverty and crises.
https://datastore.iati.cloud
MIT License
32 stars 28 forks source link

Feature request: Save query builder state #1863

Closed andylolz closed 3 years ago

andylolz commented 4 years ago

Is your feature request related to a problem? Please describe.

The query builder currently generates a query that can be saved and re-used (v useful!)

Sometimes it’s handy to modify this generated query (e.g. change the sector code or recipient country).

Describe the solution you'd like

It would be useful to be able to load the generated query back into the query builder, and edit it there. I imagine this being done via (for instance) an extra edit=true query parameter, so that it can easily be appended to an existing query.

Describe alternatives you've considered

The current alternative is to build the query again from scratch. If the query involves a lot of fields, this can be quite time-consuming.

siemvaessen commented 3 years ago

This is possible in QB:

https://iatidatastore.iatistandard.org/search/activity?q=recipient_country_code:(KE NE NG RW) AND activity_status_code:(2) AND humanitarian:(0)&wt=json&rows=50

Added 4 countries, 2 additional filters etc. So I will close this. Do feel free to change if you had something else in mind!

andylolz commented 3 years ago

Apologies, I think you’ve misunderstood this request.

In order to add more countries to your query, I have to edit the query string. That’s okay for a technical user, but not so good for a less technical user.

This ticket is about allowing the user to edit the query via a web interface. So, some means of recovering a populated form, rather than JSON output.

I understand if this is a wontfix. But I don’t think it’s correct to say it’s already possible in the QB.

siemvaessen commented 3 years ago

Ah, gotcha! Moving this back as we may do some interface updates in the final quarter on the QB to facilitate some other requests from the past.

andylolz commented 3 years ago

Ace – thanks Siem.

I appreciate this is a “nice to have” rather than a crucial feature. I think there was some more discussion about this feature this on discuss… I’ll try and track that down!