[PYTHON] Use MULTI_ORG function with re: dash
Overview
re: dash has a MULTI_ORG function that handles multiple organizations in one application. As of April 2017, I couldn't find any documentation about this feature, so it's a memorandum.
environment
- Re:dash 0.12.0(Self hosted)
When do you use it?
- For example, it is useful when you are providing a B2B application and want to provide usage statistics of that application for each customer.
- You can control the dashboard / query seen by each customer by separating the organization
How to use
- Basically, just set the environment variable $ REDASH_MULTI_ORG to
true
(default is false
)
- When MULTI_ORG is enabled, all paths will be plugged with organizations slugs
- For example, if you create an organization where slug is ʻexample
, the login URL of example will be
{domain} / example / login, and the top page will be
{domain} / example`.
important point
- It is good that query and dashboard are required for each organization, but group and data_source are also required for each organization, so if you want to separate organizations but have only one data source, management becomes complicated.
- I have prepared a script to generate an organization, and I put the process of duplicating datasource and group from the template in it, but it is unknown whether it is this usage.