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

Write script to seed database with test data #140

Open
aidenszeto opened this issue Jun 27, 2021 · 1 comment · May be fixed by #195
Open

Write script to seed database with test data #140

aidenszeto opened this issue Jun 27, 2021 · 1 comment · May be fixed by #195
Assignees
Labels
dev:ops Devops difficulty:medium Takes around 1 week priority:medium Should be done after higher priority tickets

Comments

@aidenszeto
Copy link
Member

Background

While the core site is down, our dev environment will continue to be deployed on staging.visitnomad.com. This environment will have a fresh database in order to thoroughly test the site in QA (contact @aidenszeto to get database URI). Currently, there is a clear_db script in the tools folder - this may be useful when testing the database seeding script.

Task

  • Create a new database on MongoDB. This will house our staging database. Note that the staging database and development databases will be different; the staging database will contain clean data that will be used for QA while the development database can be used for all sorts of testing during development
  • Write a seeding script to fill the database with random data. This data should cover all sorts of use cases that may be encountered during testing.
@aidenszeto aidenszeto added dev:ops Devops difficulty:medium Takes around 1 week priority:medium Should be done after higher priority tickets labels Jun 27, 2021
@aidenszeto aidenszeto assigned aidenszeto and unassigned aidenszeto Jul 10, 2021
@aidenszeto aidenszeto linked a pull request Aug 18, 2021 that will close this issue
@aidenszeto
Copy link
Member Author

Create seed script for:

  • users
  • listings
  • popularities

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dev:ops Devops difficulty:medium Takes around 1 week priority:medium Should be done after higher priority tickets
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants