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

chore(async): Making create app configurable #25346

Merged

Conversation

craig-rueda
Copy link
Member

SUMMARY

First of several PRs to revive Global Async Queries.

  • Makes AsyncQueryManager implementation configurable
  • Adds nginx container to local docker-compose in order to deal with local websocket connections
  • Dries up loading of class names to class instances
  • Adds optional kwargs to create_app() in order to facilitate integration test configs

@@ -0,0 +1,127 @@
#
Copy link
Member Author

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:
Copy link
Member Author

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(
Copy link
Member Author

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(
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Drying up

@craig-rueda craig-rueda merged commit 515452c into apache:master Sep 20, 2023
29 checks passed
@craig-rueda craig-rueda deleted the craig/making-create-app-configurable branch September 20, 2023 17:04
eschutho pushed a commit to Superset-Community-Partners/superset that referenced this pull request Sep 21, 2023
cccs-rc pushed a commit to CybercentreCanada/superset that referenced this pull request Mar 6, 2024
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 3.1.0 labels Mar 8, 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 size/L 🚢 3.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants