Question

Copy/Overwrite Dashboards and Looks between spaces

  • 29 January 2019
  • 5 replies
  • 939 views

Hi,

I’d like to have separate space for Production and Development of Dashboards and Looks. I found out that when I copy the same Dashboard and Look between spaces it doesn’t overwrite existing objects but create new one with appended “(Copy)” to the name.



Is there any way to overwrite existing objects and keep original link?



Thanks a lot.


5 replies

Userlevel 7
Badge

Yes, we use this tool:



We export the json of the dev dashboard and import that json to the prod dashboardid (and archive what we are overwriting). This means that we dont mess with browser bookmarks and schedules on that content ID.


We also have this running as a job in our scheduling tool (with the IDs of the content and comments parameterised) and lock down the permissions to the prod space, only the scheduler user has permissions to that space. It means that we have a nice history of change control and no accidents. The comments of the change are also inserted into the description of the dashboard.


edit: Forgot to mention, we are a little lazy and force people to use tiles rather than look linked tiles, this is due to ease as otherwise for each look linked tile in the dashboard you will need to do the same process to that look.

Thanks a lot. I will have a look into this 😃

I have a similar problem. I am modifying a copy of a “production” dashboard in my personal space. Now I would like to overwrite the production dashboard with the new changes I’ve done locally.


I managed to download a json of a dashboard from the “dev” and now would like to replace a “production” one with the json. When I use import it tells me that:


slug XXX already used for dashboard ABC in space Y

dashboard will be imported with new slug

And I am getting a new dashboard next to the “production” one…


What can I do to overwrite it?

Userlevel 7
Badge

Does the “new” dashboard have the same name/title? (can’t remember which one gazer uses to overwrite). Attributing a new slug for a query isn’t a problem as far as I am aware.

You must use --force for overwriting existing looks and dashboards.


https://github.com/looker-open-source/gzr#dashboard-import

Reply