Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FAB] configuring updating of permissions #4172

Merged

Conversation

john-bodley
Copy link
Member

@john-bodley john-bodley commented Jan 8, 2018

This PR leverages @mistercrunch's FAB change (which was released in 1.9.5) to optionally disable updating of Flask-AppBuilder (FAB) permissions which can create a lot of contention and race conditions in the perm-related tables when running multiple Gunicorn instances.

I toiled for a bit about how best to implement optionally enabling/disabling this feature (which really only needs to be enabled whilst running superset init). Sadly given that the Flask-AppBuilder is configured in a global context __init__.py which is defined before anything else It seems like there's two options to configure Flask-AppBuilder dynamically from within the CLI.:

  1. A configuration variable defined in config.py
  2. An environment variable

I opted for the later as this feature really is a switch which needs to change state during the initialization process (as described in installation.rst) and the the former would require a second configuration file simply to enable/disable the feature.

to: @mistercrunch
cc: @michellethomas

@michellethomas
Copy link
Contributor

lgtm

@john-bodley john-bodley force-pushed the john-bodley-optional-fab-update branch from 8a16a5b to 2f2480a Compare January 8, 2018 20:05
@mistercrunch mistercrunch merged commit d570120 into apache:master Jan 8, 2018
michellethomas pushed a commit to michellethomas/panoramix that referenced this pull request May 24, 2018
wenchma pushed a commit to wenchma/incubator-superset that referenced this pull request Nov 16, 2018
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.23.0 labels Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.23.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants