Adjusting tiered license levels slow to reflect update
還沒有人認領這個 Issue。
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 35/100
- Issue 類型
- 缺陷
- 描述清晰度
- 需要釐清
- 活躍度
- 冷清
- 技術堆疊
- python
研究方向
No repository file or test is named. Start with the supplied reproduction around server.sites.update(site) and server.sites.get_by_id(site.id), then investigate how tier_creator_capacity updates are handled through the Tableau Server REST API. Done should mean determining whether the client can reliably handle the delayed, inconsistent responses and covering the resulting behavior.
由索引模型根據 Issue 內容生成。
描述
Describe the bug
When making an adjustment to a tiered license level on a site, trying to add the user for that tier too soon after can fail. Even if the server responds to one query with the correct number, the next query can return the old number. Unclear how long it takes for this setting to propagate.
Versions
Details of your environment, including:
- Tableau Server version (or note if using Tableau Online) 2022.1.1 (20221.22.0415.1144)
- Python version 3.8.10
- TSC library version 0.22
To Reproduce
Steps to reproduce the behavior. Please include a code snippet where possible.
import itertools as it
import time
import tableauserverclient as TSC
# sign in to server as server admin
site = server.sites.get_by_id(server.site_id)
existing_limit = site.tier_creator_capacity
expected_limit = existing_limit + 1
site.tier_creator_capacity = expected_limit
site = server.sites.update(site)
results = [existing_limit] * 3
for i in it.count(1):
print(f"{i=}; {results=}; {expected_limit=}")
time.sleep(1)
site = server.sites.get_by_id(site.id)
results[i%3] = site.tier_creator_capacity
if all(r == expected_limit for r in results):
break
print(f"Got a matching result after {i} attempts.")
Results
What are the results or error messages received? Can end up taking anywhere between 10 seconds and 3 minutes before a consistent response is returned from the API about the tiered license capacity.
NOTE: Be careful not to post user names, passwords, auth tokens or any other private or sensitive information.
- 主要語言
- Python
- 星號
- 716
- 分支
- 446
- 平均合併
- 8 天 8 小時
- 30 天內合併 PR
- 2
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
tableau/server-client-python 的其他 Issue
-
難度 2/5 1-3 小時 新手友好度 70/100
tableau/server-client-python#1865 ·
-
in-progress
難度 2/5 1-3 小時 新手友好度 78/100
tableau/server-client-python#1829 · 1 則留言 ·
-
enhancement gap needs investigation
難度 2/5 1-3 小時 新手友好度 68/100
tableau/server-client-python#1322 · 1 則留言 ·
-
[Type2] Allow Incremental Refresh type schedules to be added via `server.schedules.add_to_schedule` 未關閉help wanted Server-Side Enhancement ui-exists
難度 2/5 1-3 小時 新手友好度 68/100
tableau/server-client-python#1101 · 3 則留言 ·
-
enhancement good first issue
難度 2/5 1-3 小時 新手友好度 68/100
tableau/server-client-python#783 · 5 則留言 ·
查看 tableau/server-client-python 的全部 Issue
相似的 Issue
-
bug
難度 2/5 1-3 小時 新手友好度 75/100
stephrobert/dsoxlab#238 ·
-
難度 2/5 1-3 小時 新手友好度 75/100
-
難度 2/5 1-3 小時 新手友好度 75/100
sublimehq/package_control#1780 ·
-
難度 2/5 1-3 小時 新手友好度 65/100
-
難度 2/5 1-3 小時 新手友好度 70/100
nwg-piotr/nwg-displays#145 ·