Skip to content

Commit ddcd88e

Browse files
committed
update reservation name
1 parent 5c1c78e commit ddcd88e

File tree

6 files changed

+12
-6
lines changed

6 files changed

+12
-6
lines changed

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: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ const [
2020
'AND rank <= 10000'
2121
]
2222
: ['', '']
23+
const bucket = 'httparchive'
24+
const storagePath = 'reports/'
25+
const reservation_id = 'projects/httparchive/locations/US/reservations/pipeline'
2326

2427
class DataformTemplateBuilder {
2528
/**
@@ -72,5 +75,8 @@ module.exports = {
7275
environment,
7376
devTABLESAMPLE,
7477
devRankFilter,
75-
DataformTemplateBuilder
78+
DataformTemplateBuilder,
79+
bucket,
80+
storagePath,
81+
reservation_id
7682
}

0 commit comments

Comments
 (0)