Adjusting tiered license levels slow to reflect update
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 35/100
- Tipo de issue
- Error
- Claridad
- Necesita aclaración
- Estado de actividad
- Tranquilo
- Stack tecnológico
- python
- Área
- api, backend-api-design
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Python
- Estrellas
- 716
- Forks
- 446
- Merge medio
- 8 d 8 h
- PR fusionados (30 d)
- 2
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de tableau/server-client-python
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
tableau/server-client-python#1865 ·
-
in-progress
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
tableau/server-client-python#1829 · 1 comentario ·
-
enhancement gap needs investigation
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
tableau/server-client-python#1322 · 1 comentario ·
-
[Type2] Allow Incremental Refresh type schedules to be added via `server.schedules.add_to_schedule` Abiertohelp wanted Server-Side Enhancement ui-exists
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
tableau/server-client-python#1101 · 3 comentarios ·
-
enhancement good first issue
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
tableau/server-client-python#783 · 5 comentarios ·
Todos los issues de tableau/server-client-python
Issues similares
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
stephrobert/dsoxlab#238 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
sublimehq/package_control#1780 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
nwg-piotr/nwg-displays#145 ·