-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Ensures factory deployers and deployers are separated (#1511) * Dagster: Fixes dag associations (#1510) * Update dag associations with production dbt * Adds all dbt targets as well * Dagster-Dbt: Fix handling of target paths (#1514) Dagster: Fix handling of target paths * minor fixes to mart models (#1509) * add: artifact_source to artifacts_by_project_v1 * fix: hide rows with no metrics * rf4: updates to eigentrust models * rf4: updates to eigentrust models (#1515) * feat: deploy docusaurus docs via GitHub Actions to Cloudflare (#1516) * Testing the GitHub actions workflow instead of Vercel * fix: install pnpm before node in deploy-docusaurus-docs (#1518) * feat: deploy job for dbt generated docs (#1519) * fix: use real BQ credentials in deploy-dbt-docs (#1520) * fix: use the `indexer` environment for dbt docs deploy (#1523) * fix: ignore workspace warning in deploy-dbt-docs (#1524) * add: optimist sbt and refactor trust model (#1521) * add optimist sbt and refactor trust model * refactor: grab fid : address mappings direct from farcaster * add: whether address is passport user or not * fix: modify non-farcaster verifications * fix: simplify user checks * fix: artifact name to address * fix: external-prs better error messages (#1527) * Adds an .env.example so folks know how to configure this for local testing * Reports in an error message what the valid commands are if you specified an invalid one * Adds a bunch of comments in places * add: deployer_v1 to API (#1525) * add optimist sbt and refactor trust model * refactor: grab fid : address mappings direct from farcaster * add: whether address is passport user or not * fix: modify non-farcaster verifications * fix: simplify user checks * feat: deployers_v1 * contracts model that includes deployments from factories * add: artifact source field * fix: union statement * fix: roll back hasura (#1528) * fix: roll back hasura * set sync_to_db to false * feat: pretty print results from external-prs (#1529) * Add a summary message to ossd validation * Separate messages by address/name * Provide a way to share informational messages, not just errors * Fix the status title for the GitHub app * fix: update to actions/checkout@v4 (#1530) * add: contracts model to hasura (#1531) * add: contracts model to hasura * add: contract query * reduce contracts_v1 dimensions (#1532) * reduce contracts_v1 dimensions * make distinct * fix: misaligned union * filter null deployers from mart * add: power user metric (#1534) * add: power user metric * chore: add metric to consolidate model * fix: linting in new metric * chore: update rf4 metrics blog post * feat: additional rf4 repo eligibility checks (#1535) * feat: additional rf4 repo eligibility checks * chore: add repo checks to overall project checks * fix: clean up todos * fix: handling empty arrays * feat: add ANY_EVM semantics to deployer crawling (#1540) * Checks whether the oss-directory network is any_evm, includes if so * Fix the join to join on both source and namespace * fix: bump oss-directory 0.0.13 in external-prs (#1542) * fix: removes artifact_type from artifacts, moves to a separate table (#1543) * Previously, we were DISTINCT on source, namespace, name, AND type. * This means that the same address was shown multiple times per artifact_type * This refactor creates an intermediate model called int_all_artifacts that we can use * artifact_type is removed from artifacts_v1 and artifacts_by_project_v1 * there's a new int_artifact_types table that we can use to get types * fix: update to v4 of GitHub actions setup (#1544) * fix: Hasura deploy needs Python (#1547) --------- Co-authored-by: Reuven Gonzales <[email protected]> Co-authored-by: Raymond Cheng <[email protected]>
- Loading branch information
1 parent
f24f5c9
commit a688a12
Showing
63 changed files
with
1,299 additions
and
519 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,71 @@ | ||
# NOTE: This name appears in GitHub's Checks API and in workflow's status badge. | ||
name: deploy-dbt-docs | ||
env: | ||
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} | ||
# Google variables | ||
GOOGLE_PROJECT_ID: "opensource-observer" | ||
|
||
# Trigger the workflow when: | ||
on: | ||
# A push occurs to one of the matched branches. | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- warehouse/dbt/** | ||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build-deploy: | ||
# NOTE: This name appears in GitHub's Checks API. | ||
name: build-deploy | ||
environment: indexer | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 1 | ||
|
||
- name: Setup pnpm | ||
uses: pnpm/action-setup@v4 | ||
with: | ||
version: 9 | ||
run_install: | | ||
- recursive: true | ||
args: [--frozen-lockfile, --strict-peer-dependencies] | ||
- name: Set up Node.js 20 | ||
uses: actions/setup-node@v4 | ||
with: | ||
cache: "pnpm" | ||
node-version: "20.x" | ||
|
||
- name: "Setup Python, Poetry and Dependencies" | ||
uses: packetcoders/action-setup-cache-python-poetry@main | ||
with: | ||
python-version: 3.12 | ||
poetry-version: 1.7.1 | ||
|
||
- name: Login to google | ||
uses: "google-github-actions/auth@v2" | ||
with: | ||
credentials_json: "${{ secrets.GOOGLE_CREDENTIALS_JSON }}" | ||
create_credentials_file: true | ||
|
||
- name: Setup dbt profile | ||
run: | | ||
bash .github/scripts/create-dbt-profile.sh ${GOOGLE_APPLICATION_CREDENTIALS} | ||
- name: Build | ||
run: pnpm build:dbt:docs | ||
|
||
# This is necessary because wrangler tries to install at monorepo root | ||
- run: echo "ignore-workspace-root-check=true" >> .npmrc | ||
|
||
- name: Publish | ||
uses: cloudflare/wrangler-action@v3 | ||
with: | ||
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | ||
command: pages deploy target --project-name=models-opensource-observer |
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,56 @@ | ||
# NOTE: This name appears in GitHub's Checks API and in workflow's status badge. | ||
name: deploy-docusaurus-docs | ||
env: | ||
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} | ||
DOCS_URL: ${{ vars.DOCS_URL }} | ||
DOCS_ALGOLIA_APP_ID: ${{ vars.DOCS_ALGOLIA_APP_ID }} | ||
DOCS_ALGOLIA_API_KEY: ${{ vars.DOCS_ALGOLIA_API_KEY }} | ||
DOCS_ALGOLIA_INDEX: ${{ vars.DOCS_ALGOLIA_INDEX }} | ||
DOCS_SEGMENT_WRITE_KEY: ${{ vars.DOCS_SEGMENT_WRITE_KEY }} | ||
|
||
# Trigger the workflow when: | ||
on: | ||
# A push occurs to one of the matched branches. | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- apps/docs/** | ||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build-deploy: | ||
# NOTE: This name appears in GitHub's Checks API. | ||
name: build-deploy | ||
environment: deploy | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 1 | ||
|
||
- name: Setup pnpm | ||
uses: pnpm/action-setup@v4 | ||
with: | ||
version: 9 | ||
run_install: | | ||
- recursive: true | ||
args: [--frozen-lockfile, --strict-peer-dependencies] | ||
- name: Set up Node.js 20 | ||
uses: actions/setup-node@v4 | ||
with: | ||
cache: "pnpm" | ||
node-version: "20.x" | ||
|
||
- name: Build | ||
run: pnpm build:docs | ||
|
||
- name: Publish | ||
uses: cloudflare/wrangler-action@v3 | ||
with: | ||
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | ||
workingDirectory: "apps/docs" | ||
command: pages deploy build --project-name=docs-opensource-observer |
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
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
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
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
22 changes: 22 additions & 0 deletions
22
apps/hasura/metadata/databases/cloudsql/tables/contracts_v1.yaml
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,22 @@ | ||
table: | ||
name: contracts_v1 | ||
schema: public | ||
select_permissions: | ||
- role: anonymous | ||
permission: | ||
columns: "*" | ||
filter: {} | ||
allow_aggregations: false | ||
comment: "" | ||
- role: user | ||
permission: | ||
columns: "*" | ||
filter: {} | ||
allow_aggregations: false | ||
comment: "" | ||
- role: developer | ||
permission: | ||
columns: "*" | ||
filter: {} | ||
allow_aggregations: true | ||
comment: "" |
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
Oops, something went wrong.