Skip to content

Commit

Permalink
Merge pull request #2974 from airqo-platform/staging
Browse files Browse the repository at this point in the history
move to production
  • Loading branch information
Baalmart authored Jan 25, 2024
2 parents fbde767 + 2a16288 commit 35d6bb6
Show file tree
Hide file tree
Showing 11 changed files with 26 additions and 21 deletions.
2 changes: 1 addition & 1 deletion k8s/auth-service/values-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ app:
replicaCount: 3
image:
repository: eu.gcr.io/airqo-250220/airqo-auth-api
tag: prod-945a7c20-1706186550
tag: prod-fbde7678-1706187832
nameOverride: ''
fullnameOverride: ''
podAnnotations: {}
Expand Down
2 changes: 1 addition & 1 deletion k8s/data-proxy/values-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ app:
replicaCount: 2
image:
repository: eu.gcr.io/airqo-250220/airqo-data-proxy-api
tag: prod-945a7c20-1706186550
tag: prod-fbde7678-1706187832
nameOverride: ''
fullnameOverride: ''
podAnnotations: {}
Expand Down
2 changes: 1 addition & 1 deletion k8s/device-registry/values-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ app:
replicaCount: 3
image:
repository: eu.gcr.io/airqo-250220/airqo-device-registry-api
tag: prod-945a7c20-1706186550
tag: prod-fbde7678-1706187832
nameOverride: ''
fullnameOverride: ''
podAnnotations: {}
Expand Down
2 changes: 1 addition & 1 deletion k8s/device-registry/values-stage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ app:
replicaCount: 2
image:
repository: eu.gcr.io/airqo-250220/airqo-stage-device-registry-api
tag: stage-f551267d-1706186500
tag: stage-0fe0737d-1706187786
nameOverride: ''
fullnameOverride: ''
podAnnotations: {}
Expand Down
2 changes: 1 addition & 1 deletion k8s/gp-model/values-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ app:
namespace: production
configMap: env-gp-model-production
images:
tag: prod-945a7c20-1706186550
tag: prod-fbde7678-1706187832
repositories:
cronJob: eu.gcr.io/airqo-250220/airqo-gp-model-job
brokerConsumer: eu.gcr.io/airqo-250220/airqo-gp-model-broker-consumer
Expand Down
2 changes: 1 addition & 1 deletion k8s/predict/values-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ images:
predictJob: eu.gcr.io/airqo-250220/airqo-predict-job
trainJob: eu.gcr.io/airqo-250220/airqo-train-job
predictPlaces: eu.gcr.io/airqo-250220/airqo-predict-places-air-quality
tag: prod-945a7c20-1706186550
tag: prod-fbde7678-1706187832
api:
name: airqo-prediction-api
label: prediction-api
Expand Down
2 changes: 1 addition & 1 deletion k8s/workflows/values-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ images:
repositories:
initContainer: eu.gcr.io/airqo-250220/airqo-workflows-xcom
containers: eu.gcr.io/airqo-250220/airqo-workflows
tag: prod-945a7c20-1706186550
tag: prod-fbde7678-1706187832
nameOverride: ''
fullnameOverride: ''
podAnnotations: {}
Expand Down
5 changes: 5 additions & 0 deletions src/device-registry/config/global/db-projections.js
Original file line number Diff line number Diff line change
Expand Up @@ -625,6 +625,11 @@ const dbProjections = {
grid_tags: 0,
grid_codes: 0,
centers: 0,
"sites.latitude": 0,
"sites.longitude": 0,
"sites.generated_name": 0,
"sites.bearing_in_radians": 0,
"sites.approximate_distance_in_km": 0,
});
}
if (category === "public") {
Expand Down
4 changes: 2 additions & 2 deletions src/device-registry/controllers/create-cohort.js
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ const createCohort = {
: { message: "Internal Server Error" },
});
}
} catch (errors) {
} catch (error) {
logger.error(`🐛🐛 Internal Server Error ${error.message}`);
next(
new HttpError(
Expand Down Expand Up @@ -635,7 +635,7 @@ const createCohort = {
: { message: "Internal Server Error" },
});
}
} catch (errors) {
} catch (error) {
logger.error(`🐛🐛 Internal Server Error ${error.message}`);
next(
new HttpError(
Expand Down
12 changes: 6 additions & 6 deletions src/device-registry/controllers/create-grid.js
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ const createGrid = {
: { message: "Internal Server Error" },
});
}
} catch (errors) {
} catch (error) {
logger.error(`🐛🐛 Internal Server Error ${error.message}`);
next(
new HttpError(
Expand Down Expand Up @@ -417,7 +417,7 @@ const createGrid = {
: { message: "Internal Server Error" },
});
}
} catch (errors) {
} catch (error) {
logger.error(`🐛🐛 Internal Server Error ${error.message}`);
next(
new HttpError(
Expand Down Expand Up @@ -578,7 +578,7 @@ const createGrid = {
: { message: "Internal Server Error" },
});
}
} catch (errors) {
} catch (error) {
logger.error(`🐛🐛 Internal Server Error ${error.message}`);
next(
new HttpError(
Expand Down Expand Up @@ -632,7 +632,7 @@ const createGrid = {
: { message: "Internal Server Error" },
});
}
} catch (errors) {
} catch (error) {
logger.error(`🐛🐛 Internal Server Error ${error.message}`);
next(
new HttpError(
Expand Down Expand Up @@ -687,7 +687,7 @@ const createGrid = {
: { message: "Internal Server Error" },
});
}
} catch (errors) {
} catch (error) {
logger.error(`🐛🐛 Internal Server Error ${error.message}`);
next(
new HttpError(
Expand Down Expand Up @@ -743,7 +743,7 @@ const createGrid = {
: { message: "Internal Server Error" },
});
}
} catch (errors) {
} catch (error) {
logger.error(`🐛🐛 Internal Server Error ${error.message}`);
next(
new HttpError(
Expand Down
12 changes: 6 additions & 6 deletions src/device-registry/controllers/create-location.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ const createLocation = {
errors: result.errors ? result.errors : { message: "" },
});
}
} catch (errors) {
} catch (error) {
logger.error(`🐛🐛 Internal Server Error ${error.message}`);
next(
new HttpError(
Expand Down Expand Up @@ -135,7 +135,7 @@ const createLocation = {
errors: result.errors ? result.errors : { message: "" },
});
}
} catch (errors) {
} catch (error) {
logger.error(`🐛🐛 Internal Server Error ${error.message}`);
next(
new HttpError(
Expand Down Expand Up @@ -188,7 +188,7 @@ const createLocation = {
errors: result.errors ? result.errors : { message: "" },
});
}
} catch (errors) {
} catch (error) {
logger.error(`🐛🐛 Internal Server Error ${error.message}`);
next(
new HttpError(
Expand Down Expand Up @@ -242,7 +242,7 @@ const createLocation = {
errors: result.errors ? result.errors : { message: "" },
});
}
} catch (errors) {
} catch (error) {
logger.error(`🐛🐛 Internal Server Error ${error.message}`);
next(
new HttpError(
Expand Down Expand Up @@ -295,7 +295,7 @@ const createLocation = {
errors: result.errors ? result.errors : { message: "" },
});
}
} catch (errors) {
} catch (error) {
logger.error(`🐛🐛 Internal Server Error ${error.message}`);
next(
new HttpError(
Expand Down Expand Up @@ -348,7 +348,7 @@ const createLocation = {
errors: result.errors ? result.errors : { message: "" },
});
}
} catch (errors) {
} catch (error) {
logger.error(`🐛🐛 Internal Server Error ${error.message}`);
next(
new HttpError(
Expand Down

0 comments on commit 35d6bb6

Please sign in to comment.