Skip to content

Update Hasura config defaults #1269

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: next
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ The format is based on [Keep a Changelog], and this project adheres to [Semantic

Releases prior to 7.0 has been removed from this file to declutter search results; see the [archived copy](https://github.com/dipdup-io/dipdup/blob/8.0.0b5/CHANGELOG.md) for the full list.

## [Unreleased]

### Changed

- config: Default Hasura to `camel_case=true` and `select_limit=10000` for all environments.

## [8.4.2] - 2025-06-18

### Added
Expand Down
2 changes: 1 addition & 1 deletion src/demo_blank/configs/dipdup.swarm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ hasura:
url: http://${HASURA_HOST:-demo_blank_hasura}:8080
admin_secret: ${HASURA_SECRET:-changeme}
allow_aggregations: ${HASURA_ALLOW_AGGREGATIONS:-false}
select_limit: ${HASURA_SELECT_LIMIT:-100}
select_limit: ${HASURA_SELECT_LIMIT:-10000}
camel_case: ${HASURA_CAMEL_CASE:-true}

sentry:
Expand Down
2 changes: 1 addition & 1 deletion src/demo_evm_events/configs/dipdup.swarm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ hasura:
url: http://${HASURA_HOST:-demo_evm_events_hasura}:8080
admin_secret: ${HASURA_SECRET:-changeme}
allow_aggregations: ${HASURA_ALLOW_AGGREGATIONS:-false}
select_limit: ${HASURA_SELECT_LIMIT:-100}
select_limit: ${HASURA_SELECT_LIMIT:-10000}
camel_case: ${HASURA_CAMEL_CASE:-true}

sentry:
Expand Down
2 changes: 1 addition & 1 deletion src/demo_evm_transactions/configs/dipdup.swarm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ hasura:
url: http://${HASURA_HOST:-demo_evm_transactions_hasura}:8080
admin_secret: ${HASURA_SECRET:-changeme}
allow_aggregations: ${HASURA_ALLOW_AGGREGATIONS:-false}
select_limit: ${HASURA_SELECT_LIMIT:-100}
select_limit: ${HASURA_SELECT_LIMIT:-10000}
camel_case: ${HASURA_CAMEL_CASE:-true}

sentry:
Expand Down
2 changes: 1 addition & 1 deletion src/demo_evm_uniswap/configs/dipdup.swarm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ hasura:
url: http://${HASURA_HOST:-demo_evm_uniswap_hasura}:8080
admin_secret: ${HASURA_SECRET:-changeme}
allow_aggregations: ${HASURA_ALLOW_AGGREGATIONS:-false}
select_limit: ${HASURA_SELECT_LIMIT:-100}
select_limit: ${HASURA_SELECT_LIMIT:-10000}
camel_case: ${HASURA_CAMEL_CASE:-true}

sentry:
Expand Down
2 changes: 1 addition & 1 deletion src/demo_starknet_events/configs/dipdup.swarm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ hasura:
url: http://${HASURA_HOST:-demo_starknet_events_hasura}:8080
admin_secret: ${HASURA_SECRET:-changeme}
allow_aggregations: ${HASURA_ALLOW_AGGREGATIONS:-false}
select_limit: ${HASURA_SELECT_LIMIT:-100}
select_limit: ${HASURA_SELECT_LIMIT:-10000}
camel_case: ${HASURA_CAMEL_CASE:-true}

sentry:
Expand Down
2 changes: 1 addition & 1 deletion src/demo_substrate_events/configs/dipdup.swarm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ hasura:
url: http://${HASURA_HOST:-demo_substrate_events_hasura}:8080
admin_secret: ${HASURA_SECRET:-changeme}
allow_aggregations: ${HASURA_ALLOW_AGGREGATIONS:-false}
select_limit: ${HASURA_SELECT_LIMIT:-100}
select_limit: ${HASURA_SELECT_LIMIT:-10000}
camel_case: ${HASURA_CAMEL_CASE:-true}

sentry:
Expand Down
2 changes: 1 addition & 1 deletion src/demo_tezos_auction/configs/dipdup.swarm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ hasura:
url: http://${HASURA_HOST:-demo_tezos_auction_hasura}:8080
admin_secret: ${HASURA_SECRET:-changeme}
allow_aggregations: ${HASURA_ALLOW_AGGREGATIONS:-false}
select_limit: ${HASURA_SELECT_LIMIT:-100}
select_limit: ${HASURA_SELECT_LIMIT:-10000}
camel_case: ${HASURA_CAMEL_CASE:-true}

sentry:
Expand Down
2 changes: 1 addition & 1 deletion src/demo_tezos_dao/configs/dipdup.swarm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ hasura:
url: http://${HASURA_HOST:-demo_tezos_dao_hasura}:8080
admin_secret: ${HASURA_SECRET:-changeme}
allow_aggregations: ${HASURA_ALLOW_AGGREGATIONS:-false}
select_limit: ${HASURA_SELECT_LIMIT:-100}
select_limit: ${HASURA_SELECT_LIMIT:-10000}
camel_case: ${HASURA_CAMEL_CASE:-true}

sentry:
Expand Down
2 changes: 1 addition & 1 deletion src/demo_tezos_dex/configs/dipdup.swarm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ hasura:
url: http://${HASURA_HOST:-demo_tezos_dex_hasura}:8080
admin_secret: ${HASURA_SECRET:-changeme}
allow_aggregations: ${HASURA_ALLOW_AGGREGATIONS:-false}
select_limit: ${HASURA_SELECT_LIMIT:-100}
select_limit: ${HASURA_SELECT_LIMIT:-10000}
camel_case: ${HASURA_CAMEL_CASE:-true}

sentry:
Expand Down
2 changes: 1 addition & 1 deletion src/demo_tezos_domains/configs/dipdup.swarm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ hasura:
url: http://${HASURA_HOST:-demo_tezos_domains_hasura}:8080
admin_secret: ${HASURA_SECRET:-changeme}
allow_aggregations: ${HASURA_ALLOW_AGGREGATIONS:-false}
select_limit: ${HASURA_SELECT_LIMIT:-100}
select_limit: ${HASURA_SELECT_LIMIT:-10000}
camel_case: ${HASURA_CAMEL_CASE:-true}

sentry:
Expand Down
2 changes: 1 addition & 1 deletion src/demo_tezos_etherlink/configs/dipdup.swarm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ hasura:
url: http://${HASURA_HOST:-demo_tezos_etherlink_hasura}:8080
admin_secret: ${HASURA_SECRET:-changeme}
allow_aggregations: ${HASURA_ALLOW_AGGREGATIONS:-false}
select_limit: ${HASURA_SELECT_LIMIT:-100}
select_limit: ${HASURA_SELECT_LIMIT:-10000}
camel_case: ${HASURA_CAMEL_CASE:-true}

sentry:
Expand Down
2 changes: 1 addition & 1 deletion src/demo_tezos_events/configs/dipdup.swarm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ hasura:
url: http://${HASURA_HOST:-demo_tezos_events_hasura}:8080
admin_secret: ${HASURA_SECRET:-changeme}
allow_aggregations: ${HASURA_ALLOW_AGGREGATIONS:-false}
select_limit: ${HASURA_SELECT_LIMIT:-100}
select_limit: ${HASURA_SELECT_LIMIT:-10000}
camel_case: ${HASURA_CAMEL_CASE:-true}

sentry:
Expand Down
2 changes: 1 addition & 1 deletion src/demo_tezos_factories/configs/dipdup.swarm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ hasura:
url: http://${HASURA_HOST:-demo_tezos_factories_hasura}:8080
admin_secret: ${HASURA_SECRET:-changeme}
allow_aggregations: ${HASURA_ALLOW_AGGREGATIONS:-false}
select_limit: ${HASURA_SELECT_LIMIT:-100}
select_limit: ${HASURA_SELECT_LIMIT:-10000}
camel_case: ${HASURA_CAMEL_CASE:-true}

sentry:
Expand Down
2 changes: 1 addition & 1 deletion src/demo_tezos_head/configs/dipdup.swarm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ hasura:
url: http://${HASURA_HOST:-demo_tezos_head_hasura}:8080
admin_secret: ${HASURA_SECRET:-changeme}
allow_aggregations: ${HASURA_ALLOW_AGGREGATIONS:-false}
select_limit: ${HASURA_SELECT_LIMIT:-100}
select_limit: ${HASURA_SELECT_LIMIT:-10000}
camel_case: ${HASURA_CAMEL_CASE:-true}

sentry:
Expand Down
2 changes: 1 addition & 1 deletion src/demo_tezos_nft_marketplace/configs/dipdup.swarm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ hasura:
url: http://${HASURA_HOST:-demo_tezos_nft_marketplace_hasura}:8080
admin_secret: ${HASURA_SECRET:-changeme}
allow_aggregations: ${HASURA_ALLOW_AGGREGATIONS:-false}
select_limit: ${HASURA_SELECT_LIMIT:-100}
select_limit: ${HASURA_SELECT_LIMIT:-10000}
camel_case: ${HASURA_CAMEL_CASE:-true}

sentry:
Expand Down
2 changes: 1 addition & 1 deletion src/demo_tezos_raw/configs/dipdup.swarm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ hasura:
url: http://${HASURA_HOST:-demo_tezos_raw_hasura}:8080
admin_secret: ${HASURA_SECRET:-changeme}
allow_aggregations: ${HASURA_ALLOW_AGGREGATIONS:-false}
select_limit: ${HASURA_SELECT_LIMIT:-100}
select_limit: ${HASURA_SELECT_LIMIT:-10000}
camel_case: ${HASURA_CAMEL_CASE:-true}

sentry:
Expand Down
2 changes: 1 addition & 1 deletion src/demo_tezos_token/configs/dipdup.swarm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ hasura:
url: http://${HASURA_HOST:-demo_tezos_token_hasura}:8080
admin_secret: ${HASURA_SECRET:-changeme}
allow_aggregations: ${HASURA_ALLOW_AGGREGATIONS:-false}
select_limit: ${HASURA_SELECT_LIMIT:-100}
select_limit: ${HASURA_SELECT_LIMIT:-10000}
camel_case: ${HASURA_CAMEL_CASE:-true}

sentry:
Expand Down
2 changes: 1 addition & 1 deletion src/demo_tezos_token_balances/configs/dipdup.swarm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ hasura:
url: http://${HASURA_HOST:-demo_tezos_token_balances_hasura}:8080
admin_secret: ${HASURA_SECRET:-changeme}
allow_aggregations: ${HASURA_ALLOW_AGGREGATIONS:-false}
select_limit: ${HASURA_SELECT_LIMIT:-100}
select_limit: ${HASURA_SELECT_LIMIT:-10000}
camel_case: ${HASURA_CAMEL_CASE:-true}

sentry:
Expand Down
2 changes: 1 addition & 1 deletion src/demo_tezos_token_transfers/configs/dipdup.swarm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ hasura:
url: http://${HASURA_HOST:-demo_tezos_token_transfers_hasura}:8080
admin_secret: ${HASURA_SECRET:-changeme}
allow_aggregations: ${HASURA_ALLOW_AGGREGATIONS:-false}
select_limit: ${HASURA_SELECT_LIMIT:-100}
select_limit: ${HASURA_SELECT_LIMIT:-10000}
camel_case: ${HASURA_CAMEL_CASE:-true}

sentry:
Expand Down
4 changes: 2 additions & 2 deletions src/dipdup/config/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,10 +414,10 @@ class HasuraConfig:
admin_secret: str | None = Field(default=None, repr=False)
create_source: bool = False
source: str = 'default'
select_limit: int = 1000
select_limit: int = 10_000
allow_aggregations: bool = True
allow_inconsistent_metadata: bool = False
camel_case: bool = False
camel_case: bool = True
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

false?

Copy link
Member Author

@droserasprout droserasprout Jun 27, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Currently there's an inconsistency. In config class default is False. In environment configs provided with project template default is True. Thus, de-facto default is True.

Changing default in the template would be a more breaking change. I'll double check env vars in our deployments after merging this.

rest: bool = True
http: HttpConfig | None = None
hide_internal: bool = False
Expand Down
2 changes: 1 addition & 1 deletion src/dipdup/projects/base/configs/dipdup.swarm.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ hasura:
url: http://${HASURA_HOST:-{{ project.package }}_hasura}:8080
admin_secret: ${HASURA_SECRET:-changeme}
allow_aggregations: ${HASURA_ALLOW_AGGREGATIONS:-false}
select_limit: ${HASURA_SELECT_LIMIT:-100}
select_limit: ${HASURA_SELECT_LIMIT:-10000}
camel_case: ${HASURA_CAMEL_CASE:-true}

sentry:
Expand Down