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

Migrate Key Seed Data to SQL Migration #1503

Open
dhaselhan opened this issue Dec 18, 2024 · 0 comments
Open

Migrate Key Seed Data to SQL Migration #1503

dhaselhan opened this issue Dec 18, 2024 · 0 comments
Assignees

Comments

@dhaselhan
Copy link
Collaborator

dhaselhan commented Dec 18, 2024

As the administrator for LCFS, I want to be confident that the core seed data (fuel types, fuel categories, ....) is consistent and maintainable across all environments.

Purpose
This task converts the existing JSON seed files to a SQL Migration. This means the data will be set in stone at that point in time and all future changes will also need migrations. This fixes the issue where once seed_data is ran on an environment, it cannot be easily changed.

The goal here is to move all the common seed data into a SQL migration so it can be reliably updated via SQL.

Acceptance Criteria

  • common_seeder.py is deleted along with the json seed data
  • All of this is converted to SQL statements and added to a new migration
  • Database has the same seed data as before this change
  • Currently end use other options is NOT in common but should be moved into the SQL and removed from the dev/test/prod seeders as it does not need to change per environment.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants