Forum Discussion
OleksiiDemianyk
03-21-2023Sisense Employee
There are three types of the dashboard's instances in Sisense:
- owner - this instance is developed by the dashboard's owner. Only the dashboard's owner has access to this instance.
- proxy - this is the shared state of the dashboard. If a user has access to the dashboard but do not have an own instance of the dashboard (see the next point), then the user's instance will be created from the proxy instance.
- user - this is the user's version of the dashboard. All the filters' changes will be saved in this instance.
When owner republishes a dashboard (using action in UI), then Sisense updates the proxy instance of the republished dashboard and removes all the users' instances. As a result, users lose their filters.
You can share your dashboard using REST API. This solution will require two steps:
- Updating a dashboard with the new shares list using PATCH request at `/api/v1/dashboards/${dashboard_id}`
- Republishing a dashboard with POST request at `/api/v1/dashboards/${dashboardId}/publish?force=false` (a query parameter [force] prevents removing the users' instances)
Sample of code and detail explanation can be found here.