USUsr0003 ‐ Filter Data Artifacts IDs by Schema Name - OpenScienceChain/OSC-IS_Doc GitHub Wiki

Acceptance criteria

US Identifier USUsr0003
Name Filter Data Artifact IDs by Schema Name
Description As an user (PI or not) of the BC network, I want to filter Data based on a schema name, so that I can check which data has been submitted under that schema.
Acceptance Criteria
1. * The user gets authenticated to the network, under an specific Org.
2. * The user sends out an invocation through the Org's API to list all the List Artifacts IDs, associated to a Specific Schema Name.
3. * The user has to provide the Schema Name, a page size number, and a bookmark name. If the user fails to provide any of them, an error should be shown to the user: {'msg': 'Please, provide the Schema Name, a page size number, and a bookmark name to complete your request.'}
4. * The group name can be empty. If it is, the app checks to which groups the user belongs to.
5. * If the user is part of only one group, then continue.
6. * If the user is part of more than one group, show message: "the user is part of more than one group. Please provide a single valid group Name"
7. * If the user is part of no group, show: "the user is not part of any group. We can't retrieve any artifacts"
8. * It the user provided a non empty group name, the app should check if that user belongs to that group. If the user does, continue. if noit, show: "the user is not part of group_name_given. Please provide either an empty or a valid group Name"
9. * The app retrieves the artifact ids associated to the org of the user, the group name, and the schema name. If no artifacts are found, show: "no artifacts found for the given schemaName"

Assessment (INVEST)

CRITERIA REVIEW
Independent Story is independent enough.
Negotiable The story is negotiable.
Valuable The story is valuable for the user because it helps them obtain critical information about Artifacts history.
Estimable Estimation of the story will need the rest of the team's assessment.
Small The story is small and can be handled on time.
Testable The acceptance criteria establish specific conditions that determine where tests may be appropriately applied.