Open simon-20 opened 2 months ago
Thanks for raising this @simon-20 - this looks well described to me.
@cormachallinanderilinx This has a low priority and isn't blocking anything from my side, so no need to act on this atm.
@dan-odsc We should sanity check with @robredpath if this has any higher priority.
Brief Description The
package_search
endpoint lists dataset/package metadata according to the search criteria. The metadata object it returns for each dataset appears to be, and I think should be, the same as the metadata object that is returned for a single dataset by thepackage_show
API endpoint. However, the metadata entries returned by thepackage_search
endpoint lack four fields that are present on thepackage_show
endpoint.Severity Low
Issue Location
https://iatiregistry.org/api/3/action/package_search
Steps to Reproduce
Use
httpie
to fetch a single dataset from thepackage_search
endpoint and run it throughjq
to extract just the metadata for the single dataset requested:http "https://iatiregistry.org/api/3/action/package_search" rows=1 | jq ".result.results[0]"
On 27-08-2024 this returned:
If you request the same dataset metadata direct from
package_show
, using the this command:http "https://iatiregistry.org/api/action/package_show" id=e5c1eea4-c9bf-41ca-b9ed-caa0a232e758 | jq ".result"
You get the following result, which is identical except that it has four additional fields at the end:Expected Results/Behaviour I would expect the four fields shown in
package_show
to also be returned bypackage_search
.