Skip to content

Commit

Permalink
Merge pull request #1203 from opencrvs/feat/events-resolve-ids
Browse files Browse the repository at this point in the history
Feat/events resolve ids
  • Loading branch information
makelicious authored Jan 17, 2025
2 parents 99c7063 + d9b1b19 commit a9795ae
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 3 additions & 1 deletion infrastructure/docker-compose.deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -680,7 +680,9 @@ services:
- jwt-public-key.{{ts}}
environment:
- NODE_ENV=production
- MONGO_URL=mongodb://events:${EVENTS_MONGODB_PASSWORD}@mongo1/events?replicaSet=rs0
- EVENTS_MONGO_URL=mongodb://events:${EVENTS_MONGODB_PASSWORD}@mongo1/events?replicaSet=rs0
- USER_MGNT_MONGO_URL=mongodb://user-mgnt:${USER_MGNT_MONGODB_PASSWORD}@mongo1/user-mgnt?replicaSet=rs0
- ES_URL=http://search-user:${ROTATING_SEARCH_ELASTIC_PASSWORD}@elasticsearch:9200
deploy:
labels:
- 'traefik.enable=false'
Expand Down
6 changes: 3 additions & 3 deletions infrastructure/mongodb/on-deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ if [[ $EVENTS_USER != "FOUND" ]]; then
db.createUser({
user: 'events',
pwd: '$EVENTS_MONGODB_PASSWORD',
roles: [{ role: 'readWrite', db: 'events' }]
roles: [{ role: 'readWrite', db: 'events' }, {role: 'read', db: 'user-mgnt'}]
})
EOF
else
Expand All @@ -271,7 +271,7 @@ else
use events
db.updateUser('events', {
pwd: '$EVENTS_MONGODB_PASSWORD',
roles: [{ role: 'readWrite', db: 'events' }]
roles: [{ role: 'readWrite', db: 'events' }, {role: 'read', db: 'user-mgnt'}]
})
EOF
fi
fi
1 change: 1 addition & 0 deletions src/translations/client.csv
Original file line number Diff line number Diff line change
Expand Up @@ -798,6 +798,7 @@ error.title,Error title,Oops!,Oups !
error.title.unauthorized,Error title unauthorized,Unauthorized!,Non autorisé !
error.userListError,Error message when user list loads fails,Failed to load users,Impossible de charger les utilisateurs
error.weAreTryingToFixThisError,Error description,This page could not be found,"Ce n'est pas vous, c'est nous. C'est notre faute."
event.history.timeFormat,"MMMM dd, yyyy · hh.mm a","MMMM dd, yyyy · hh.mm a",
event.tennis-club-membership.action.declare.form.label,This is what this form is referred as in the system,Tennis club membership application,Demande d'adhésion au club de tennis
event.tennis-club-membership.action.declare.form.section.recommender.field.firstname.label,This is the label for the field,Recommender's first name,Prénom du recommandeur
event.tennis-club-membership.action.declare.form.section.recommender.field.id.label,This is the label for the field,Recommender's membership ID,ID d'adhésion du recommandeur
Expand Down

0 comments on commit a9795ae

Please sign in to comment.