Skip to content

feat: support Atlas seeding via MONGO_URI [#56]#67

Merged
robert-7 merged 3 commits into
mainfrom
mongo-script-refactor
Apr 13, 2026
Merged

feat: support Atlas seeding via MONGO_URI [#56]#67
robert-7 merged 3 commits into
mainfrom
mongo-script-refactor

Conversation

@robert-7

@robert-7 robert-7 commented Apr 13, 2026

Copy link
Copy Markdown
Owner

Summary

  • update mongo-setup/mongo-setup.sh to support seeding via external MONGO_URI
  • preserve the existing local Docker fallback to mongodb
  • refactor stale enrollment cleanup into a reusable helper

Why

This enables the seed script to target MongoDB Atlas for Issue #56 without breaking the current local Docker workflow.

Validation

  • ran the updated seed script against MongoDB Atlas using the app-user SRV URI
  • confirmed user and course collections imported successfully
  • confirmed stale enrollment collection was dropped

@codecov

codecov Bot commented Apr 13, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@robert-7 robert-7 changed the title feat: ensures we can handle reading from MONGO_URI for prod [#56] feat: support Atlas seeding via MONGO_URI [#56] Apr 13, 2026
@robert-7
robert-7 merged commit adc6b96 into main Apr 13, 2026
5 checks passed
@robert-7
robert-7 deleted the mongo-script-refactor branch April 13, 2026 20:45
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.

1 participant