feature(server): allow untracking Logical Model when feature is off

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8339
GitOrigin-RevId: 20d4bfa465fa1ad6d1b2c630973e9c59a9d6178e
This commit is contained in:
Daniel Harvey 2023-03-15 18:19:30 +00:00 committed by hasura-bot
parent aea809b5c2
commit c441fa4a7f

View File

@ -235,14 +235,13 @@ runUntrackLogicalModel ::
( BackendMetadata b,
MonadError QErr m,
CacheRWM m,
MetadataM m,
HasServerConfigCtx m,
MonadIO m
MetadataM m
) =>
UntrackLogicalModel b ->
m EncJSON
runUntrackLogicalModel q = do
throwIfFeatureDisabled
-- we do not check for feature flag here as we always want users to be able
-- to remove logical models if they'd like
assertLogicalModelExists @b source fieldName
let metadataObj =