Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Harvest Source and Organization table pages in Flask app #4741

Open
11 tasks
btylerburton opened this issue May 8, 2024 · 0 comments
Open
11 tasks
Labels
H2.0/Flask Admin app for harvest source & organizations

Comments

@btylerburton
Copy link
Contributor

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

  • Create new routes for harvest_source and org list pages
  • Make a new template to contain a tabular list
  • Populate that template with harvest source or organization data
  • Add appropriate contextual buttons
  • Remove other unnecessary pages from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
H2.0/Flask Admin app for harvest source & organizations
Projects
Status: H2.0 Backlog
Development

No branches or pull requests

1 participant