Skip to content

Commit f8460e3

Browse files
dpgasparmichael_hoffman
authored and
michael_hoffman
committed
chore: remove PUBLIC_ROLE_LIKE_GAMMA deprecated config key (apache#19274)
1 parent 05a2694 commit f8460e3

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed

UPDATING.md

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ assists people when migrating to a new version.
2929

3030
### Breaking Changes
3131

32+
- [19274](https://github.com/apache/superset/pull/19274): The `PUBLIC_ROLE_LIKE_GAMMA` config key has been removed, set `PUBLIC_ROLE_LIKE` = "Gamma" to have the same functionality.
3233
- [19273](https://github.com/apache/superset/pull/19273): The `SUPERSET_CELERY_WORKERS` and `SUPERSET_WORKERS` config keys has been removed. Configure celery directly using `CELERY_CONFIG` on Superset
3334
- [19231](https://github.com/apache/superset/pull/19231): The `ENABLE_REACT_CRUD_VIEWS` feature flag has been removed (permanently enabled). Any deployments which had set this flag to false will need to verify that the React views support their use case.
3435
- [17556](https://github.com/apache/superset/pull/17556): Bumps mysqlclient from v1 to v2

superset/security/manager.py

-6
Original file line numberDiff line numberDiff line change
@@ -726,12 +726,6 @@ def sync_role_definitions(self) -> None:
726726
self.auth_role_public,
727727
merge=True,
728728
)
729-
if current_app.config.get("PUBLIC_ROLE_LIKE_GAMMA", False):
730-
logger.warning(
731-
"The config `PUBLIC_ROLE_LIKE_GAMMA` is deprecated and will be removed "
732-
"in Superset 1.0. Please use `PUBLIC_ROLE_LIKE` instead."
733-
)
734-
self.copy_role("Gamma", self.auth_role_public, merge=True)
735729

736730
self.create_missing_perms()
737731

superset/views/core.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2792,7 +2792,7 @@ def show_traceback(self) -> FlaskResponse: # pylint: disable=no-self-use
27922792
def welcome(self) -> FlaskResponse:
27932793
"""Personalized welcome page"""
27942794
if not g.user or not g.user.get_id():
2795-
if conf.get("PUBLIC_ROLE_LIKE_GAMMA", False) or conf["PUBLIC_ROLE_LIKE"]:
2795+
if conf["PUBLIC_ROLE_LIKE"]:
27962796
return self.render_template("superset/public_welcome.html")
27972797
return redirect(appbuilder.get_url_for_login)
27982798

0 commit comments

Comments
 (0)