Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Metabase
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Engineering Digital Service
Metabase
Commits
56ed43e1
Unverified
Commit
56ed43e1
authored
2 years ago
by
Alexander Polyankin
Committed by
GitHub
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Show caching controls only for questions (#23784)
parent
d7ca8c9f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
frontend/src/metabase/query_builder/components/view/sidebars/QuestionInfoSidebar.tsx
+5
-4
5 additions, 4 deletions
..._builder/components/view/sidebars/QuestionInfoSidebar.tsx
with
5 additions
and
4 deletions
frontend/src/metabase/query_builder/components/view/sidebars/QuestionInfoSidebar.tsx
+
5
−
4
View file @
56ed43e1
...
...
@@ -27,9 +27,10 @@ export const QuestionInfoSidebar = ({
const
description
=
question
.
description
();
const
isDataset
=
question
.
isDataset
();
const
isPersisted
=
isDataset
&&
question
.
isPersisted
();
const
showCaching
=
PLUGIN_CACHING
.
isEnabled
()
&&
MetabaseSettings
.
get
(
"
enable-query-caching
"
);
const
isCachingAvailable
=
!
isDataset
&&
PLUGIN_CACHING
.
isEnabled
()
&&
MetabaseSettings
.
get
(
"
enable-query-caching
"
);
const
handleSave
=
(
description
:
string
|
null
)
=>
{
if
(
question
.
description
()
!==
description
)
{
...
...
@@ -63,7 +64,7 @@ export const QuestionInfoSidebar = ({
</
ContentSection
>
)
}
{
s
how
Caching
&&
(
{
i
sCaching
Available
&&
(
<
ContentSection
extraPadding
>
<
PLUGIN_CACHING
.
QuestionCacheSection
question
=
{
question
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment