Skip to content
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

Open
wants to merge 57 commits into
base: dev
Choose a base branch
from

Conversation

rohan-bes
Copy link
Collaborator

@rohan-bes rohan-bes commented Sep 19, 2023

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 the meditrak-app-server. That way existing meditrak-app clients can switch over without needing to upgrade.

We will now server central-server at central-api.tupaia.org.

Merge tasks:

  • Update all CENTRAL_API_URL .env vars to point to *-central-api.tupaia.org
  • Update the subdomains ec2 instance tag to include central-api and create the route53 entry for production
  • Remove TUPAIA_APP_SERVER_URL .env var from web-config-server .env vars

@rohan-bes rohan-bes changed the title Rn 502 switch to mas RN-502: Switch meditrak-app over to the meditrak-app-server Sep 19, 2023
@rohan-bes rohan-bes force-pushed the rn-664-perm-based-sync-mas branch from 006ef72 to 3eb2b8d Compare September 19, 2023 07:40
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
Copy link
Contributor

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.

Copy link
Contributor

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.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@IgorNadj I've created a separate PR for this one: #5063

@@ -10,7 +10,6 @@ import http from 'http';
import winston from 'winston';
Copy link
Contributor

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.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in: #5063

scripts/bash/getDeployablePackages.sh Show resolved Hide resolved
@@ -1,112 +0,0 @@
/**
Copy link
Contributor

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!

@rohan-bes rohan-bes force-pushed the rn-502-switch-to-mas branch 4 times, most recently from 4b923ce to 26afa79 Compare October 2, 2023 05:19
@rohan-bes rohan-bes force-pushed the rn-664-perm-based-sync-mas branch from 3eb2b8d to fcd049f Compare October 2, 2023 06:01
@rohan-bes rohan-bes force-pushed the rn-502-switch-to-mas branch from 26afa79 to 1ed8754 Compare October 2, 2023 06:05
Base automatically changed from rn-664-perm-based-sync-mas to dev October 10, 2023 00:39
@rohan-bes rohan-bes force-pushed the rn-502-switch-to-mas branch from 1ed8754 to 72d9f0b Compare October 10, 2023 02:12
@rohan-bes rohan-bes force-pushed the rn-502-switch-to-mas branch from 72d9f0b to cd37231 Compare October 10, 2023 05:11
@rohan-bes rohan-bes changed the base branch from dev to rn-502-remove-schema-async October 10, 2023 05:14
@rohan-bes rohan-bes requested a review from IgorNadj October 10, 2023 06:32
@rohan-bes rohan-bes force-pushed the rn-502-switch-to-mas branch 2 times, most recently from d07b697 to 00e88b3 Compare October 12, 2023 05:53
@rohan-bes rohan-bes force-pushed the rn-502-remove-schema-async branch from 3f0a66b to 56125db Compare October 12, 2023 23:46
Base automatically changed from rn-502-remove-schema-async to dev October 16, 2023 03:29
@rohan-bes rohan-bes force-pushed the rn-502-switch-to-mas branch 3 times, most recently from 432eff9 to 94f790e Compare October 19, 2023 00:22
Copy link
Contributor

@IgorNadj IgorNadj left a 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!

@rohan-bes rohan-bes force-pushed the rn-502-switch-to-mas branch 5 times, most recently from 6d9955d to 8235a10 Compare March 26, 2024 04:04
@rohan-bes rohan-bes force-pushed the rn-502-switch-to-mas branch from 8235a10 to dbe2a47 Compare March 28, 2024 05:10
@rohan-bes rohan-bes force-pushed the rn-502-switch-to-mas branch from 216b020 to 35054ff Compare May 2, 2024 23:59
@rohan-bes rohan-bes force-pushed the rn-502-switch-to-mas branch from cccf67c to 89bf033 Compare June 17, 2024 04:21
@rohan-bes rohan-bes force-pushed the rn-502-switch-to-mas branch from 9037bf7 to a502fed Compare June 19, 2024 02:29
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.

4 participants