Skip to content

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

Merged
arikfr merged 1 commit into
getredash:masterfrom
jezdez:redash-extensions
Mar 4, 2018
Merged

Add a Redash extension system based on Python entrypoints.#2354
arikfr merged 1 commit into
getredash:masterfrom
jezdez:redash-extensions

Conversation

@jezdez

@jezdez jezdez commented Feb 28, 2018

Copy link
Copy Markdown
Contributor

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).

@bealdav bealdav left a comment

Copy link
Copy Markdown

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

arikfr commented Mar 4, 2018

Copy link
Copy Markdown
Member

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