Skip to content

Commit

Permalink
feat: refresh Hasura metadata (#2209)
Browse files Browse the repository at this point in the history
* Includes new timeseries metrics by project and collection
* Update schema of metrics_v0 to include namespace
* Update to newest DDN schema using codegen
* Upgrade ndc-clickhouse to 1.0.2
  • Loading branch information
ryscheng authored Sep 26, 2024
1 parent 20a5929 commit 137f3f5
Show file tree
Hide file tree
Showing 28 changed files with 23,895 additions and 2,654 deletions.
6 changes: 5 additions & 1 deletion apps/hasura3/.hasura/context.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
kind: Context
version: v2
version: v3
definition:
current: default
contexts:
Expand All @@ -9,3 +9,7 @@ definition:
subgraph: ../oso_subgraph/subgraph.yaml
localEnvFile: ../.env
cloudEnvFile: ../.env.cloud
scripts:
docker-start:
bash: HASURA_DDN_PAT=$(ddn auth print-pat) docker compose -f compose.yaml --env-file .env up --build --pull always -d
powershell: $Env:HASURA_DDN_PAT = ddn auth print-pat; docker compose -f compose.yaml --env-file .env up --build --pull always -d
Empty file.
2 changes: 1 addition & 1 deletion apps/hasura3/app/subgraph.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ definition:
generator:
rootPath: .
includePaths:
- metadata
- metadata
6 changes: 6 additions & 0 deletions apps/hasura3/globals/graphql-config.hml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
kind: GraphqlConfig
version: v1
definition:
Expand Down Expand Up @@ -26,7 +27,12 @@ definition:
- Asc
- Desc
typeName: OrderBy
aggregate:
filterInputFieldName: filter_input
countFieldName: _count
countDistinctFieldName: _count_distinct
mutation:
rootOperationTypeName: Mutation
apolloFederation:
enableRootFields: true

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
packagingDefinition:
type: PrebuiltDockerImage
dockerImage: "ghcr.io/hasura/ndc-clickhouse:v1.0.0"
dockerImage: "ghcr.io/hasura/ndc-clickhouse:v1.0.2"
supportedEnvironmentVariables:
- name: CLICKHOUSE_URL
description: The ClickHouse connection URL
Expand All @@ -12,7 +12,7 @@ commands:
update: hasura-clickhouse update
cliPlugin:
name: clickhouse
version: "v1.0.0"
version: "v1.0.2"
dockerComposeWatch:
- path: ./
target: /etc/connector
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ services:
build:
context: .
dockerfile_inline: |-
FROM ghcr.io/hasura/ndc-clickhouse:v1.0.0
FROM ghcr.io/hasura/ndc-clickhouse:v1.0.2
COPY ./ /etc/connector
develop:
watch:
Expand Down
Loading

0 comments on commit 137f3f5

Please sign in to comment.