mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-14 17:02:49 +03:00
server/pro: remote schema queries should not be cached when forward client headers are set
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8806 GitOrigin-RevId: e2b5aa012146cf3cf1bc361d986c0619e9f78d26
This commit is contained in:
parent
26e03a07bb
commit
055cf11134
@ -576,6 +576,7 @@ runGQ env sqlGenCtx sc scVer enableAL readOnlyMode prometheusMetrics logger agen
|
||||
OMap.elems queryPlans >>= \case
|
||||
E.ExecStepDB _headers _dbAST remoteJoins -> do
|
||||
maybe [] (map RJ._rsjRemoteSchema . RJ.getRemoteSchemaJoins) remoteJoins
|
||||
E.ExecStepRemote remoteSchemaInfo _ _ _ -> [remoteSchemaInfo]
|
||||
_ -> []
|
||||
getExecStepActionWithActionInfo acc execStep = case execStep of
|
||||
EB.ExecStepAction _ actionInfo _remoteJoins -> (actionInfo : acc)
|
||||
|
@ -495,6 +495,7 @@ onStart enabledLogTypes agentLicenseKey serverEnv wsConn shouldCaptureVariables
|
||||
OMap.elems queryPlan >>= \case
|
||||
E.ExecStepDB _remoteHeaders _ remoteJoins ->
|
||||
maybe [] (map RJ._rsjRemoteSchema . RJ.getRemoteSchemaJoins) remoteJoins
|
||||
E.ExecStepRemote remoteSchemaInfo _ _ _ -> [remoteSchemaInfo]
|
||||
_ -> []
|
||||
actionsInfo =
|
||||
foldl getExecStepActionWithActionInfo [] $
|
||||
|
Loading…
Reference in New Issue
Block a user