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

Add more realistic poll data to migrations #24

Open
mds1 opened this issue Apr 14, 2020 · 1 comment
Open

Add more realistic poll data to migrations #24

mds1 opened this issue Apr 14, 2020 · 1 comment
Assignees
Labels
enhancement Minor improvement to existing functionality

Comments

@mds1
Copy link
Contributor

mds1 commented Apr 14, 2020

Could you write a migration script (I believe a migrations script is the correct place) that seeds the database with a handful of more realistic looking polls, titles, and dates. Some without descriptions, some with end dates that have passed, some that have a lot of valid event IDs, etc.

When I currently send a request to the API, it returns data from the poapvote database—just want to confirm this is the correct one (as opposed to poapvote_test)

This will help with developing the front end and seeing how things look.

@mds1 mds1 added the enhancement Minor improvement to existing functionality label Apr 14, 2020
@apbendi apbendi added this to To do in POAP Vote V1 via automation Apr 14, 2020
@apbendi
Copy link
Contributor

apbendi commented Apr 14, 2020

Good idea! Yes, we can use database seeding functionality from Sequelize to do this.

When I currently send a request to the API, it returns data from the poapvote database—just want to confirm this is the correct one (as opposed to poapvote_test)

Correct, when you run the tests it uses the poapvote_test database, but when you run npm run dev it uses poapvote.

@apbendi apbendi removed this from To do in POAP Vote V1 May 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Minor improvement to existing functionality
Projects
None yet
Development

No branches or pull requests

2 participants