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

Implement Integration of Flask Application with HarvestDB Update Feature #4647

Closed
5 tasks done
Jin-Sun-tts opened this issue Mar 6, 2024 · 2 comments
Closed
5 tasks done
Assignees
Labels
H2.0/Harvest-DB Postgres and related DB tickets

Comments

@Jin-Sun-tts
Copy link
Contributor

Jin-Sun-tts commented Mar 6, 2024

User Story

integrate the Flask application with HarvestDB's update functionality so that database changes can be easily managed and applied within the Flask environment.

Links:

Acceptance Criteria

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

  • GIVEN the code resides in the orchestrator repository
    AND the objective is to consolidate it into the harvesting-logic repository
    THEN deploy and test the app on cloud.gov and

  • GIVEN the team has settled on the Table structure
    AND it has been defined in an SQLAlchemy file
    THEN it should be able to be created programmatically in a Docker container by running a DB initialization script.

  • GIVEN that the DB has been initialized
    WHEN alterations are made to database tables,
    THEN execute the database update function to apply updates.

Background

Continuing the work in #4612, implement database table structure update functions within the application logic.

Sketch

  • research and test Flask-SQLAlchemy versus SQLAlchemy
  • test database table changes with flask commands
@Jin-Sun-tts Jin-Sun-tts added the H2.0/Harvest-Runner Harvest Source Processing for Harvesting 2.0 label Mar 6, 2024
@Jin-Sun-tts Jin-Sun-tts self-assigned this Mar 6, 2024
@Jin-Sun-tts
Copy link
Contributor Author

Changed to Flask-Alchemy and organized the app directory to accommodate Flask-related files.
Also configured Flask-Migrate for handling database upgrades

Image

@rshewitt
Copy link
Contributor

rshewitt commented Mar 19, 2024

quick article on some things to consider when indexing. this was more for my curiosity but liked how concise it was so i'm sharing.

@btylerburton btylerburton added H2.0/Harvest-DB Postgres and related DB tickets and removed H2.0/Harvest-Runner Harvest Source Processing for Harvesting 2.0 labels Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
H2.0/Harvest-DB Postgres and related DB tickets
Projects
Status: 🗄 Closed
Development

No branches or pull requests

3 participants