You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
GIVEN a dataset's identifier is the value of isPartOf field of other datasets
AND they are from the same harvest source
WHEN the dataset is listed in a search result
THEN a collection icon shows up to indicate it is a Collection \
GIVEN a dataset's identifier is the value of isPartOf field of other datasets
AND they are from the same harvest source
AND all children datasets are in the deleted state
WHEN the dataset is listed in a search result
THEN there is NO collection icon to this dataset \
GIVEN a dataset's identifier is the value of isPartOf field of other datasets
AND they are from the same harvest source
WHEN the dataset detail page is visited
THEN there is a block to indicate this is a Collection
AND there is a link to the Collection page.
GIVEN a Collection page is visited
THEN all the collection's children datasets are listed
AND you can search within this Collection.
Children dataset behavior:
GIVEN a dataset with a value for isPartOf value
THEN the dataset is hidden from normal search result
AND does not count in the total dataset count
GIVEN a dataset with a value for isPartOf value
THEN the dataset is listed in its Collection page
GIVEN a dataset with a value for isPartOf value
THEN the dataset detail page should indicate it is part of a Collection.
GIVEN a dataset with a value for isPartOf value
AND the parent dataset is active
THEN the dataset detail page should have a link to the parent dataset.
GIVEN a dataset with a value for isPartOf value
AND the parent dataset is not active (deleted or does not exist)
THEN the dataset detail page should have a link to its Collection page
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.
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 intoCollections
in the catalog-next.Acceptance Criteria
[ACs should be clearly demoable/verifiable whenever possible. Try specifying them using BDD.]
Parent dataset behavior:
GIVEN a dataset's identifier is the value of
isPartOf
field of other datasetsAND they are from the same harvest source
WHEN the dataset is listed in a search result
THEN a collection icon shows up to indicate it is a
Collection
\GIVEN a dataset's identifier is the value of
isPartOf
field of other datasetsAND they are from the same harvest source
AND all children datasets are in the
deleted
stateWHEN the dataset is listed in a search result
THEN there is NO collection icon to this dataset \
GIVEN a dataset's identifier is the value of
isPartOf
field of other datasetsAND they are from the same harvest source
WHEN the dataset detail page is visited
THEN there is a block to indicate this is a
Collection
AND there is a link to the
Collection
page.GIVEN a
Collection
page is visitedTHEN all the collection's children datasets are listed
AND you can search within this
Collection
.Children dataset behavior:
GIVEN a dataset with a value for
isPartOf
valueTHEN the dataset is hidden from normal search result
AND does not count in the total dataset count
GIVEN a dataset with a value for
isPartOf
valueTHEN the dataset is listed in its
Collection
pageGIVEN a dataset with a value for
isPartOf
valueTHEN the dataset detail page should indicate it is part of a
Collection
.GIVEN a dataset with a value for
isPartOf
valueAND the parent dataset is active
THEN the dataset detail page should have a link to the parent dataset.
GIVEN a dataset with a value for
isPartOf
valueAND the parent dataset is not active (deleted or does not exist)
THEN the dataset detail page should have a link to its
Collection
pageBackground
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 extrascollection_metadata=true
to indicate a parent(collection) dataset. The collection relations are built by querying SOLR index withharvest_source_id
andisPartOf
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]
The text was updated successfully, but these errors were encountered: