mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-09-20 15:09:02 +03:00
Limits when runMetadataQuery
bumps the resource version
GitOrigin-RevId: ce5bf96572e4b4325e1e1f26350ac10e6c90abc3
This commit is contained in:
parent
65097131ff
commit
1001e16060
@ -316,19 +316,24 @@ queryModifiesMetadata :: RQLMetadataRequest -> Bool
|
||||
queryModifiesMetadata = \case
|
||||
RMV1 q ->
|
||||
case q of
|
||||
RMGetCatalogState _ -> False
|
||||
RMExportMetadata _ -> False
|
||||
RMGetEventInvocations _ -> False
|
||||
RMGetScheduledEvents _ -> False
|
||||
|
||||
RMCreateScheduledEvent _ -> False
|
||||
RMDeleteScheduledEvent _ -> False
|
||||
RMBulk qs -> any queryModifiesMetadata qs
|
||||
_ -> True
|
||||
RMPgRedeliverEvent _ -> False
|
||||
RMPgInvokeEventTrigger _ -> False
|
||||
RMGetInconsistentMetadata _ -> False
|
||||
RMIntrospectRemoteSchema _ -> False
|
||||
RMDumpInternalState _ -> False
|
||||
RMSetCatalogState _ -> False
|
||||
RMGetCatalogState _ -> False
|
||||
RMExportMetadata _ -> False
|
||||
RMGetEventInvocations _ -> False
|
||||
RMGetScheduledEvents _ -> False
|
||||
RMCreateScheduledEvent _ -> False
|
||||
RMDeleteScheduledEvent _ -> False
|
||||
RMBulk qs -> any queryModifiesMetadata qs
|
||||
_ -> True
|
||||
RMV2 q ->
|
||||
case q of
|
||||
RMV2ExportMetadata _ -> False
|
||||
RMV2ReplaceMetadata _ -> True
|
||||
RMV2ExportMetadata _ -> False
|
||||
_ -> True
|
||||
|
||||
runMetadataQueryM
|
||||
:: ( HasVersion
|
||||
|
Loading…
Reference in New Issue
Block a user