dipdup
dipdup copied to clipboard
When adding views through on_restart SQL, metadata isn't updated and requires `hasura configure --force`
I'm aware this is due to a previous hasura limitation to do with separate calls to pg_table_customization
for camel casing the field and table names, but it should be possible possible now to add this directly to the metadata (see: https://hasura.io/docs/latest/graphql/core/api-reference/syntax-defs/#sourcecustomization - also take note of the experimental naming_convention
for camel casing).
So it should be possible to change the metadata hash check to (pseudo code):
meta = generateMetdadata
hash = hashMetadata(meta)
if hash != previousMetaHash:
updateMetadata(meta)