Skip to content

Commit e7bb48b

Browse files
committed
format
Signed-off-by: Max Ostapenko <1611259+max-ostapenko@users.noreply.github.com>
1 parent c3a265f commit e7bb48b

8 files changed

Lines changed: 135 additions & 135 deletions

definitions/output/reports/tech_report_audits.js

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -87,17 +87,17 @@ GROUP BY
8787
technology,
8888
version
8989
`).postOps(ctx => `
90-
SELECT
91-
reports.run_export_job(
92-
JSON '''{
93-
"destination": "firestore",
94-
"config": {
95-
"database": "tech-report-api-${constants.environment}",
96-
"collection": "audits",
97-
"type": "report",
98-
"date": "${pastMonth}"
99-
},
100-
"query": "SELECT STRING(date) AS date, * EXCEPT(date) FROM ${ctx.self()} WHERE date = '${pastMonth}'"
101-
}'''
102-
);
103-
`)
90+
SELECT
91+
reports.run_export_job(
92+
JSON '''{
93+
"destination": "firestore",
94+
"config": {
95+
"database": "tech-report-api-${constants.environment}",
96+
"collection": "audits",
97+
"type": "report",
98+
"date": "${pastMonth}"
99+
},
100+
"query": "SELECT STRING(date) AS date, * EXCEPT(date) FROM ${ctx.self()} WHERE date = '${pastMonth}'"
101+
}'''
102+
);
103+
`)

definitions/output/reports/tech_report_categories.js

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -108,16 +108,16 @@ FROM (
108108
GROUP BY client
109109
)
110110
`).postOps(ctx => `
111-
SELECT
112-
reports.run_export_job(
113-
JSON '''{
114-
"destination": "firestore",
115-
"config": {
116-
"database": "tech-report-api-${constants.environment}",
117-
"collection": "categories",
118-
"type": "dict"
119-
},
120-
"query": "SELECT * FROM ${ctx.self()}"
121-
}'''
122-
);
123-
`)
111+
SELECT
112+
reports.run_export_job(
113+
JSON '''{
114+
"destination": "firestore",
115+
"config": {
116+
"database": "tech-report-api-${constants.environment}",
117+
"collection": "categories",
118+
"type": "dict"
119+
},
120+
"query": "SELECT * FROM ${ctx.self()}"
121+
}'''
122+
);
123+
`)

definitions/output/reports/tech_report_core_web_vitals.js

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -100,32 +100,32 @@ GROUP BY
100100
technology,
101101
version
102102
`).postOps(ctx => `
103-
SELECT
104-
reports.run_export_job(
105-
JSON '''{
106-
"destination": "firestore",
107-
"config": {
108-
"database": "tech-report-api-${constants.environment}",
109-
"collection": "core_web_vitals",
110-
"type": "report",
111-
"date": "${pastMonth}"
112-
},
113-
"query": "SELECT STRING(date) AS date, * EXCEPT(date) FROM ${ctx.self()} WHERE date = '${pastMonth}'"
114-
}'''
115-
);
103+
SELECT
104+
reports.run_export_job(
105+
JSON '''{
106+
"destination": "firestore",
107+
"config": {
108+
"database": "tech-report-api-${constants.environment}",
109+
"collection": "core_web_vitals",
110+
"type": "report",
111+
"date": "${pastMonth}"
112+
},
113+
"query": "SELECT STRING(date) AS date, * EXCEPT(date) FROM ${ctx.self()} WHERE date = '${pastMonth}'"
114+
}'''
115+
);
116116
117-
-- legacy export to tech-report-apis database
118-
SELECT
119-
reports.run_export_job(
120-
JSON '''{
121-
"destination": "firestore",
122-
"config": {
123-
"database": "tech-report-apis-${constants.environment}",
124-
"collection": "core_web_vitals",
125-
"type": "report",
126-
"date": "${pastMonth}"
127-
},
128-
"query": "SELECT STRING(date) AS date, * EXCEPT(date, version) FROM ${ctx.self()} WHERE date = '${pastMonth}' AND version = 'ALL'"
129-
}'''
130-
);
131-
`)
117+
-- legacy export to tech-report-apis database
118+
SELECT
119+
reports.run_export_job(
120+
JSON '''{
121+
"destination": "firestore",
122+
"config": {
123+
"database": "tech-report-apis-${constants.environment}",
124+
"collection": "core_web_vitals",
125+
"type": "report",
126+
"date": "${pastMonth}"
127+
},
128+
"query": "SELECT STRING(date) AS date, * EXCEPT(date, version) FROM ${ctx.self()} WHERE date = '${pastMonth}' AND version = 'ALL'"
129+
}'''
130+
);
131+
`)

definitions/output/reports/tech_report_geos.js

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,16 @@ WHERE
1616
AND version = 'ALL'
1717
${constants.devRankFilter}
1818
`).postOps(ctx => `
19-
SELECT
20-
reports.run_export_job(
21-
JSON '''{
22-
"destination": "firestore",
23-
"config": {
24-
"database": "tech-report-api-${constants.environment}",
25-
"collection": "geos",
26-
"type": "dict"
27-
},
28-
"query": "SELECT * FROM ${ctx.self()}"
29-
}'''
30-
);
31-
`)
19+
SELECT
20+
reports.run_export_job(
21+
JSON '''{
22+
"destination": "firestore",
23+
"config": {
24+
"database": "tech-report-api-${constants.environment}",
25+
"collection": "geos",
26+
"type": "dict"
27+
},
28+
"query": "SELECT * FROM ${ctx.self()}"
29+
}'''
30+
);
31+
`)

definitions/output/reports/tech_report_lighthouse.js

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -76,32 +76,32 @@ GROUP BY
7676
technology,
7777
version
7878
`).postOps(ctx => `
79-
SELECT
80-
reports.run_export_job(
81-
JSON '''{
82-
"destination": "firestore",
83-
"config": {
84-
"database": "tech-report-api-${constants.environment}",
85-
"collection": "lighthouse",
86-
"type": "report",
87-
"date": "${pastMonth}"
88-
},
89-
"query": "SELECT STRING(date) AS date, * EXCEPT(date) FROM ${ctx.self()} WHERE date = '${pastMonth}'"
90-
}'''
91-
);
79+
SELECT
80+
reports.run_export_job(
81+
JSON '''{
82+
"destination": "firestore",
83+
"config": {
84+
"database": "tech-report-api-${constants.environment}",
85+
"collection": "lighthouse",
86+
"type": "report",
87+
"date": "${pastMonth}"
88+
},
89+
"query": "SELECT STRING(date) AS date, * EXCEPT(date) FROM ${ctx.self()} WHERE date = '${pastMonth}'"
90+
}'''
91+
);
9292
93-
-- legacy export to tech-report-apis database
94-
SELECT
95-
reports.run_export_job(
96-
JSON '''{
97-
"destination": "firestore",
98-
"config": {
99-
"database": "tech-report-apis-${constants.environment}",
100-
"collection": "lighthouse",
101-
"type": "report",
102-
"date": "${pastMonth}"
103-
},
104-
"query": "SELECT STRING(date) AS date, * EXCEPT(date, version) FROM ${ctx.self()} WHERE date = '${pastMonth}' AND version = 'ALL'"
105-
}'''
106-
);
107-
`)
93+
-- legacy export to tech-report-apis database
94+
SELECT
95+
reports.run_export_job(
96+
JSON '''{
97+
"destination": "firestore",
98+
"config": {
99+
"database": "tech-report-apis-${constants.environment}",
100+
"collection": "lighthouse",
101+
"type": "report",
102+
"date": "${pastMonth}"
103+
},
104+
"query": "SELECT STRING(date) AS date, * EXCEPT(date, version) FROM ${ctx.self()} WHERE date = '${pastMonth}' AND version = 'ALL'"
105+
}'''
106+
);
107+
`)

definitions/output/reports/tech_report_ranks.js

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,16 @@ WHERE
1616
AND version = 'ALL'
1717
${constants.devRankFilter}
1818
`).postOps(ctx => `
19-
SELECT
20-
reports.run_export_job(
21-
JSON '''{
22-
"destination": "firestore",
23-
"config": {
24-
"database": "tech-report-api-${constants.environment}",
25-
"collection": "ranks",
26-
"type": "dict"
27-
},
28-
"query": "SELECT * FROM ${ctx.self()}"
29-
}'''
30-
);
31-
`)
19+
SELECT
20+
reports.run_export_job(
21+
JSON '''{
22+
"destination": "firestore",
23+
"config": {
24+
"database": "tech-report-api-${constants.environment}",
25+
"collection": "ranks",
26+
"type": "dict"
27+
},
28+
"query": "SELECT * FROM ${ctx.self()}"
29+
}'''
30+
);
31+
`)

definitions/output/reports/tech_report_technologies.js

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -57,16 +57,16 @@ SELECT
5757
FROM tech_origins
5858
WHERE technology = 'ALL'
5959
`).postOps(ctx => `
60-
SELECT
61-
reports.run_export_job(
62-
JSON '''{
63-
"destination": "firestore",
64-
"config": {
65-
"database": "tech-report-api-${constants.environment}",
66-
"collection": "technologies",
67-
"type": "dict"
68-
},
69-
"query": "SELECT * FROM ${ctx.self()}"
70-
}'''
71-
);
72-
`)
60+
SELECT
61+
reports.run_export_job(
62+
JSON '''{
63+
"destination": "firestore",
64+
"config": {
65+
"database": "tech-report-api-${constants.environment}",
66+
"collection": "technologies",
67+
"type": "dict"
68+
},
69+
"query": "SELECT * FROM ${ctx.self()}"
70+
}'''
71+
);
72+
`)

definitions/output/reports/tech_report_versions.js

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,16 @@ WHERE
1616
AND geo = 'ALL'
1717
${constants.devRankFilter}
1818
`).postOps(ctx => `
19-
SELECT
20-
reports.run_export_job(
21-
JSON '''{
22-
"destination": "firestore",
23-
"config": {
24-
"database": "tech-report-api-${constants.environment}",
25-
"collection": "versions",
26-
"type": "dict"
27-
},
28-
"query": "SELECT * FROM ${ctx.self()}"
29-
}'''
30-
);
31-
`)
19+
SELECT
20+
reports.run_export_job(
21+
JSON '''{
22+
"destination": "firestore",
23+
"config": {
24+
"database": "tech-report-api-${constants.environment}",
25+
"collection": "versions",
26+
"type": "dict"
27+
},
28+
"query": "SELECT * FROM ${ctx.self()}"
29+
}'''
30+
);
31+
`)

0 commit comments

Comments
 (0)