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

Log table url used for csv generation #109

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions bin/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ if [[ ${KUBE_NAMESPACE} == ${BRANCH_ENV} ]]; then
$kd -f kube/configmaps/configmap.yml -f kube/certs
$kd -f kube/file-vault/file-vault-ingress.yml -f kube/html-pdf
$kd -f kube/redis -f kube/hof-rds-api -f kube/file-vault
$kd -f kube/app -f
$kd -f kube/app -f kube/cron
$kd -f kube/autoscale/hpa-acrs.yml
elif [[ ${KUBE_NAMESPACE} == ${UAT_ENV} ]]; then
$kd -f kube/configmaps/configmap.yml
Expand All @@ -40,7 +40,7 @@ elif [[ ${KUBE_NAMESPACE} == ${STG_ENV} ]]; then
$kd -f kube/configmaps/configmap.yml
$kd -f kube/file-vault/file-vault-ingress.yml -f kube/html-pdf
$kd -f kube/hof-rds-api -f kube/redis -f kube/file-vault
$kd -f kube/app -f
$kd -f kube/app
$kd -f kube/autoscale/hpa-acrs.yml
elif [[ ${KUBE_NAMESPACE} == ${PROD_ENV} ]]; then
$kd -f kube/configmaps/configmap.yml -f kube/app/service.yml
Expand Down
2 changes: 1 addition & 1 deletion config.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ module.exports = {
},
saveService: {
postgresDateFormat: 'YYYY-MM-DD HH:mm:ss',
port: process.env.DATASERVICE_SERVICE_PORT_HTTPS,
port: process.env.DATASERVICE_SERVICE_PORT_HTTPS || '3000',
host: process.env.DATASERVICE_SERVICE_HOST &&
`https://${process.env.DATASERVICE_SERVICE_HOST}` || 'http://127.0.0.1'
},
Expand Down
5 changes: 4 additions & 1 deletion services/reports/reports.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ module.exports = class Reports {
this.type = opts.type;
this.tableName = opts.tableName;
this.tableUrl = `${baseUrl}/${opts.tableName}`;
// eslint-disable-next-line no-console
console.log('tableUrl: ' + this.tableUrl);
this.from = opts.from;
this.to = opts.to || moment().format(postgresDateFormat);
}
Expand Down Expand Up @@ -65,7 +67,8 @@ module.exports = class Reports {
async getRecordsWithProps(opts) {
const props = opts || {};
let url = `${this.tableUrl}/history`;

// eslint-disable-next-line no-console
console.log('url: ' + url);
props.from = this.from;
props.to = this.to;

Expand Down