Skip to content
Snippets Groups Projects
Unverified Commit 937e30fb authored by Dennis Schridde's avatar Dennis Schridde Committed by GitHub
Browse files

Expose `attached-dwh` token feature flag to frontend (#43657)

This allows frontend code to conveniently check whether the feature
flag is enabled or disabled.  This is in addition to the raw flag's
presence (or absence) in `(:features token-status)`.

References: https://github.com/metabase/metabase/issues/42381
References: https://github.com/metabase/metabase/pull/43511
parent 8659846f
No related branches found
No related tags found
No related merge requests found
......@@ -8,6 +8,7 @@
(deftest properties-token-features-test
(mt/with-premium-features #{:advanced-permissions
:attached-dwh
:audit-app
:cache-granular-controls
:config-text-file
......@@ -32,6 +33,7 @@
:upload_management
:whitelabel}
(is (= {:advanced_permissions true
:attached_dwh true
:audit_app true
:cache_granular_controls true
:config_text_file true
......
......@@ -728,6 +728,7 @@ See [fonts](../configuring-metabase/fonts.md).")
:visibility :public
:setter :none
:getter (fn [] {:advanced_permissions (premium-features/enable-advanced-permissions?)
:attached_dwh (premium-features/has-attached-dwh?)
:audit_app (premium-features/enable-audit-app?)
:cache_granular_controls (premium-features/enable-cache-granular-controls?)
:config_text_file (premium-features/enable-config-text-file?)
......
......@@ -474,6 +474,10 @@
"Should we allow admins to clean up tables created from uploads?"
:upload-management)
(define-premium-feature has-attached-dwh?
"Does the Metabase Cloud instance have an internal data warehouse attached?"
:attached-dwh)
(defsetting is-hosted?
"Is the Metabase instance running in the cloud?"
:type :boolean
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment