-
Notifications
You must be signed in to change notification settings - Fork 0
[SSF-22] Create Dummy Data for Database #48
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
base: main
Are you sure you want to change the base?
Conversation
|
think you might want to merge main because Sam did some updates to the pantry entity which might cause some problems with the data you're adding |
amywng
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i'll send you what i got for what pantry data should look like on slack but it's also in this pr
…H/SSF-47-create-dummy-data-for-db
…H/SSF-47-create-dummy-data-for-db
| reservation_explanation, dedicated_allergy_friendly, | ||
| client_visit_frequency, identify_allergens_confidence, serve_allergic_children, | ||
| newsletter_subscription, restrictions, pantry_user_id, | ||
| activities, items_in_stock, need_more_options, status, date_applied |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you add the activities comments column and for the one pantry you have that is "Something else" in the activities add some comments
amywng
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i don't think you added the activities comments column
ℹ️ Issue
Closes 47
📝 Description
I added a migration file that populates all of our table with a few rows of sample seed data. I also added the migration to our typeorm config file.
✔️ Verification
Tested each table in postgres to see if it was populated.
🏕️ (Optional) Future Work / Notes
Dummy data will need to be updated as database migration files are created. Also it may be worth considering typeorm seeding to be able to generate new test data