-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Description
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.
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 .
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 。