-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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
chore(async): Making create app configurable #25346
chore(async): Making create app configurable #25346
Conversation
@@ -0,0 +1,127 @@ | |||
# |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added this config for local testing
@@ -25,12 +26,14 @@ | |||
logger = logging.getLogger(__name__) | |||
|
|||
|
|||
def create_app() -> Flask: | |||
def create_app(superset_config_module: Optional[str] = None) -> Flask: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding optional override module for test configs
) | ||
|
||
self._ssh_manager = ssh_manager_class(app) | ||
self._ssh_manager = load_class_from_name( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Drying this up
) | ||
|
||
self._auth_provider = auth_provider_class(app.config["WEBDRIVER_AUTH_FUNC"]) | ||
self._auth_provider = load_class_from_name( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Drying up
SUMMARY
First of several PRs to revive Global Async Queries.
create_app()
in order to facilitate integration test configs