8000 Workbook Publish - Hidden Views Not In... · Issue #838 · tableau/server-client-python · GitHub
[go: up one dir, main page]

Skip to content

Workbook Publish - Hidden Views Not In... #838

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

Open
bryceglarsen opened this issue Apr 28, 2021 · 5 comments
Open

Workbook Publish - Hidden Views Not In... #838

bryceglarsen opened this issue Apr 28, 2021 · 5 comments

Comments

@bryceglarsen
Copy link

#614 added the ability to hide views when publishing. However, when trying to publish a workbook that is already on the server, we're only aware of the name of the views that are not hidden.

It would be ideal if we could do the inverse of hidden_views, such as published_views or hidden_views not in [...]. Only way I can think to do this currently is publish in a staging environment to compare the list of views or parse the xml itself.

Any feedback is appreciated.

@bryceglarsen
Copy link
Author

Update: able to supplement this with Tableau Document API to get full list of views/sheets and generate list of hidden_views.

@jorwoods
Copy link
Contributor
jorwoods commented Apr 1, 2024

I found a workaround. You can query the metadata API for the already published workbook luid and ask what views do not have a path value. Those would be hidden.

query hidden_views($luid: String) {
  workbooks(filter:{luid:$luid}){
    views(filter:{path:""}) {
      name
    }
  }
}

@bryceglarsen
Copy link
Author

@jorwoods We need a way to integrate our thread from slack 😆

This is good for things that already exist on the server, but think adding include_views would have to work by leveraging Document API under the hood.

@jorwoods
Copy link
Contributor
jorwoods commented Apr 5, 2024

Oh, are you looking to get the sheets that aren't hidden by being parts of dashboards or a viz in tooltip?

@bryceglarsen
Copy link
Author

Originally posted this as desire to have an inverse of hidden_views. So if you always know you're publishing two tabs of "Summary" and "Details" but may occasionally work on an ad-hoc analysis on a new sheet you don't have to worry about updating the list of hidden views.

This is similar to how we're doing it with some pre-processing of the XML, but would be nice to add to TSC directly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants
0