-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
share specific dashboard views without sharing your token #5164
Comments
we have been looking into working around this: individual widgets can be shown in their own iframe, BUT
another option is to create some fake account with just view permissions, but then anyone who we share this token with can modify the dashboard view. if there was a read only setting it would be helpful |
another workaround i have been using: this is for Dashboard.php, in the first line of public function getDefaultLayout() 65,69c65 ... i modified the php to look for a parameter specifying where the json string describing the default layout is this file has to be on the same server, but then you can dynamically specify the default layout for widgets on a dashboard this solution breaks down: |
Thanks for the feature suggestion we appreciate your feedback. |
A user asked me for this feature at the meet up as well. It makes completely sense and it would be great to be able to generate a link to share a dashboard layout as well as the widget and params it includes with someone else. It would not share any data but only the structure of the dashboard. Maybe we can work on this short / mid term |
@tsteur moved this |
a little more detail on my hack solution //this loads a dashboard layout from a given path (we put this on the same web accessable server) //this prints out the current dashboard layout to the console //if you are anonymous, and a dashboard layout is specified, it overrides your current layout change this:
} to this: (remove check for if you have a session layout) the summary of the workflow is:
|
The URL could maybe get too long when including the whole layout? Any experience with this? Ideally, we would allow to share dashboards between Piwik instances which requires to either export the whole dashboard layout as in previous example or we need another service where dashboard layouts are sent to. Another solution could be when to generate a long token and store the layout together with the token in the database. Under this token which would be valid for 1hour or 1 day or 1 week or 1 month or whatever any anonymous user could then export the token from this instance and import to another by copy/pasting the link of the other instance. Does not really feel like an ideal solution though. In the beginning it would be enough to share layouts between the same instance. One problem is for instance when dashboard layout structure changes in a later version we cannot share between this and older Piwik versions etc. |
on my hack method, the layout is stored on the filesystem and the url just points to it, so there isn't a worry about url length it would be nice to be able to share views between installations, but like you say versioning sounds pretty difficult to do. sharing layouts in just the same instances is more than enough for us. thanks for thinking about this |
Covered in #6964 |
if anonymous users are able to view my site information, i should be able to share a specific dashboard view without sharing my token.
as it looks now, it isn't possible to share a dashboard view without giving a user the ability to modify it.
perhaps make the widget layout loadable by url parameters?
The text was updated successfully, but these errors were encountered: