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

fix: Add missing checklists loader #187

Merged
merged 1 commit into from
Nov 13, 2024
Merged

fix: Add missing checklists loader #187

merged 1 commit into from
Nov 13, 2024

Conversation

lsetiawan
Copy link
Member

This pull request includes updates to the update_db_sample_data.py script to enhance the database population process by adding support for checklists. The changes introduce new models and a function to populate checklists from a JSON file.

Enhancements to database population:

  • Added imports for Checklist, ChecklistStep, and ChecklistStepsOrder to support new checklist functionality.
  • Introduced a new function populate_checklists() to populate checklists and their steps into the database from a JSON file.
  • Updated setup_utility_resources() to call the new populate_checklists() function, ensuring checklists are included in the setup process.

Related Issues

Fixes #139

This was missed! Ooops.

Copy link

@lsetiawan lsetiawan merged commit 40db47d into main Nov 13, 2024
3 checks passed
@lsetiawan lsetiawan deleted the add-missing-loader branch November 13, 2024 04:14
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

Successfully merging this pull request may close these issues.

feat: Sample checklist created & populated when the database starts
1 participant