In order to visualize the list of harvest sources and organizations in the database, datagovteam wants to create two new list pages to display harvest sources and organizations in a table format.
Acceptance Criteria
[ACs should be clearly demoable/verifiable whenever possible. Try specifying them using BDD.]
[ ] GIVEN a user visits a list page
THEN they will see the list of harvest sources/orgs displayed with their accompanying data in a table format with a series of action buttons for each item
[ ] GIVEN I'm viewing a table of harvest sources
THEN the buttons will be EDIT, HARVEST, and DELETE
[ ] GIVEN I'm viewing a table of organizations
THEN the buttons will be EDIT and DELETE
[ ] GIVEN the user clicks EDIT
THEN they will be brought to the harvest source/organization edit page
[ ] GIVEN the user clicks HARVEST
AND a job with that harvest_source_id is not currently processing, or in the queue
THEN this will trigger a new harvest job on that source
[ ] GIVEN the user clicks DELETE
AND they have confirmed their action
THEN the harvest source/organization will be deleted
User Story
In order to visualize the list of harvest sources and organizations in the database, datagovteam wants to create two new list pages to display harvest sources and organizations in a table format.
Acceptance Criteria
[ACs should be clearly demoable/verifiable whenever possible. Try specifying them using BDD.]
[ ] GIVEN a user visits a list page THEN they will see the list of harvest sources/orgs displayed with their accompanying data in a table format with a series of action buttons for each item
[ ] GIVEN I'm viewing a table of harvest sources THEN the buttons will be EDIT, HARVEST, and DELETE
[ ] GIVEN I'm viewing a table of organizations THEN the buttons will be EDIT and DELETE
[ ] GIVEN the user clicks EDIT THEN they will be brought to the harvest source/organization edit page
[ ] GIVEN the user clicks HARVEST AND a job with that harvest_source_id is not currently processing, or in the queue THEN this will trigger a new harvest job on that source
[ ] GIVEN the user clicks DELETE AND they have confirmed their action THEN the harvest source/organization will be deleted
Background
WIP prototype up on remote at https://github.com/GSA/datagov-harvesting-logic/tree/add-source-org-list-pages
Security Considerations (required)
[Any security concerns that might be implicated in the change. "None" is OK, just be explicit here!]
Sketch