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

Version or schema aware db seed script #3168

Open
8 tasks
Tracked by #2965
andrew-jameson opened this issue Sep 3, 2024 · 0 comments
Open
8 tasks
Tracked by #2965

Version or schema aware db seed script #3168

andrew-jameson opened this issue Sep 3, 2024 · 0 comments
Labels
backend DX Developer Experience P2 Needed – Can wait indefinitely Refined Ticket has been refined at the backlog refinement

Comments

@andrew-jameson
Copy link
Collaborator

andrew-jameson commented Sep 3, 2024

Description:
Suggested this feature to be out-of-scope on #2965, will implement separately. Goal of this will be to enhance seed_db to be schema-aware and perhaps to build out a catalog of version::schema for future testing and development.

Acceptance Criteria:

  • Utility must be able to differentiate between versions of TDP
  • seed_db command must adapt certain fields to older versions
  • Testing Checklist has been run and all tests pass
  • README is updated, if necessary

Tasks:

  • Implement version/schema-tracking mechanism (we should be able to use django's migration table)
  • Tie above into seed_db command
  • Parameterize seed_db::validValues with version/schema notation to affect outcome
  • Run Testing Checklist and confirm all tests pass

Notes:

  • Update indicator validation was recently changed, that might be a good first MVP.

Supporting Documentation:

Open Questions:

  • What is priority and/or value-add of this in relation to beyond 4.0 API submissions?
  • Can this be tied into integration testing via cypress?
@raft-tech raft-tech deleted a comment Sep 3, 2024
@andrew-jameson andrew-jameson changed the title Ensure tool is version/schema aware (we should be able to use django's migration table) Version or schema aware db seed script Sep 3, 2024
@andrew-jameson andrew-jameson added backend DX Developer Experience P2 Needed – Can wait indefinitely labels Sep 3, 2024
@robgendron robgendron added the Refined Ticket has been refined at the backlog refinement label Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend DX Developer Experience P2 Needed – Can wait indefinitely Refined Ticket has been refined at the backlog refinement
Projects
None yet
Development

No branches or pull requests

2 participants