Skip to content
Snippets Groups Projects
Unverified Commit 9ef41611 authored by Alexander Polyankin's avatar Alexander Polyankin Committed by GitHub
Browse files

Fix question and dashboard cache settings (#27831)

parent f4536709
Branches
Tags
No related merge requests found
import {
restore,
describeEE,
mockSessionProperty,
popover,
visitDashboard,
rightSidebar,
......@@ -10,8 +9,8 @@ import {
describeEE("scenarios > dashboard > caching", () => {
beforeEach(() => {
restore();
mockSessionProperty("enable-query-caching", true);
cy.signInAsAdmin();
cy.request("PUT", "/api/setting/enable-query-caching", { value: true });
});
it("can set cache ttl for a saved question", () => {
......
import {
restore,
describeEE,
mockSessionProperty,
visitQuestion,
questionInfoButton,
rightSidebar,
......@@ -11,8 +10,8 @@ import {
describeEE("scenarios > question > caching", () => {
beforeEach(() => {
restore();
mockSessionProperty("enable-query-caching", true);
cy.signInAsAdmin();
cy.request("PUT", "/api/setting/enable-query-caching", { value: true });
});
it("can set cache ttl for a saved question", () => {
......
......@@ -223,9 +223,9 @@
(defsetting enable-query-caching
(deferred-tru "Enabling caching will save the results of queries that take a long time to run.")
:type :boolean
:default false
:visibility :settings-manager)
:type :boolean
:default false
:visibility :authenticated)
(defsetting persisted-models-enabled
(deferred-tru "Allow persisting models into the source database.")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment