mirror of
https://github.com/valitydev/redash.git
synced 2024-11-07 09:28:51 +00:00
UI for the feature flag of the share edit permissions feature (#3077)
* Remove unused settings. * Add: UI feature flag for sharing permissions * Revise feature flag message
This commit is contained in:
parent
9e745ef648
commit
68ada7b590
@ -10,6 +10,15 @@
|
||||
<option ng-repeat="date_format in $ctrl.dateFormatList" value="{{date_format}}">{{date_format}}</option>
|
||||
</select>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<h4>Feature Flags</h4>
|
||||
|
||||
<label>
|
||||
<input name="input" type="checkbox" ng-model="$ctrl.settings.feature_show_permissions_control" ng-change="$ctrl.update('feature_show_permissions_control')"
|
||||
accesskey="tab"> Enable experimental multiple owners support
|
||||
</label>
|
||||
</p>
|
||||
<hr>
|
||||
<h3>Authentication</h3>
|
||||
<p>
|
||||
@ -74,4 +83,4 @@
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</settings-screen>
|
||||
</settings-screen>
|
||||
|
@ -175,7 +175,7 @@ def client_config():
|
||||
|
||||
defaults = {
|
||||
'allowScriptsInUserInput': settings.ALLOW_SCRIPTS_IN_USER_INPUT,
|
||||
'showPermissionsControl': settings.FEATURE_SHOW_PERMISSIONS_CONTROL,
|
||||
'showPermissionsControl': current_org.get_setting("feature_show_permissions_control"),
|
||||
'allowCustomJSVisualizations': settings.FEATURE_ALLOW_CUSTOM_JS_VISUALIZATIONS,
|
||||
'autoPublishNamedQueries': settings.FEATURE_AUTO_PUBLISH_NAMED_QUERIES,
|
||||
'mailSettingsMissing': settings.MAIL_DEFAULT_SENDER is None,
|
||||
|
@ -2,6 +2,7 @@ import os
|
||||
from funcy import distinct, remove
|
||||
|
||||
from .helpers import fix_assets_path, array_from_string, parse_boolean, int_or_none, set_from_string
|
||||
from .organization import DATE_FORMAT
|
||||
|
||||
|
||||
def all_settings():
|
||||
@ -219,7 +220,6 @@ SENTRY_DSN = os.environ.get("REDASH_SENTRY_DSN", "")
|
||||
|
||||
# Client side toggles:
|
||||
ALLOW_SCRIPTS_IN_USER_INPUT = parse_boolean(os.environ.get("REDASH_ALLOW_SCRIPTS_IN_USER_INPUT", "false"))
|
||||
DATE_FORMAT = os.environ.get("REDASH_DATE_FORMAT", "DD/MM/YY")
|
||||
DASHBOARD_REFRESH_INTERVALS = map(int, array_from_string(os.environ.get("REDASH_DASHBOARD_REFRESH_INTERVALS", "60,300,600,1800,3600,43200,86400")))
|
||||
QUERY_REFRESH_INTERVALS = map(int, array_from_string(os.environ.get("REDASH_QUERY_REFRESH_INTERVALS", "60, 300, 600, 900, 1800, 3600, 7200, 10800, 14400, 18000, 21600, 25200, 28800, 32400, 36000, 39600, 43200, 86400, 604800, 1209600, 2592000")))
|
||||
PAGE_SIZE = int(os.environ.get('REDASH_PAGE_SIZE', 20))
|
||||
@ -229,9 +229,7 @@ PAGE_SIZE_OPTIONS = map(int, array_from_string(os.environ.get("REDASH_PAGE_SIZE_
|
||||
VERSION_CHECK = parse_boolean(os.environ.get("REDASH_VERSION_CHECK", "true"))
|
||||
FEATURE_DISABLE_REFRESH_QUERIES = parse_boolean(os.environ.get("REDASH_FEATURE_DISABLE_REFRESH_QUERIES", "false"))
|
||||
FEATURE_SHOW_QUERY_RESULTS_COUNT = parse_boolean(os.environ.get("REDASH_FEATURE_SHOW_QUERY_RESULTS_COUNT", "true"))
|
||||
FEATURE_SHOW_PERMISSIONS_CONTROL = parse_boolean(os.environ.get("REDASH_FEATURE_SHOW_PERMISSIONS_CONTROL", "false"))
|
||||
FEATURE_ALLOW_CUSTOM_JS_VISUALIZATIONS = parse_boolean(os.environ.get("REDASH_FEATURE_ALLOW_CUSTOM_JS_VISUALIZATIONS", "false"))
|
||||
FEATURE_DUMB_RECENTS = parse_boolean(os.environ.get("REDASH_FEATURE_DUMB_RECENTS", "false"))
|
||||
FEATURE_AUTO_PUBLISH_NAMED_QUERIES = parse_boolean(os.environ.get("REDASH_FEATURE_AUTO_PUBLISH_NAMED_QUERIES", "true"))
|
||||
|
||||
# BigQuery
|
||||
|
@ -26,6 +26,8 @@ JWT_AUTH_ALGORITHMS = os.environ.get("REDASH_JWT_AUTH_ALGORITHMS", "HS256,RS256,
|
||||
JWT_AUTH_COOKIE_NAME = os.environ.get("REDASH_JWT_AUTH_COOKIE_NAME", "")
|
||||
JWT_AUTH_HEADER_NAME = os.environ.get("REDASH_JWT_AUTH_HEADER_NAME", "")
|
||||
|
||||
FEATURE_SHOW_PERMISSIONS_CONTROL = parse_boolean(os.environ.get("REDASH_FEATURE_SHOW_PERMISSIONS_CONTROL", "false"))
|
||||
|
||||
settings = {
|
||||
"auth_password_login_enabled": PASSWORD_LOGIN_ENABLED,
|
||||
"auth_saml_enabled": SAML_LOGIN_ENABLED,
|
||||
@ -40,4 +42,5 @@ settings = {
|
||||
"auth_jwt_auth_algorithms": JWT_AUTH_ALGORITHMS,
|
||||
"auth_jwt_auth_cookie_name": JWT_AUTH_COOKIE_NAME,
|
||||
"auth_jwt_auth_header_name": JWT_AUTH_HEADER_NAME,
|
||||
"feature_show_permissions_control": FEATURE_SHOW_PERMISSIONS_CONTROL,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user