tableau / server-client-python

A Python library for the Tableau Server REST API
https://tableau.github.io/server-client-python/
MIT License
662 stars 421 forks source link

How to see hidden views in a published workbook? #953

Open jacalata opened 3 years ago

jacalata commented 3 years ago

I have used the new hidden_views in the publish. What we do is migrate from our UAT server to our Prod server. The developer publishes to UAT for testing and hides not-for-display views. What I have a problem with is that I don't know how to get a complete list of views from the UAT workbook because the request only returns unhidden views. I end up doing two publishes. The first publishes the workbook without hidden views and exposes all available views in Prod. I then get a list of all the views from UAT and compare. I then publish to Prod with the minus of the views comparison as hidden_views.

Is there a better way?

_Originally posted by @mafleming97045 in https://github.com/tableau/server-client-python/pull/617#discussion_r477370118_

barscm commented 2 years ago

Apologies for the 'me too', but we do the same; the issue is that there are two ways to hide the Views: You can either set it up on the workbook, and therefore it's in the XML and can be examined easily, or you can specify the list while publishing - when you do it that way it's not stored in the XML so you need the double publish. To get this functionality you'd need to either change Desktop, so it modified the XML before publishing, or modify the Server API to make a query available... I don't think a client change will address it - but the functionality would be very welcome as it's a problem I've seen in a few places.