-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
34 changed files
with
7,753 additions
and
3,186 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Linter | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: null | ||
push: | ||
branches: | ||
- main | ||
|
||
permissions: | ||
contents: read | ||
packages: read | ||
|
||
jobs: | ||
build: | ||
name: Lint | ||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
statuses: write # To report GitHub Actions status checks | ||
|
||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Lint Code Base | ||
uses: super-linter/super-linter/[email protected] | ||
env: | ||
DEFAULT_BRANCH: main | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
VALIDATE_JAVASCRIPT_PRETTIER: false | ||
VALIDATE_MARKDOWN_PRETTIER: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,4 @@ node_modules/ | |
|
||
# Terraform | ||
tf/.terraform/ | ||
tf/temp | ||
|
||
# Dataform | ||
.df-credentials.json | ||
tf/temp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,45 @@ | ||
publish("pages", { | ||
type: "incremental", | ||
publish('pages', { | ||
type: 'incremental', | ||
protected: true, | ||
schema: "all", | ||
schema: 'all', | ||
bigquery: { | ||
partitionBy: "date", | ||
clusterBy: ["client", "is_root_page", "rank"], | ||
partitionBy: 'date', | ||
clusterBy: ['client', 'is_root_page', 'rank'], | ||
requirePartitionFilter: true | ||
}, | ||
tags: ["crawl_results_all"], | ||
tags: ['crawl_results_all'] | ||
}).preOps(ctx => ` | ||
DELETE FROM ${ctx.self()} | ||
WHERE date = '${constants.current_month}'; | ||
WHERE date = '${constants.currentMonth}'; | ||
`).query(ctx => ` | ||
SELECT * | ||
FROM ${ctx.ref("crawl_staging", "pages")} | ||
WHERE date = '${constants.current_month}' | ||
FROM ${ctx.ref('crawl_staging', 'pages')} | ||
WHERE date = '${constants.currentMonth}' | ||
AND client = 'desktop' | ||
AND is_root_page = TRUE | ||
${constants.dev_rank_filter} | ||
${constants.devRankFilter} | ||
`).postOps(ctx => ` | ||
INSERT INTO ${ctx.self()} | ||
SELECT * | ||
FROM ${ctx.ref("crawl_staging", "pages")} | ||
WHERE date = '${constants.current_month}' | ||
FROM ${ctx.ref('crawl_staging', 'pages')} | ||
WHERE date = '${constants.currentMonth}' | ||
AND client = 'desktop' | ||
AND is_root_page = FALSE | ||
${constants.dev_rank_filter}; | ||
${constants.devRankFilter}; | ||
INSERT INTO ${ctx.self()} | ||
SELECT * | ||
FROM ${ctx.ref("crawl_staging", "pages")} ${constants.dev_TABLESAMPLE} | ||
WHERE date = '${constants.current_month}' | ||
FROM ${ctx.ref('crawl_staging', 'pages')} ${constants.devTABLESAMPLE} | ||
WHERE date = '${constants.currentMonth}' | ||
AND client = 'mobile' | ||
AND is_root_page = TRUE | ||
${constants.dev_rank_filter}; | ||
${constants.devRankFilter}; | ||
INSERT INTO ${ctx.self()} | ||
SELECT * | ||
FROM ${ctx.ref("crawl_staging", "pages")} | ||
WHERE date = '${constants.current_month}' | ||
FROM ${ctx.ref('crawl_staging', 'pages')} | ||
WHERE date = '${constants.currentMonth}' | ||
AND client = 'mobile' | ||
AND is_root_page = FALSE | ||
${constants.dev_rank_filter}; | ||
${constants.devRankFilter}; | ||
`) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,27 @@ | ||
publish("parsed_css", { | ||
type: "incremental", | ||
publish('parsed_css', { | ||
type: 'incremental', | ||
protected: true, | ||
schema: "all", | ||
schema: 'all', | ||
bigquery: { | ||
partitionBy: "date", | ||
clusterBy: ["client", "is_root_page", "rank", "page"], | ||
partitionBy: 'date', | ||
clusterBy: ['client', 'is_root_page', 'rank', 'page'], | ||
requirePartitionFilter: true | ||
}, | ||
tags: ["crawl_results_all"], | ||
tags: ['crawl_results_all'] | ||
}).preOps(ctx => ` | ||
DELETE FROM ${ctx.self()} | ||
WHERE date = '${constants.current_month}'; | ||
WHERE date = '${constants.currentMonth}'; | ||
`).query(ctx => ` | ||
SELECT * | ||
FROM ${ctx.ref("crawl_staging", "parsed_css")} | ||
WHERE date = '${constants.current_month}' | ||
FROM ${ctx.ref('crawl_staging', 'parsed_css')} | ||
WHERE date = '${constants.currentMonth}' | ||
AND client = 'desktop' | ||
${constants.dev_rank_filter} | ||
${constants.devRankFilter} | ||
`).postOps(ctx => ` | ||
INSERT INTO ${ctx.self()} | ||
SELECT * | ||
FROM ${ctx.ref("crawl_staging", "parsed_css")} | ||
WHERE date = '${constants.current_month}' | ||
FROM ${ctx.ref('crawl_staging', 'parsed_css')} | ||
WHERE date = '${constants.currentMonth}' | ||
AND client = 'mobile' | ||
${constants.dev_rank_filter}; | ||
${constants.devRankFilter}; | ||
`) |
Oops, something went wrong.