Description
Describe the bug
workbooks.update() stopped updating the description of a published workbook. Name, tags and other settings can still be updated. workbooks.publish() still adds description while creating a workbook and when using mode=TSC.Server.PublishMode.Overwrite on an existing workbook.
Versions
- Using Tableau Cloud with Python 3.11.9 and TSC 0.37 (also tested on TSC 0.34), REST API 3.25
To Reproduce
new_wb = TSC.WorkbookItem(name="Old Name", project_id=project_id, show_tabs=True)
new_wb.description = "old description"
wb = server.workbooks.publish(new_wb, file=path, skip_connection_check=True)
# or loading existing workbook
# wb = server.workbooks.get_by_id(id)
print(f"Name: {wb.name}, desc: {wb.description}")
# updating name and description
wb.description = "new description"
wb.name = "New name"
updated_wb = server.workbooks.update(wb)
print(f"Name: {updated_wb.name}, desc: {updated_wb.description}")
Results
Output
Name: Old name, desc: old description
Name: New name, desc: old description
Expected
Name: Old name, desc: old description
Name: New name, desc: new description
NOTE:
I habe also tried setattr(wb, 'description', 'new description')
, as well as using _description
instead of description
. The code has worked previously but stopped working two days ago. I have tested the code in an isolated script to make sure it wasn't a bug caused by surrounding code. In isolation the code still does not work.