Bug #73249
API statistiques - TypeError: unhashable type: 'dict'
Début:
10 janvier 2023
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Non
Planning:
Non
Description
https://sentry.entrouvert.org/entrouvert/publik/issues/103348/
TypeError: unhashable type: 'dict' (3 additional frame(s) were not displayed) ... File "django/views/generic/base.py", line 71, in view return self.dispatch(request, *args, **kwargs) File "wcs/statistics/views.py", line 40, in dispatch return super().dispatch(*args, **kwargs) File "django/views/generic/base.py", line 97, in dispatch return handler(request, *args, **kwargs) File "wcs/statistics/views.py", line 296, in get x_labels, series = self.get_grouped_time_data(totals, group_labels) File "wcs/statistics/views.py", line 480, in get_grouped_time_data totals_by_group[group] += total[2]
Révisions associées
Revert "statistics: handle grouping by computed field (#73249)"
This reverts commit 218965e26524e7e97f01744045a3ef2b9aa691ff,
because it handles a case that should not happen.
Historique
Mis à jour par Robot Gitea il y a plus d'un an
- Statut changé de Nouveau à Solution proposée
Valentin Deniaud (vdeniaud) a ouvert une pull request sur Gitea concernant cette demande :
- URL : https://gitea.entrouvert.org/entrouvert/wcs/pulls/26
- Titre : statistics: handle grouping by computed field (#73249)
- Modifications : https://gitea.entrouvert.org/entrouvert/wcs/pulls/26/files
Mis à jour par Robot Gitea il y a plus d'un an
- Statut changé de Solution proposée à Solution validée
Frédéric Péters (fpeters) a approuvé une pull request sur Gitea concernant cette demande :
- URL : https://gitea.entrouvert.org/entrouvert/wcs/pulls/26
- Commentaire :
N/A
Mis à jour par Robot Gitea il y a plus d'un an
- Statut changé de Solution validée à Résolu (à déployer)
Valentin Deniaud (vdeniaud) a mergé une pull request sur Gitea concernant cette demande :
- URL : https://gitea.entrouvert.org/entrouvert/wcs/pulls/26
- Titre : statistics: handle grouping by computed field (#73249)
- Modifications : https://gitea.entrouvert.org/entrouvert/wcs/pulls/26/files
Mis à jour par Transition automatique il y a plus d'un an
- Statut changé de Résolu (à déployer) à Solution déployée
statistics: handle grouping by computed field (#73249)