Skip to content
Merged
Show file tree
Hide file tree
Changes from 18 commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
f232177
feat: implement dual-write system for MongoDB to PostgreSQL synchroni…
iamitprakash Aug 22, 2025
79d10ce
Merge branch 'develop' into pg-migration
AnujChhikara Aug 22, 2025
fc5f38a
feat: enhance PostgreSQL integration with new models and dual-write f…
AnujChhikara Aug 22, 2025
34de92d
refactor: consolidate PostgreSQL models
AnujChhikara Aug 22, 2025
54b6001
feat: implement priority field fix and enhance dual-write functionality
AnujChhikara Aug 23, 2025
73b9c4a
refactor: update PostgreSQL models and enhance dual-write service fun…
AnujChhikara Aug 23, 2025
ab26619
refactor: simplify Postgres watchlist model and update dual-write ser…
AnujChhikara Aug 23, 2025
b80bf3a
fix: deferred task in postgres
AnujChhikara Aug 23, 2025
b157cfc
refactor: update Postgres audit log model
AnujChhikara Aug 23, 2025
b7cfd53
refactor: remove old watchlist models and update user role structure …
AnujChhikara Aug 23, 2025
e6c37e9
refactor: enhance PostgreSQL model definitions and integrate dual-wri…
AnujChhikara Aug 24, 2025
7219ec5
feat: add task assignment creation functionality and streamline task …
AnujChhikara Aug 24, 2025
aba75f3
refactor: update task assignment models and repository to streamline …
AnujChhikara Aug 24, 2025
58786ae
feat: implement dual-write synchronization for team creation invite c…
AnujChhikara Aug 24, 2025
017f5df
feat: add PostgreSQL synchronization service and management command f…
AnujChhikara Aug 25, 2025
01caf14
chore: remove pgAdmin service from docker-compose configuration
AnujChhikara Aug 25, 2025
fed055c
chore: remove deprecated docker-compose and environment configuration…
AnujChhikara Aug 25, 2025
c3c0398
feat: add PostgreSQL availability checks and environment variables fo…
AnujChhikara Aug 25, 2025
c3bb706
feat: configure database settings for testing and production environm…
AnujChhikara Aug 25, 2025
8dcd5b6
Merge branch 'pg-migration' of https://github.com/Real-Dev-Squad/todo…
AnujChhikara Aug 25, 2025
d185900
fix: update environment variable names for PostgreSQL configuration i…
AnujChhikara Aug 28, 2025
541cba6
Merge branch 'develop' into pg-migration
AnujChhikara Aug 28, 2025
facfdbc
refactor: update PostgreSQL environment variable name and enhance doc…
AnujChhikara Aug 28, 2025
b675dac
refactor: rename PostgreSQL task assignment index names for consistency
AnujChhikara Aug 28, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,10 @@ CORS_ALLOWED_ORIGINS='http://localhost:3000,http://localhost:8000'

SWAGGER_UI_PATH='/api/schema'

ADMIN_EMAILS = "[email protected],[email protected]"
ADMIN_EMAILS = "[email protected],[email protected]"

POSTGRES_HOST: postgres
POSTGRES_PORT: 5432
POSTGRES_NAME: todo_postgres
POSTGRES_USER: todo_user
POSTGRES_PASSWORD: todo_password
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ jobs:
ALLOWED_HOSTS: "localhost,127.0.0.1"
MONGODB_URI: mongodb://db:27017
DB_NAME: todo-app
POSTGRES_SYNC_ENABLED: "False"
DUAL_WRITE_ENABLED: "False"
GOOGLE_OAUTH_CLIENT_ID: "test-client-id"
GOOGLE_OAUTH_CLIENT_SECRET: "test-client-secret"
GOOGLE_OAUTH_REDIRECT_URI: "http://localhost:8000/v1/auth/google/callback"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,4 +148,4 @@
- If port 5678 is in use, specify a different port with `--debug-port`
- Ensure VS Code Python extension is installed
- Check that breakpoints are set in the correct files
- Verify the debug server shows "Debug server listening on port 5678"
- Verify the debug server shows "Debug server listening on port 5678"
31 changes: 31 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,45 @@ services:
DB_NAME: todo-app
PYTHONUNBUFFERED: 1
PYDEVD_DISABLE_FILE_VALIDATION: 1
# PostgreSQL Configuration
POSTGRES_HOST: postgres
POSTGRES_PORT: 5432
POSTGRES_NAME: todo_postgres
POSTGRES_USER: todo_user
POSTGRES_PASSWORD: todo_password
volumes:
- .:/app
ports:
- "8000:8000"
- "5678:5678" # Debug port
depends_on:
- db
- postgres
- mongo-init
stdin_open: true
tty: true

postgres:
image: postgres:15
container_name: todo-postgres
environment:
POSTGRES_DB: todo_postgres
POSTGRES_USER: todo_user
POSTGRES_PASSWORD: todo_password
POSTGRES_HOST_AUTH_METHOD: trust
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
- ./init-scripts:/docker-entrypoint-initdb.d
healthcheck:
test: ["CMD-SHELL", "pg_isready -U todo_user -d todo_postgres"]
interval: 10s
timeout: 5s
retries: 5



db:
image: mongo:latest
command: ["--replSet", "rs0", "--bind_ip_all", "--port", "27017"]
Expand Down Expand Up @@ -67,3 +95,6 @@ services:
depends_on:
- db
- mongo-init

volumes:
postgres_data:
Loading
Loading