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:
Anon Ray 2023-04-19 16:42:07 +05:30 committed by hasura-bot
parent 26e03a07bb
commit 055cf11134
2 changed files with 2 additions and 0 deletions

View File

@ -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)

View File

@ -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 [] $