USUsr0001 ‐ List Schema Names by Org and Group Name - OpenScienceChain/OSC-IS_Doc GitHub Wiki

Acceptance criteria

US Identifier USUsr0001
Name List Schema Names by Org and Group Name
Description As an user (PI or not) of the BC network, I want to list all the Schemas names associated to the group I belong to, so that I can later check them out.
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 Schemas Names created for their specific Org.
3. * The user may provide a group name or not. That is entirely optional.
4. * The group name can be empty. If it is, return a list of this form: [{'Schema Text': SCHEMA_TEXT_1, 'Group': 'Group_A', 'Schema Version': '1.0'}, {'Schema Text': SCHEMA_TEXT_2, 'Group': 'Group_A', 'Schema Version': '1.1'}, ...]. All the schema names submitted on behalf of the org, and the group name associated to them need to be retrieved for the user.
5. * If the user provide a single group name, the app retrieves only the schema names associated to said group within the org in the same way showed above. The user doesn't need to be part of that group. If the group name doesn't exist, the code should retrieve a message like: {'msg': 'We couldn't find any Schema Names. Please try a different group name'}, because it won't find any schema.
7. * If the app can't find any schema, return a message like: {'msg': 'We couldn't find any Schema Names. Please try a different group name'}

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 schema 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.