Projet

Général

Profil

Bug #73249

API statistiques - TypeError: unhashable type: 'dict'

Ajouté par Sentry Io il y a plus d'un an. Mis à jour il y a plus d'un an.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Version cible:
-
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

Révision 218965e2 (diff)
Ajouté par Valentin Deniaud il y a plus d'un an

statistics: handle grouping by computed field (#73249)

Révision 4ce4167d (diff)
Ajouté par Valentin Deniaud il y a environ un an

Revert "statistics: handle grouping by computed field (#73249)"

This reverts commit 218965e26524e7e97f01744045a3ef2b9aa691ff,
because it handles a case that should not happen.

Historique

#1

Mis à jour par Frédéric Péters il y a plus d'un an

  • Projet changé de Suivi des traces à w.c.s.
#2

Mis à jour par Valentin Deniaud il y a plus d'un an

  • Assigné à mis à Valentin Deniaud
#3

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 :

#4

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 :

N/A

#5

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 :

#6

Mis à jour par Transition automatique il y a plus d'un an

  • Statut changé de Résolu (à déployer) à Solution déployée
#7

Mis à jour par Transition automatique il y a environ un an

Automatic expiration

Formats disponibles : Atom PDF