Skip to content

Commit 6ae8003

Browse files
committed
page_weight AS pageWeight
Signed-off-by: Max Ostapenko <1611259+max-ostapenko@users.noreply.github.com>
1 parent e7bb48b commit 6ae8003

File tree

1 file changed

+28
-28
lines changed

1 file changed

+28
-28
lines changed

definitions/output/reports/tech_report_page_weight.js

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -69,32 +69,32 @@ GROUP BY
6969
technology,
7070
version
7171
`).postOps(ctx => `
72-
SELECT
73-
reports.run_export_job(
74-
JSON '''{
75-
"destination": "firestore",
76-
"config": {
77-
"database": "tech-report-api-${constants.environment}",
78-
"collection": "page_weight",
79-
"type": "report",
80-
"date": "${pastMonth}"
81-
},
82-
"query": "SELECT STRING(date) AS date, * EXCEPT(date) FROM ${ctx.self()} WHERE date = '${pastMonth}'"
83-
}'''
84-
);
72+
SELECT
73+
reports.run_export_job(
74+
JSON '''{
75+
"destination": "firestore",
76+
"config": {
77+
"database": "tech-report-api-${constants.environment}",
78+
"collection": "page_weight",
79+
"type": "report",
80+
"date": "${pastMonth}"
81+
},
82+
"query": "SELECT STRING(date) AS date, * EXCEPT(date) FROM ${ctx.self()} WHERE date = '${pastMonth}'"
83+
}'''
84+
);
8585
86-
-- legacy export for tech-report-apis
87-
SELECT
88-
reports.run_export_job(
89-
JSON '''{
90-
"destination": "firestore",
91-
"config": {
92-
"database": "tech-report-apis-${constants.environment}",
93-
"collection": "page_weight",
94-
"type": "report",
95-
"date": "${pastMonth}"
96-
},
97-
"query": "SELECT STRING(date) AS date, * EXCEPT(date, version) FROM ${ctx.self()} WHERE date = '${pastMonth}' AND version = 'ALL'"
98-
}'''
99-
);
100-
`)
86+
-- legacy export for tech-report-apis
87+
SELECT
88+
reports.run_export_job(
89+
JSON '''{
90+
"destination": "firestore",
91+
"config": {
92+
"database": "tech-report-apis-${constants.environment}",
93+
"collection": "page_weight",
94+
"type": "report",
95+
"date": "${pastMonth}"
96+
},
97+
"query": "SELECT STRING(date) AS date, page_weight AS pageWeight, * EXCEPT(date, version, page_weight) FROM ${ctx.self()} WHERE date = '${pastMonth}' AND version = 'ALL'"
98+
}'''
99+
);
100+
`)

0 commit comments

Comments
 (0)