Closed dvodvo closed 7 months ago
Hi @dvodvo, Blazer isn't designed for this use case, so you'd need to fork it to do this.
It makes sense, upon reflection, that Blazer not handle this outright. For tenant-based analysis a controller action could easily access the data Ahoy saved, while chartkick
could render graphical representations.
Tag: question(s) Context: multitenant application Goal: offer queries based on active tenant_id
Thus a use of smart variables could work for the query as such
my understanding of the example of time ranges is that
blazer
will create a pulldown menu with the name values oftenants
table.Q1 - is this understanding correct? But that is not desired; a hard-wiring of the value is necessary.
note users can have multiple tenancies; the active tenant_id is derived from a tenant_user table
The rails application gets a clean_host from an application controller method - which would be the same used within the gem's routing choice:
Q2 - how can the derived tenant_id be handled in the query?