-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(meditrak): RN-502: Switch meditrak-app over to the meditrak-app-server #5007
base: dev
Are you sure you want to change the base?
Conversation
006ef72
to
3eb2b8d
Compare
ccdc34a
to
c0075d4
Compare
cd ${TUPAIA_DIR} | ||
|
||
# ensure that the latest permissions based meditrak sync queue has been built | ||
yarn workspace @tupaia/meditrak-app-server create-meditrak-sync-view |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be moved to the server's startup instead? Similar to how we do migrations.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Discussed, could version and insert with migrations like we do the analytics table fns.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -10,7 +10,6 @@ import http from 'http'; | |||
import winston from 'winston'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(Unrelated to this file)
In package.json we have a script that calls node dist/sync/createMeditrakSyncView.js
. The dist files for this may not be present. Can we use babel-node like we do in other packages for consistency? This also seems like a script so it should be outside the src dir.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in: #5063
@@ -1,112 +0,0 @@ | |||
/** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Soooo good to see all this moved out! Thanks for doing this!
4b923ce
to
26afa79
Compare
3eb2b8d
to
fcd049f
Compare
26afa79
to
1ed8754
Compare
1ed8754
to
72d9f0b
Compare
72d9f0b
to
cd37231
Compare
d07b697
to
00e88b3
Compare
3f0a66b
to
56125db
Compare
432eff9
to
94f790e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just the things we found when we went through it together, otherwise looks great!
...s/database/src/migrations/20230926070127-MoveRefreshTokenToMeditrakDevice-modifies-schema.js
Outdated
Show resolved
Hide resolved
...s/database/src/migrations/20230926070127-MoveRefreshTokenToMeditrakDevice-modifies-schema.js
Outdated
Show resolved
Hide resolved
packages/meditrak-app-server/src/__tests__/__integration__/appVersion.test.ts
Outdated
Show resolved
Hide resolved
...meditrak-app-server/src/__tests__/__integration__/sync/pullChanges/CountChangesRoute.test.ts
Show resolved
Hide resolved
packages/meditrak-app-server/src/routes/sync/PushChangesRoute/PushChangesRoute.ts
Show resolved
Hide resolved
6d9955d
to
8235a10
Compare
8235a10
to
dbe2a47
Compare
216b020
to
35054ff
Compare
…-server can support v1 or v2 (for legacy app versions)
merge: update branch with latest dev before testing
… column if updating
cccf67c
to
89bf033
Compare
9037bf7
to
a502fed
Compare
merge: update with latest dev before testing
Issue RN-502:
This is the big switch over! Might be easiest to review commit by commit.
Main thing to be aware of here is that we're doing a switch over of
api.tupaia.org
to now point to themeditrak-app-server
. That way existing meditrak-app clients can switch over without needing to upgrade.We will now server
central-server
atcentral-api.tupaia.org
.Merge tasks:
CENTRAL_API_URL
.env vars to point to*-central-api.tupaia.org
subdomains
ec2 instance tag to includecentral-api
and create the route53 entry for productionTUPAIA_APP_SERVER_URL
.env var fromweb-config-server
.env vars