Skip to content

MOS-34: Remove MongoDB code, config and references - #15

Merged
timoruohomaki merged 1 commit into
masterfrom
chore/MOS-34-remove-mongodb
Nov 8, 2026
Merged

timoruohomaki merged 1 commit into
masterfrom
chore/MOS-34-remove-mongodb

Conversation

@timoruohomaki

Copy link
Copy Markdown
Contributor

OpenMOS is PostgreSQL-only; MongoDB is removed outright rather than kept behind a switch. Until the PostgreSQL store lands (MOS-14, wired in MOS-16) the server runs on the in-memory store and logs a warning that data is not persisted.

  • Delete internal/db and the four Mongo repositories.
  • wiring.go builds the service from a repository.Repository (memory.New()); main.go no longer connects to a database.
  • Config: drop the Mongo block, its defaults and MONGODB_* env vars.
  • Model: drop bson tags. go.mod: drop mongo-driver (go mod tidy).
  • Docs: remove MongoDB from README and doc/, record the removal in database-migration.md, and refresh stale tech-stack versions.

OpenMOS is PostgreSQL-only; MongoDB is removed outright rather than kept
behind a switch. Until the PostgreSQL store lands (MOS-14, wired in
MOS-16) the server runs on the in-memory store and logs a warning that
data is not persisted.

- Delete internal/db and the four Mongo repositories.
- wiring.go builds the service from a repository.Repository
  (memory.New()); main.go no longer connects to a database.
- Config: drop the Mongo block, its defaults and MONGODB_* env vars.
- Model: drop bson tags. go.mod: drop mongo-driver (go mod tidy).
- Docs: remove MongoDB from README and doc/, record the removal in
  database-migration.md, and refresh stale tech-stack versions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@timoruohomaki
timoruohomaki merged commit c57c096 into master Nov 8, 2026
3 checks passed
@timoruohomaki
timoruohomaki deleted the chore/MOS-34-remove-mongodb branch November 8, 2026 17:48
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