-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: update invitation to include entityId on submission approval * feat: transactional mongo session for submission approval/rejection and invitation creation * feat: mongodb replica set docker compose * fix: update entity detail url * ci: mongo replica set * test: mongodb rollbacks * chore: remove placeholder email * refactor: rename GenericError
- Loading branch information
1 parent
bf009dd
commit 3412883
Showing
22 changed files
with
469 additions
and
122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
db.createUser({ | ||
user: process.env.MONGO_INITDB_ROOT_USERNAME, | ||
pwd: process.env.MONGO_INITDB_ROOT_PASSWORD, | ||
roles: [{ role: 'readWrite', db: process.env.MONGO_INITDB_DATABASE }], | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
10VGkBqCI6gYMv00OJo4Ygd0c04ChooR2aGBesfrDt5HEXODjRkDSD/zATaNuyXT | ||
LT9Uwf+kYS1v0wbYgjYcuvg1cnW1eFT9N13km6D2dttT76WyR2/Oke5lnjaliEzc | ||
uKkmaWC/Flx0ZE6jsggk22SMJElb8u72lNbVfwmJXOjF4HNUhrPAnWNTWhM9J8RF | ||
z5A1VbqF3TAIegQeNDgKBUZB7e9wJbtNXQVRnqdImNN0USYxTIVkGwNRLbEjCYRu | ||
H46wvn1VJIxqvGntjqczlI1YQmtECzVegr+mwoJ8bA3cbKPjbkXl4WegpvwdF8HF | ||
4Y/+lvVTxCjHcX4p4VDc9HLJnp9vZFpRLrgp6fTiKZ0knyN+Md5el1QyRnKGufCH | ||
gv/dG1zw9/AY7ykIrGOkqcoZH9XR5OzXZtl0enkwMSOoO7b+WGXXzw2VL2+DsrjB | ||
dgjaPQwvXRTLeu+lDIgIPF2Z1rEV4Fg8d9GnvnkLK2AytTZSW/vbWSZteM89tRj0 | ||
DIIGEqtSKiAzTzETuVDsavFZmmAB2e0VcVM9+emR0f37nwBZ3W6+97C6jbeHrAfC | ||
XeDwIFD4AntSrv5vcT0+PylcNHpdbnrVVlKgsxIbb54pi1ZfCUewVff9E2ym2BNX | ||
QghRa1OQz4l/VliR9eBtZp3HaRgQgrG+4n/R8PbZbYfSe1UxWRuOk950qMyzeGU/ | ||
DdPujFt++fajFkXuyhWcT0ytSgM4MrOTBXeeeMkbZNrn/TsvlxLqE64tgsRfsP8a | ||
4/y2jnciddPhZT/B2lU5rt18kaD7Imm5AC0aBh7iNkiWHL544frfs+qHh3t3C43+ | ||
jmyKoDy8BK9dBKZgL+VSBSflv7o96z/zOet7amtrKwGLODsEWkwoEMjKfr8cmLyh | ||
hJfI0ARMD/M3zjj1EXfrEI3LgJui/RTJ/BhEAA== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
var cfg = { | ||
_id: 'rs0', | ||
protocolVersion: 1, | ||
version: 1, | ||
members: [ | ||
{ | ||
_id: 0, | ||
host: 'mongo:27017', | ||
priority: 2, | ||
}, | ||
], | ||
} | ||
rs.initiate(cfg, { force: true }) | ||
rs.status() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
|
||
echo "Waiting for startup.." | ||
sleep 5 | ||
echo mongosetup.sh time now: $(date +"%T") | ||
mongosh --host mongo:27017 -u ${MONGO_INITDB_ROOT_USERNAME} -p ${MONGO_INITDB_ROOT_PASSWORD} < $(dirname "$0")/init-replica-set.js | ||
echo "done" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,11 +39,6 @@ jobs: | |
AUTH_JWT_SECRET_KEY: abcdefgh123456 | ||
AUTH_ADMIN_PASSWORD_HASH: $2b$10$9ScWBY1SuA0a2nZbjvAOWeshe1XqchHKeI18NgWSs.TS4zbZsds3C | ||
FRONTEND_URL: http://localhost:3001 | ||
services: | ||
mongo: | ||
image: mongo:7.0 | ||
ports: | ||
- 4000:27017 | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-test-${{ github.ref }} | ||
|
@@ -55,6 +50,12 @@ jobs: | |
with: | ||
node-version: 20 | ||
cache: yarn | ||
- name: Start MongoDB (with replica set) | ||
uses: supercharge/[email protected] | ||
with: | ||
mongodb-version: 7.0 | ||
mongodb-replica-set: rs0 | ||
mongodb-port: 4000 | ||
- run: yarn global add node-gyp | ||
- run: yarn install --frozen-lockfile | ||
- run: yarn build | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.