From 698aa6bfcd9124697de361e4237dc219669c97a8 Mon Sep 17 00:00:00 2001 From: akshaykumar2505 Date: Mon, 14 Sep 2026 16:45:21 +0530 Subject: [PATCH] fix(actions): stop sending Cube 1.7-removed renewQuery Explore fetch_dataset stamped renewQuery:true, which Tesseract rejects. Use cache must-revalidate instead. Co-authored-by: Cursor --- services/actions/src/rpc/fetchDataset.js | 4 ++-- services/actions/src/utils/cubejsApi.js | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/services/actions/src/rpc/fetchDataset.js b/services/actions/src/rpc/fetchDataset.js index b725d4f5..581e4c41 100644 --- a/services/actions/src/rpc/fetchDataset.js +++ b/services/actions/src/rpc/fetchDataset.js @@ -19,7 +19,7 @@ export const fetchData = async (exploration, args, authToken) => { const { userId, - renewQuery = true, + cache = "must-revalidate", validateMeta = true, format = "json", limit, @@ -54,7 +54,7 @@ export const fetchData = async (exploration, args, authToken) => { } const cubeData = await cubejs.query(updatedPlaygroundState, format, { - renewQuery, + cache }); return { diff --git a/services/actions/src/utils/cubejsApi.js b/services/actions/src/utils/cubejsApi.js index ecbbb6a7..1da2f521 100644 --- a/services/actions/src/utils/cubejsApi.js +++ b/services/actions/src/utils/cubejsApi.js @@ -223,8 +223,9 @@ const cubejsApi = ({ dataSourceId, branchId, userId, authToken }) => { const normalizedQuery = normalizeQuery(playgroundState); const { query } = normalizedQuery; - const { renewQuery } = args; - query.renewQuery = renewQuery; + // Cube 1.7 removed renewQuery. must-revalidate is the old renewQuery:true. + query.cache = args.cache ?? "must-revalidate"; + delete query.renewQuery; const options = { progressCallback: (obProgress) => {