dipdup icon indicating copy to clipboard operation
dipdup copied to clipboard

When adding views through on_restart SQL, metadata isn't updated and requires `hasura configure --force`

Open 852Kerfunkle opened this issue 2 years ago • 0 comments

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)

852Kerfunkle avatar Jun 24 '22 17:06 852Kerfunkle