Type error when getting a dashboard
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 45/100
Piste de recherche
Commencez par reproduire dashboards_api.get_dashboard(dashboard.get("id")) avec un dashboard dont la valeur x de la disposition du widget est un float. Suivez la validation de la réponse du dashboard v1 pour received_data.widgets[15].layout.x et vérifiez que la récupération réussit tout en préservant la valeur float.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Describe the bug
When trying to retrieve a dashboard by using the call dashboards_api.get_dashboard(dashboard.get("id")), I get an error saying datadog_api_client.v1.exceptions.ApiTypeError: Invalid type for variable 'x'. Required value type is int and passed type was float at ['received_data']['widgets'][15]['layout']['x']
To Reproduce
Steps to reproduce the behavior:
- Have a dashboard that has and X value that is a float and not an int
- Call get_dashboard for said dashboard
- See error
Expected behavior
The dashboard is returned with the float value for X
Environment and Versions (please complete the following information):
- Windows 10
- Python 3.10
- api client v1
- Langage dominant
- Python
- Étoiles
- 166
- Forks
- 55
- Merge moyen
- 2 j 17 h
- PR mergées (30 j)
- 73
Guide de contribution
Ouvrir le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de DataDog/datadog-api-client-python
-
stale
Difficulté 1/5 1-3 heures Accessibilité débutants 72/100
DataDog/datadog-api-client-python#3535 · 1 commentaire ·
-
kind/bug stale
Difficulté 3/5 1-2 jours Accessibilité débutants 66/100
DataDog/datadog-api-client-python#3717 · 3 commentaires ·
-
kind/bug stale
Difficulté 3/5 1-2 jours Accessibilité débutants 75/100
DataDog/datadog-api-client-python#3656 · 1 commentaire ·
-
kind/bug stale
Difficulté 3/5 1-2 jours Accessibilité débutants 38/100
DataDog/datadog-api-client-python#3120 · 1 commentaire ·
-
stale
Difficulté 3/5 1-2 jours Accessibilité débutants 45/100
DataDog/datadog-api-client-python#2986 · 1 commentaire ·
Toutes les issues de DataDog/datadog-api-client-python
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
anthropics/skills#1811 · 1 commentaire ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
speaches-ai/speaches#678 ·
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
datalayer/mcp-compose#42 ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
conda-forge/spacy-feedstock#177 ·
-
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
UKGovernmentBEIS/inspect_evals#2523 ·