GSA / data.gov

Main repository for the data.gov service
https://data.gov
Other
661 stars 103 forks source link

Describe isPartOf relations in DCAT-US dataset as Collection in catalog-next #4969

Open FuhuXia opened 3 weeks ago

FuhuXia commented 3 weeks ago

User Story

In order to show relations of DCAT-US datasets linked to each other with isPartOf field, data.gov teams wants group those datasets into Collections in the catalog-next.

Acceptance Criteria

[ACs should be clearly demoable/verifiable whenever possible. Try specifying them using BDD.]

Parent dataset behavior:

Children dataset behavior:

Background

The UI should be similar to the Collection in the existing catalog.data.gov. The difference is that there is no additional CKAN field in the extras collection_metadata=true to indicate a parent(collection) dataset. The collection relations are built by querying SOLR index with harvest_source_id and isPartOf values.

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]

FuhuXia commented 3 weeks ago

Collection page has its own story.

FuhuXia commented 1 week ago

Most of work is done in PR https://github.com/GSA/ckanext-geodatagov/pull/282, keeping collection UI and user experience same as current catalog, but on the backend it is rewritten use solr query to tell parent-child relationship, since ckan is not aware if dataset is part of a collection.

Some side effects of ckan loosing control of collection logic are:

TODO add collection icon to parent datasets on the dataset listing page.