v2.46.0
📦 hasura-auth
✨ 2 features🐛 8 fixes🔧 5 symbols
Summary
This release focuses on bug fixes, particularly around Postgres JSON handling in event triggers and metric consistency. It also introduces an option to run SQL outside transactions and improves Haskell thread sizing based on cgroup limits.
✨ New Features
- Add optional `no_transaction` flag (default `false`) to `run_sql` API (Postgres) to execute SQL statements outside transaction blocks, with support for splitting multiple statements. Useful for operations like `CREATE INDEX CONCURRENTLY`.
- Attempt to set Haskell runtime threads based on cgroup CPU limits, when present, for better automatic sizing in Docker and Kubernetes environments.
🐛 Bug Fixes
- Fix an issue where Postgres reset JSON parameters to empty strings after a transaction, causing event trigger failures when executing mutations outside Hasura. The `insert_event_log` trigger function now correctly handles empty strings.
- Fix the `hasura_active_subscriptions` metric becoming inconsistent (e.g. showing a negative value).
- Fix an issue where a source's metadata would be erased if the source was inconsistent and then a source update was performed.
- Mark remote schemas as inconsistent when type conflicts occur with the existing schema.
- Only show internal actions errors in logs if `HASURA_GRAPHQL_DEV_MODE` or `HASURA_GRAPHQL_ADMIN_INTERNAL_ERRORS` are switched on.
- Increase upper bound of execution time metrics to 100s. _(Cloud / Enterprise edition only)_
- Add metrics `hasura_events_fetch_query_time` and `hasura_events_fetched_total`. _(Cloud / Enterprise edition only)_
- Fix metrics label for DB with non-standard URI. _(Cloud / Enterprise edition only)_
🔧 Affected Symbols
run_sql API (Postgres)insert_event_log trigger functionhasura_active_subscriptions metrichasura_events_fetch_query_time metrichasura_events_fetched_total metric