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

Promote DEV to TEST #1330

Merged
merged 12 commits into from
Jul 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .github/workflows/addComments.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
pull_request:
types: [opened, ready_for_review]
branches-ignore:
- test
- prod

jobs:
Expand Down
6 changes: 3 additions & 3 deletions api/.pipeline/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,13 @@ const phases = {
backboneArtifactIntakePath: '/api/artifact/intake',
biohubTaxonPath: '/api/taxonomy/taxon',
biohubTaxonTsnPath: '/api/taxonomy/taxon/tsn',
backboneIntakeEnabled: true,
bctwApiHost: 'https://moe-bctw-api-dev.apps.silver.devops.gov.bc.ca',
critterbaseApiHost: 'https://moe-critterbase-api-dev.apps.silver.devops.gov.bc.ca/api',
nodeEnv: 'development',
s3KeyPrefix: (isStaticDeployment && 'sims') || `local/${deployChangeId}/sims`,
tz: config.timezone.api,
sso: config.sso.dev,
featureFlags: '',
logLevel: 'info',
apiResponseValidationEnabled: true,
databaseResponseValidationEnabled: true,
Expand Down Expand Up @@ -120,14 +120,14 @@ const phases = {
backboneArtifactIntakePath: '/api/artifact/intake',
biohubTaxonPath: '/api/taxonomy/taxon',
biohubTaxonTsnPath: '/api/taxonomy/taxon/tsn',
backboneIntakeEnabled: true,
bctwApiHost: 'https://moe-bctw-api-test.apps.silver.devops.gov.bc.ca',
critterbaseApiHost: 'https://moe-critterbase-api-test.apps.silver.devops.gov.bc.ca/api',
nodeEnv: 'production',
s3KeyPrefix: 'sims',
tz: config.timezone.api,
sso: config.sso.test,
logLevel: 'info',
featureFlags: '',
apiResponseValidationEnabled: true,
databaseResponseValidationEnabled: true,
nodeOptions: '--max_old_space_size=3000', // 75% of memoryLimit (bytes)
Expand Down Expand Up @@ -156,13 +156,13 @@ const phases = {
backboneArtifactIntakePath: '/api/artifact/intake',
biohubTaxonPath: '/api/taxonomy/taxon',
biohubTaxonTsnPath: '/api/taxonomy/taxon/tsn',
backboneIntakeEnabled: false,
bctwApiHost: 'https://moe-bctw-api-prod.apps.silver.devops.gov.bc.ca',
critterbaseApiHost: 'https://moe-critterbase-api-prod.apps.silver.devops.gov.bc.ca/api',
nodeEnv: 'production',
s3KeyPrefix: 'sims',
tz: config.timezone.api,
sso: config.sso.prod,
featureFlags: 'API_FF_SUBMIT_BIOHUB',
logLevel: 'warn',
apiResponseValidationEnabled: false,
databaseResponseValidationEnabled: false,
Expand Down
3 changes: 2 additions & 1 deletion api/.pipeline/lib/api.deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ const apiDeploy = async (settings) => {
BACKBONE_INTERNAL_API_HOST: phases[phase].backboneInternalApiHost,
BACKBONE_INTAKE_PATH: phases[phase].backboneIntakePath,
BACKBONE_ARTIFACT_INTAKE_PATH: phases[phase].backboneArtifactIntakePath,
BACKBONE_INTAKE_ENABLED: phases[phase].backboneIntakeEnabled,
BIOHUB_TAXON_PATH: phases[phase].biohubTaxonPath,
BIOHUB_TAXON_TSN_PATH: phases[phase].biohubTaxonTsnPath,
// BCTW / Critterbase
Expand Down Expand Up @@ -68,6 +67,8 @@ const apiDeploy = async (settings) => {
LOG_LEVEL: phases[phase].logLevel,
API_RESPONSE_VALIDATION_ENABLED: phases[phase].apiResponseValidationEnabled,
DATABASE_RESPONSE_VALIDATION_ENABLED: phases[phase].databaseResponseValidationEnabled,
// Feature Flags
FEATURE_FLAGS: phases[phase].featureFlags,
// Openshift Resources
CPU_REQUEST: phases[phase].cpuRequest,
CPU_LIMIT: phases[phase].cpuLimit,
Expand Down
11 changes: 6 additions & 5 deletions api/.pipeline/templates/api.dc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,6 @@ parameters:
- name: BACKBONE_ARTIFACT_INTAKE_PATH
required: true
description: The publishing intake endpoint path for BioHub Platform artifact submissions. Example "/api/path/to/artifact/intake".
- name: BACKBONE_INTAKE_ENABLED
required: true
description: Controls whether or not SIMS will submit DwCA datasets to the BioHub Platform Backbone. Set to "true" to enable it, will be disabled by default otherwise.
- name: BIOHUB_TAXON_TSN_PATH
required: true
description: API path for BioHub Platform Backbone taxon TSN endpoint. Example "/api/path/to/taxon/tsn".
Expand Down Expand Up @@ -125,6 +122,10 @@ parameters:
value: 'false'
- name: DATABASE_RESPONSE_VALIDATION_ENABLED
value: 'false'
# Feature Flags
- name: FEATURE_FLAGS
description: Used to identify features that should be temporarily disabled/hidden. Must be a comma delimited list of keywords.
value: ''
# GCNotify
- name: GCNOTIFY_API_SECRET
description: Secret for gcnotify api key
Expand Down Expand Up @@ -231,8 +232,6 @@ objects:
value: ${BACKBONE_INTAKE_PATH}
- name: BACKBONE_ARTIFACT_INTAKE_PATH
value: ${BACKBONE_ARTIFACT_INTAKE_PATH}
- name: BACKBONE_INTAKE_ENABLED
value: ${BACKBONE_INTAKE_ENABLED}
- name: BIOHUB_TAXON_TSN_PATH
value: ${BIOHUB_TAXON_TSN_PATH}
- name: BIOHUB_TAXON_PATH
Expand Down Expand Up @@ -344,6 +343,8 @@ objects:
value: ${GCNOTIFY_EMAIL_URL}
- name: GCNOTIFY_SMS_URL
value: ${GCNOTIFY_SMS_URL}
- name: FEATURE_FLAGS
value: ${FEATURE_FLAGS}
image: ' '
imagePullPolicy: Always
ports:
Expand Down
3 changes: 2 additions & 1 deletion api/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"editor.defaultFormatter": "esbenp.prettier-vscode"
"editor.defaultFormatter": "esbenp.prettier-vscode",
"typescript.preferences.importModuleSpecifier": "non-relative"
}
Loading