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" |