Skip to content

Support query variable in share dashboard url [enhancement] #1796

@LilyBlooper

Description

@LilyBlooper

In real scenarios , the system which davinci share dashboard was embedded to usually has individual RBAC-based auth model . So we embed share dashboard only using query variables。

now (dev-0.3) , one can only apply a dynamic query param using "global control " in dashboard .
We usually need the query params interchangable with query variable.

image

In query variable configuration during view settings . A query variable could be chosen as string with multiple default values , while in url param , the value cound only be “single” 。

For example :
This is a mock project 。The project has multiple menus , each menus was authorized to certain roles . The role and auth mode was provided in the project itself 。 So Davinci's organization and role model will not be used .
image

image

Here we need to pass the query param with multiple values 。
One menu will link http://davinci3/share.html#shareInfo=aaaaaaa&type=dashboard&var_domain_in=foo,bar,baz
Other menu will link
http://davinci3/share.html#shareInfo=aaaaaaa&type=dashboard&var_domain_in=another,yetanother

we expect the params will overwrite the default values set in view .
This enhancement will really useful in many cases 。

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions