Skip to content

Commit

Permalink
Merge pull request #700 from episphere/stage
Browse files Browse the repository at this point in the history
Stage -> Prod Sync (December 2024)
  • Loading branch information
we-ai authored Dec 20, 2024
2 parents b48d70b + 5aa358e commit 3a26a92
Show file tree
Hide file tree
Showing 20 changed files with 2,954 additions and 3,562 deletions.
1 change: 1 addition & 0 deletions config/dev/.env.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
GCLOUD_PROJECT: nih-nci-dceg-connect-dev
GCLOUD_BUCKET: connect_firestore_dev_backup
GCLOUD_SENDGRID_SECRET: projects/nih-nci-dceg-connect-dev/secrets/sendgrid/versions/1
GCLOUD_SENDGRID_EMAIL_VALIDATION_SECRET: projects/nih-nci-dceg-connect-dev/secrets/sendgrid-email-validation/versions/1
GCLOUD_SENDGRID_EVENT_WEBHOOKSECRET: projects/nih-nci-dceg-connect-dev/secrets/sendgrid-event-webhook-verification-key/versions/1
SG_FROM_NAME: Connect for Cancer Prevention Study (DEV)
SG_FROM_EMAIL: [email protected]
Expand Down
4 changes: 4 additions & 0 deletions config/dev/cloudbuild5.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
steps:
- name: 'gcr.io/cloud-builders/gcloud'
args: ['functions', 'deploy', 'getBigQueryData', '--trigger-http', '--runtime=${_RUNTIME}', '--source=${_SOURCE}', '--env-vars-file=config/dev/.env.yaml']
- name: 'gcr.io/cloud-builders/gcloud'
args: ['functions', 'add-iam-policy-binding', 'getBigQueryData', '--member=allUsers', '--role=${_ROLE}']
- name: 'gcr.io/cloud-builders/gcloud'
args: ['functions', 'deploy', 'updateParticipantData', '--trigger-http', '--runtime=${_RUNTIME}', '--source=${_SOURCE}', '--env-vars-file=config/dev/.env.yaml']
- name: 'gcr.io/cloud-builders/gcloud'
Expand Down
1 change: 1 addition & 0 deletions config/prod/.env.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
GCLOUD_PROJECT: nih-nci-dceg-connect-prod-6d04
GCLOUD_BUCKET: myconnect_firestore_backup_prod
GCLOUD_SENDGRID_SECRET: projects/nih-nci-dceg-connect-prod-6d04/secrets/sendgrid/versions/1
GCLOUD_SENDGRID_EMAIL_VALIDATION_SECRET: projects/nih-nci-dceg-connect-prod-6d04/secrets/sendgrid-email-validation/versions/1
GCLOUD_SENDGRID_EVENT_WEBHOOKSECRET: projects/nih-nci-dceg-connect-prod-6d04/secrets/sendgrid-event-webhook-verification-key/versions/1
SG_FROM_NAME: Connect for Cancer Prevention Study
SG_FROM_EMAIL: [email protected]
Expand Down
4 changes: 4 additions & 0 deletions config/prod/cloudbuild5.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
steps:
- name: 'gcr.io/cloud-builders/gcloud'
args: ['functions', 'deploy', 'getBigQueryData', '--trigger-http', '--runtime=${_RUNTIME}', '--source=${_SOURCE}', '--env-vars-file=config/prod/.env.yaml']
- name: 'gcr.io/cloud-builders/gcloud'
args: ['functions', 'add-iam-policy-binding', 'getBigQueryData', '--member=allUsers', '--role=${_ROLE}']
- name: 'gcr.io/cloud-builders/gcloud'
args: ['functions', 'deploy', 'updateParticipantData', '--trigger-http', '--runtime=${_RUNTIME}', '--source=${_SOURCE}', '--env-vars-file=config/prod/.env.yaml']
- name: 'gcr.io/cloud-builders/gcloud'
Expand Down
1 change: 1 addition & 0 deletions config/stage/.env.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
GCLOUD_PROJECT: nih-nci-dceg-connect-stg-5519
GCLOUD_BUCKET: myconnect_firestore_backup_stage
GCLOUD_SENDGRID_SECRET: projects/nih-nci-dceg-connect-stg-5519/secrets/sendgrid/versions/1
GCLOUD_SENDGRID_EMAIL_VALIDATION_SECRET: projects/nih-nci-dceg-connect-stg-5519/secrets/sendgrid-email-validation/versions/1
GCLOUD_SENDGRID_EVENT_WEBHOOKSECRET: projects/nih-nci-dceg-connect-stg-5519/secrets/sendgrid-event-webhook-verification-key/versions/1
SG_FROM_NAME: Connect for Cancer Prevention Study (STAGE)
SG_FROM_EMAIL: [email protected]
Expand Down
4 changes: 4 additions & 0 deletions config/stage/cloudbuild5.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
steps:
- name: 'gcr.io/cloud-builders/gcloud'
args: ['functions', 'deploy', 'getBigQueryData', '--trigger-http', '--runtime=${_RUNTIME}', '--source=${_SOURCE}', '--env-vars-file=config/stage/.env.yaml']
- name: 'gcr.io/cloud-builders/gcloud'
args: ['functions', 'add-iam-policy-binding', 'getBigQueryData', '--member=allUsers', '--role=${_ROLE}']
- name: 'gcr.io/cloud-builders/gcloud'
args: ['functions', 'deploy', 'updateParticipantData', '--trigger-http', '--runtime=${_RUNTIME}', '--source=${_SOURCE}', '--env-vars-file=config/stage/.env.yaml']
- name: 'gcr.io/cloud-builders/gcloud'
Expand Down
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const {onRequest} = require("firebase-functions/v2/https");
const { getToken } = require('./utils/validation');
const { getFilteredParticipants, getParticipants, identifyParticipant } = require('./utils/submission');
const { submitParticipantsData, updateParticipantData } = require('./utils/sites');
const { submitParticipantsData, updateParticipantData, getBigQueryData } = require('./utils/sites');
const { getParticipantNotification, sendScheduledNotifications } = require('./utils/notifications');
const { connectApp } = require('./utils/connectApp');
const { biospecimenAPIs } = require('./utils/biospecimen');
Expand Down Expand Up @@ -30,6 +30,8 @@ exports.submitParticipantsData = submitParticipantsData;

exports.updateParticipantData = updateParticipantData;

exports.getBigQueryData = getBigQueryData;

exports.getParticipantNotification = getParticipantNotification;


Expand Down
Loading

0 comments on commit 3a26a92

Please sign in to comment.