Skip to content
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions definitions/output/reports/tech_report_adoption.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,20 @@ SELECT
"query": "SELECT STRING(date) AS date, * EXCEPT(date) FROM ${ctx.self()} WHERE date = '${pastMonth}'"
}'''
);

// legacy export to tech-report-apis database
SELECT
reports.run_export_job(
JSON '''{
"destination": "firestore",
"config": {
"database": "tech-report-apis-${constants.environment}",
"collection": "adoption",
"type": "report",
"date": "${pastMonth}"
},
"query": "SELECT STRING(date) AS date, * EXCEPT(date, version) FROM ${ctx.self()} WHERE date = '${pastMonth}' AND version = 'ALL'"
}'''
);

`)
15 changes: 15 additions & 0 deletions definitions/output/reports/tech_report_core_web_vitals.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,4 +113,19 @@ GROUP BY
"query": "SELECT STRING(date) AS date, * EXCEPT(date) FROM ${ctx.self()} WHERE date = '${pastMonth}'"
}'''
);

// legacy export to tech-report-apis database
SELECT
reports.run_export_job(
JSON '''{
"destination": "firestore",
"config": {
"database": "tech-report-api-${constants.environment}",
"collection": "core_web_vitals",
"type": "report",
"date": "${pastMonth}"
},
"query": "SELECT STRING(date) AS date, * EXCEPT(date, version) FROM ${ctx.self()} WHERE date = '${pastMonth}' AND version = 'ALL'"
}'''
);
`)
15 changes: 15 additions & 0 deletions definitions/output/reports/tech_report_lighthouse.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,4 +89,19 @@ GROUP BY
"query": "SELECT STRING(date) AS date, * EXCEPT(date) FROM ${ctx.self()} WHERE date = '${pastMonth}'"
}'''
);

// legacy export to tech-report-apis database
SELECT
reports.run_export_job(
JSON '''{
"destination": "firestore",
"config": {
"database": "tech-report-api-${constants.environment}",
"collection": "lighthouse",
"type": "report",
"date": "${pastMonth}"
},
"query": "SELECT STRING(date) AS date, * EXCEPT(date, version) FROM ${ctx.self()} WHERE date = '${pastMonth}' AND version = 'ALL'"
}'''
);
`)
15 changes: 15 additions & 0 deletions definitions/output/reports/tech_report_page_weight.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,19 @@ GROUP BY
"query": "SELECT STRING(date) AS date, * EXCEPT(date) FROM ${ctx.self()} WHERE date = '${pastMonth}'"
}'''
);

// legacy export for tech-report-apis
SELECT
reports.run_export_job(
JSON '''{
"destination": "firestore",
"config": {
"database": "tech-report-apis-${constants.environment}",
"collection": "page_weight",
"type": "report",
"date": "${pastMonth}"
},
"query": "SELECT STRING(date) AS date, * EXCEPT(date, version) FROM ${ctx.self()} WHERE date = '${pastMonth}' AND version = 'ALL'"
}'''
);
`)