Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
max-ostapenko committed Oct 12, 2024
1 parent fb28fc6 commit 0dff686
Show file tree
Hide file tree
Showing 8 changed files with 6,346 additions and 6,337 deletions.
1 change: 1 addition & 0 deletions .github/workflows/linter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,4 @@ jobs:
env:
DEFAULT_BRANCH: main
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VALIDATE_JAVASCRIPT_PRETTIER: false
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# HTTP Archive BigQuery pipeline with Dataform

This repo handles the HTTP Archive data pipeline, which takes the results of the monthly HTTP Archive run and saves this to the `httparchive` dataset in BigQuery.
This repository handles the HTTP Archive data pipeline, which takes the results of the monthly HTTP Archive run and saves this to the `httparchive` dataset in BigQuery.

## Pipelines

Expand Down Expand Up @@ -72,8 +72,10 @@ Tag: `crawl_results_legacy`
### Dataform development workspace hints

1. In workflow settings vars:
1. set `env_name: dev` to process sampled data in dev workspace.
2. change `today` variable to a month in the past. May be helpful for testing pipelines based on `chrome-ux-report` data.

- set `env_name: dev` to process sampled data in dev workspace.
- change `today` variable to a month in the past. May be helpful for testing pipelines based on `chrome-ux-report` data.

2. `definitions/extra/test_env.sqlx` script helps to setup the tables required to run pipelines when in dev workspace. It's disabled by default.

### Error Monitoring
Expand Down
7,224 changes: 3,612 additions & 3,612 deletions package-lock.json

Large diffs are not rendered by default.

46 changes: 23 additions & 23 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
{
"name": "crawl-data",
"dependencies": {
"@dataform/core": "3.0.4"
},
"scripts": {
"start": "dataform run",
"compile": "dataform compile",
"test": "dataform test",
"format": "dataform format"
},
"standard": {
"globals": [
"constants",
"operate",
"assert",
"publish",
"declare",
"dataform"
]
},
"devDependencies": {
"standard": "^17.1.2"
}
"name": "crawl-data",
"dependencies": {
"@dataform/core": "3.0.4"
},
"scripts": {
"start": "dataform run",
"compile": "dataform compile",
"test": "dataform test",
"format": "dataform format"
},
"standard": {
"globals": [
"constants",
"operate",
"assert",
"publish",
"declare",
"dataform"
]
},
"devDependencies": {
"standard": "^17.1.2"
}
}
10 changes: 8 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@ FROM (
action: 'runDataformRepo',
actionArgs: {
repoName: 'crawl-data',
tags: ['crawl_results_all', 'blink_features_report', 'crawl_results_legacy']
tags: [
'crawl_results_all',
'blink_features_report',
'crawl_results_legacy'
]
}
}
}
Expand All @@ -59,7 +63,9 @@ async function messageHandler (req, res) {
return
}

message = message.data ? JSON.parse(Buffer.from(message.data, 'base64').toString('utf-8')) : message
message = message.data
? JSON.parse(Buffer.from(message.data, 'base64').toString('utf-8'))
: message
const eventName = message.name
if (!eventName) {
res.status(400).send('Bad Request: no trigger name found')
Expand Down
Loading

0 comments on commit 0dff686

Please sign in to comment.