Skip to content

Commit 31cd832

Browse files
Merge branch 'main' into breakable-macaw
2 parents fdcc44e + ddcd88e commit 31cd832

6 files changed

Lines changed: 8 additions & 6 deletions

File tree

definitions/output/crawl/pages.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ publish('pages', {
8282
tags: ['crawl_complete'],
8383
dependOnDependencyAssertions: true
8484
}).preOps(ctx => `
85-
SET @@RESERVATION='projects/httparchive/locations/US/reservations/enterprise';
85+
SET @@RESERVATION='${constants.reservation_id}';
8686
8787
DELETE FROM ${ctx.self()}
8888
WHERE date = '${constants.currentMonth}' AND

definitions/output/crawl/parsed_css.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ publish('parsed_css', {
99
},
1010
tags: ['crawl_complete']
1111
}).preOps(ctx => `
12-
SET @@RESERVATION='projects/httparchive/locations/US/reservations/enterprise';
12+
SET @@RESERVATION='${constants.reservation_id}';
1313
1414
DELETE FROM ${ctx.self()}
1515
WHERE date = '${constants.currentMonth}'

definitions/output/crawl/requests.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ publish('requests', {
3838
},
3939
tags: ['crawl_complete']
4040
}).preOps(ctx => `
41-
SET @@RESERVATION='projects/httparchive/locations/US/reservations/enterprise';
41+
SET @@RESERVATION='${constants.reservation_id}';
4242
4343
FOR client_var IN (SELECT * FROM UNNEST(['desktop', 'mobile']) AS value) DO
4444
FOR is_root_page_var IN (SELECT * FROM UNNEST([TRUE, FALSE]) AS value) DO

definitions/output/f1/pages_latest.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ publish('pages_latest', {
88
},
99
tags: ['crawl_complete']
1010
}).preOps(`
11-
SET @@RESERVATION='projects/httparchive/locations/US/reservations/enterprise';
11+
SET @@RESERVATION='${constants.reservation_id}';
1212
`).query(ctx => `
1313
SELECT
1414
date,

definitions/output/f1/requests_latest.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ publish('requests_latest', {
88
},
99
tags: ['crawl_complete']
1010
}).preOps(`
11-
SET @@RESERVATION='projects/httparchive/locations/US/reservations/enterprise';
11+
SET @@RESERVATION='${constants.reservation_id}';
1212
`).query(ctx => `
1313
SELECT
1414
date,

includes/constants.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ const [
2222
: ['', '']
2323
const bucket = 'httparchive'
2424
const storagePath = 'reports/'
25+
const reservation_id = 'projects/httparchive/locations/US/reservations/pipeline'
2526

2627
class DataformTemplateBuilder {
2728
/**
@@ -76,5 +77,6 @@ module.exports = {
7677
devRankFilter,
7778
DataformTemplateBuilder,
7879
bucket,
79-
storagePath
80+
storagePath,
81+
reservation_id
8082
}

0 commit comments

Comments
 (0)