IATI / IATI-Datastore

An open-source datastore for IATI data with RESTful web API providing XML, JSON, CSV plus ETL tools
http://datastore.iatistandard.org/
Other
1 stars 0 forks source link

sector filter ignores vocabularies #285

Closed andylolz closed 3 years ago

andylolz commented 6 years ago

This issue was raised in a comment from @hayfield on IATI discuss.

The datastore documentation says the sector filter works by DAC 5-digit sectors. However, that’s not the case. It’s apparent that vocabularies are ignored, so all sector vocabs are treated uniformly. This is sort of an undocumented feature, but could also result in false positives.

To fix the bug:

any sector elements that have the vocabulary attribute set and not equal to 1 (i.e. DAC 5-digit) should be ignored.

To add the feature:

it should also be possible to filter by sector vocabulary.