server: export metadata V2 should not export cron triggers with included_in_metadata: false

https://github.com/hasura/graphql-engine-mono/pull/2366

GitOrigin-RevId: 88c3a5a1f10ea1cf0e2192c69da5cc4147f70ae3
This commit is contained in:
Karthikeyan Chinnakonda 2021-09-16 20:37:43 +05:30 committed by hasura-bot
parent 07fd7324c3
commit 169a49f2bb
2 changed files with 2 additions and 1 deletions

View File

@ -16,6 +16,7 @@
## v2.0.9 ## v2.0.9
- server: fix export_metadata V2 bug which included cron triggers with `include_in_metadata: false`
- server: disable mutation for materialised views (#6688) - server: disable mutation for materialised views (#6688)
- server: set `tracecontext` and `userInfo` for DML actions on Postgres sources - server: set `tracecontext` and `userInfo` for DML actions on Postgres sources
- server: add support for `connection_parameters` on `pg_add_source` API - server: add support for `connection_parameters` on `pg_add_source` API

View File

@ -329,7 +329,7 @@ runExportMetadataV2
:: forall m . ( QErrM m, MetadataM m, HasServerConfigCtx m) :: forall m . ( QErrM m, MetadataM m, HasServerConfigCtx m)
=> MetadataResourceVersion -> ExportMetadata -> m EncJSON => MetadataResourceVersion -> ExportMetadata -> m EncJSON
runExportMetadataV2 currentResourceVersion ExportMetadata{} = do runExportMetadataV2 currentResourceVersion ExportMetadata{} = do
exportMetadata <- processExperimentalFeatures =<< getMetadata exportMetadata <- processMetadata =<< getMetadata
pure $ encJFromOrderedValue $ AO.object pure $ encJFromOrderedValue $ AO.object
[ ("resource_version", AO.toOrdered currentResourceVersion) [ ("resource_version", AO.toOrdered currentResourceVersion)
, ("metadata", metadataToOrdJSON exportMetadata) , ("metadata", metadataToOrdJSON exportMetadata)