Open adborden opened 4 years ago
While this is a bit in the weeds on data, redesigning catalog to think of publisher hierarchies would be helpful. Tagging @hkdctol , @CarolinaC-REI , @tdlowden for review.
yes, good to uncover for the catalog design work
User Story
In order to easily filter results based on publisher organizations, open data user wants the publisher organization hierarchy captured in extras so they can easily be queried.
Acceptance Criteria
[ACs should be clearly demoable/verifiable whenever possible. Try specifying them using BDD.]
Background
Inventory and Catalog treat publisher differently, despite both using the same ckanext-datajson extension. For example, the [data.gov ckan API dataset]() in Inventory has a distinct hierarchy of publishers:
But in Catalog, only the child-most or "leaf" publisher exists.
In Inventory, you can do things like find all datasets of TTS, even if the publisher leaf might be different. curl -v -H "Authorization: $CKAN_API_KEY" 'https://inventory.data.gov/api/action/package_search?fq=publisher_1:"Technology+Transformation+Service"'
Note: the above query returns no results in Inventory, I'm not sure if that's a separate issue or something about how the query is parsed.
Security Considerations (required)
[Any security concerns that might be implicated in the change. "None" is OK, just be explicit here!]
Sketch
[Notes or a checklist reflecting our understanding of the selected approach]