Skip to content

Commit

Permalink
chore: deprecating bctw related code
Browse files Browse the repository at this point in the history
  • Loading branch information
MacQSL committed Dec 16, 2024
1 parent b7e5a9d commit c94841b
Show file tree
Hide file tree
Showing 9 changed files with 7 additions and 176 deletions.
4 changes: 0 additions & 4 deletions api/.pipeline/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ const phases = {
backboneArtifactIntakePath: '/api/artifact/intake',
biohubTaxonPath: '/api/taxonomy/taxon',
biohubTaxonTsnPath: '/api/taxonomy/taxon/tsn',
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`,
Expand Down Expand Up @@ -130,7 +129,6 @@ const phases = {
backboneArtifactIntakePath: '/api/artifact/intake',
biohubTaxonPath: '/api/taxonomy/taxon',
biohubTaxonTsnPath: '/api/taxonomy/taxon/tsn',
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',
Expand Down Expand Up @@ -175,7 +173,6 @@ const phases = {
backboneArtifactIntakePath: '/api/artifact/intake',
biohubTaxonPath: '/api/taxonomy/taxon',
biohubTaxonTsnPath: '/api/taxonomy/taxon/tsn',
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',
Expand Down Expand Up @@ -220,7 +217,6 @@ const phases = {
backboneArtifactIntakePath: '/api/artifact/intake',
biohubTaxonPath: '/api/taxonomy/taxon',
biohubTaxonTsnPath: '/api/taxonomy/taxon/tsn',
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',
Expand Down
3 changes: 1 addition & 2 deletions api/.pipeline/lib/api.deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ const apiDeploy = async (settings) => {
BACKBONE_ARTIFACT_INTAKE_PATH: phases[phase].backboneArtifactIntakePath,
BIOHUB_TAXON_PATH: phases[phase].biohubTaxonPath,
BIOHUB_TAXON_TSN_PATH: phases[phase].biohubTaxonTsnPath,
// BCTW / Critterbase
BCTW_API_HOST: phases[phase].bctwApiHost,
// Critterbase
CB_API_HOST: phases[phase].critterbaseApiHost,
// S3
S3_KEY_PREFIX: phases[phase].s3KeyPrefix,
Expand Down
9 changes: 2 additions & 7 deletions api/.pipeline/templates/api.dc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,10 @@ parameters:
- name: BIOHUB_TAXON_PATH
required: true
description: API path for BioHub Platform Backbone taxon endpoint. Example "/api/path/to/taxon".
# BCTW / Critterbase
# Critterbase
- name: CB_API_HOST
description: API host for the Critterbase service, SIMS API will hit this to retrieve critter metadata. Example "https://critterbase.com".
required: true
- name: BCTW_API_HOST
description: API host for the BC Telemetry Warehouse service. SIMS API will hit this for device deployments and other telemetry operations. Example "https://bctw.com".
required: true
# Database
- name: TZ
description: Application timezone
Expand Down Expand Up @@ -309,11 +306,9 @@ objects:
value: ${BIOHUB_TAXON_TSN_PATH}
- name: BIOHUB_TAXON_PATH
value: ${BIOHUB_TAXON_PATH}
# BCTW / Critterbase
# Critterbase
- name: CB_API_HOST
value: ${CB_API_HOST}
- name: BCTW_API_HOST
value: ${BCTW_API_HOST}
# Clamav
- name: ENABLE_FILE_VIRUS_SCAN
value: ${ENABLE_FILE_VIRUS_SCAN}
Expand Down
99 changes: 0 additions & 99 deletions api/src/models/bctw.ts

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const GET: Operation = [

GET.apiDoc = {
description: 'Get telemetry points for a specific critter.',
tags: ['bctw'],
tags: ['telemetry'],
security: [
{
Bearer: []
Expand Down
2 changes: 1 addition & 1 deletion app/src/components/buttons/BreadcrumbNavButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export const BreadcrumbNavButton = (props: PropsWithChildren<IBreadcrumbNavButto
onClick={() => {
handleMenuClose();
}}>
{item.icon && <Icon path={item.icon ?? ''} size={0.8} style={{ marginRight: '10px' }} />}
{item.icon ? <Icon path={item.icon} size={0.8} style={{ marginRight: '10px' }} /> : null}
{item.label}
</MenuItem>
))}
Expand Down
61 changes: 0 additions & 61 deletions app/src/components/fields/TelemetrySelectField.tsx

This file was deleted.

2 changes: 1 addition & 1 deletion app/src/contexts/telemetryTableContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,7 @@ export const TelemetryTableContextProvider = (props: IAllTelemetryTableContextPr
}, [rows, _updateRowsMode, _modifiedRowIds]);

/**
* Dispatches update and create requests to BCTW
* Dispatches update and create requests to SIMS
*
* @param {GridValidRowModel[]} createRows - Rows to create
* @param {GridValidRowModel[]} updateRows - Rows to update
Expand Down
1 change: 1 addition & 0 deletions app/src/interfaces/useTelemetryApi.interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ export interface IAllTelemetry {
temperature: number | null;
}

// TODO: Update this type after telemetry migration
export type IAnimalDeployment = {
// BCTW properties

Expand Down

0 comments on commit c94841b

Please sign in to comment.