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

Add a Redash extension system based on Python entrypoints. #2354

Merged
merged 1 commit into from
Mar 4, 2018

Conversation

jezdez
Copy link
Member

@jezdez jezdez commented Feb 28, 2018

This is along the lines of what Flask does for CLI plugins:

http://flask.pocoo.org/docs/0.12/cli/#cli-plugins

The API allows specifying Python callbacks that receive the
Redash Flask app as the only argument and allow extending
the Redash process with the usual Flask API as needed. This
does not cover front-end specific extensions (yet).

This is a backport from mozilla#348
that should make our lives at Mozilla easier and maybe lead to
a more extensible Redash code base.

A suggested path forward would be investigating additional
extension points for adding front-end components/pages and
query runners (e.g. the Cassandra query runner which slows
build time down a lot).

This is along the lines of what Flask does for CLI plugins:

  http://flask.pocoo.org/docs/0.12/cli/#cli-plugins

The API allows specifying Python callbacks that receive the
Redash Flask app as the only argument and allow extending
the Redash process with the usual Flask API as needed. This
does not cover front-end specific extensions (yet).
Copy link

@bealdav bealdav left a comment

Choose a reason for hiding this comment

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

No test, but nice feature

@arikfr arikfr merged commit 5aa4b28 into getredash:master Mar 4, 2018
@arikfr
Copy link
Member

arikfr commented Mar 4, 2018

Thanks!

@jezdez jezdez deleted the redash-extensions branch March 5, 2018 16:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants