Skip to content
Snippets Groups Projects

Implement Mongo Seeder v2

Merged D'Abrantes, Felipe (UG - Comp Sci & Elec Eng) requested to merge mongo-seeder-v2 into main

What does this MR do?

Adds seeding to User and Questions databases with following env variables to control it:

  • ENABLE_QUESTION_DB_SEEDING.
  • ENABLE_USER_DB_SEEDING.

Testing

  • Ensure ENABLE_QUESTION_DB_SEEDING is set to true in docker-compose.
  • Ensure ENABLE_USER_DB_SEEDING is set to true in docker-compose.
  • Ensure Docker's MongoDB instances have no documents in Users and Questions DBs.
  • Run docker compose up --build.
  • Login as with username 'admin' and password 'password'.
  • Question appears on page.

Relevant issues

Fixes missing seeding.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading