Skip to content

Commit 3632212

Browse files
Merge branch 'main' into dependabot/github_actions/actions/checkout-6
2 parents 620d48c + ac9489a commit 3632212

File tree

10 files changed

+104
-207
lines changed

10 files changed

+104
-207
lines changed

.github/workflows/infra.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,6 @@ on:
66
- main
77
paths:
88
- 'infra/**'
9-
pull_request:
10-
branches:
11-
- main
12-
paths:
13-
- 'infra/**'
149

1510
concurrency:
1611
group: ${{ github.workflow }}-${{ github.ref }}
Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const reservations = require('@masthead-data/dataform-package')
1+
const { autoAssignActions } = require('@masthead-data/dataform-package')
22

33
const RESERVATION_CONFIG = [
44
{
@@ -14,8 +14,4 @@ const RESERVATION_CONFIG = [
1414
}
1515
]
1616

17-
const reservation_setter = reservations.createReservationSetter(RESERVATION_CONFIG)
18-
19-
module.exports = {
20-
reservation_setter
21-
}
17+
autoAssignActions(RESERVATION_CONFIG)

definitions/output/crawl/pages.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,6 @@ publish('pages', {
5959
tags: ['crawl_complete'],
6060
dependOnDependencyAssertions: true
6161
}).preOps(ctx => `
62-
${reservations.reservation_setter(ctx)}
63-
6462
DELETE FROM ${ctx.self()}
6563
WHERE date = '${constants.currentMonth}' AND
6664
client = 'desktop';

definitions/output/crawl/parsed_css.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ publish('parsed_css', {
1212
columns: columns,
1313
tags: ['crawl_complete']
1414
}).preOps(ctx => `
15-
${reservations.reservation_setter(ctx)}
16-
1715
DELETE FROM ${ctx.self()}
1816
WHERE date = '${constants.currentMonth}'
1917
AND client = 'desktop';

definitions/output/crawl/requests.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ publish('requests', {
1212
columns: columns,
1313
tags: ['crawl_complete']
1414
}).preOps(ctx => `
15-
${reservations.reservation_setter(ctx)}
16-
1715
FOR client_var IN (SELECT * FROM UNNEST(['desktop', 'mobile']) AS value) DO
1816
FOR is_root_page_var IN (SELECT * FROM UNNEST([TRUE, FALSE]) AS value) DO
1917
FOR rank_lt_50M_var IN (SELECT * FROM UNNEST([TRUE, FALSE]) AS value) DO

definitions/output/f1/pages_latest.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@ publish('pages_latest', {
77
clusterBy: ['client', 'is_root_page', 'rank', 'page']
88
},
99
tags: ['crawl_complete']
10-
}).preOps(ctx => `
11-
${reservations.reservation_setter(ctx)}
12-
`).query(ctx => `
10+
}).query(ctx => `
1311
SELECT
1412
date,
1513
client,

definitions/output/f1/requests_latest.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@ publish('requests_latest', {
77
clusterBy: ['client', 'is_root_page', 'rank', 'type']
88
},
99
tags: ['crawl_complete']
10-
}).preOps(ctx => `
11-
${reservations.reservation_setter(ctx)}
12-
`).query(ctx => `
10+
}).query(ctx => `
1311
SELECT
1412
date,
1513
client,

0 commit comments

Comments
 (0)