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) => {