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

Manifest to launch flask app in Cloud.gov #4625

Closed
7 tasks
krishnasanaka opened this issue Feb 20, 2024 · 0 comments
Closed
7 tasks

Manifest to launch flask app in Cloud.gov #4625

krishnasanaka opened this issue Feb 20, 2024 · 0 comments

Comments

@krishnasanaka
Copy link

User Story

In order to add new harvest sources to our Harvest DB, datagovteam wants to add a new Flask app to handle basic CRUD of Harvest Source configs, and to kick off harvest jobs.

Links:

Acceptance Criteria

[ACs should be clearly demoable/verifiable whenever possible. Try specifying them using BDD.]

  • GIVEN I have created a Flask app and added it to the repository above
    AND that app has imported datagov-harvesting-logic as a dependency
    AND I have followed the pattern outlined in the links above to develop a form to update Harvest Source
    WHEN I save a new Harvest Source with a valid config then I expect it to post to the Harvest DB.

  • GIVEN I call the route {url}/harvests/{id}
    THEN I expect to see the details for the harvest source with the corresponding id.

  • GIVEN I call the route {url}/harvests/ with no corresponding ID
    THEN I expect to see a list of all harvest sources in the DB

Background

[Any helpful contextual notes or links to artifacts/evidence, if needed]

Security Considerations (required)

[Any security concerns that might be implicated in the change. "None" is OK, just be explicit here!]

Sketch

  • Add manifest to launch this as an app in Cloud.gov with an http health check
  • Add a route so that this is accessible from the public internet
  • Enable basic auth so that this is locked down by username/password
  • Create new harvest source config and confirm it is viewable by using the CF Service Connect plugin to examine the DB tables
@krishnasanaka krishnasanaka changed the title Manifest to launch this as an app in Cloud.gov Manifest to launch flask app in Cloud.gov Feb 20, 2024
@krishnasanaka krishnasanaka closed this as not planned Won't fix, can't repro, duplicate, stale Feb 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

1 participant