Project

General

Profile

Bug #90934

stats: set_group_by_parameters appelé avec formdefs vide (IndexError: list index out of range)

Added by Sentry Io 26 days ago. Updated 21 days ago.

Status:
Solution déployée
Priority:
Normal
Target version:
-
Start date:
22 May 2024
Due date:
% Done:

0%

Estimated time:
Patch proposed:
No
Planning:
No

Description

https://sentry.entrouvert.org/entrouvert/publik/issues/126408/

IndexError: list index out of range
(2 additional frame(s) were not displayed)
...
  File "django/views/generic/base.py", line 70, in view
    return self.dispatch(request, *args, **kwargs)
  File "wcs/statistics/views.py", line 42, in dispatch
    return super().dispatch(*args, **kwargs)
  File "django/views/generic/base.py", line 98, in dispatch
    return handler(request, *args, **kwargs)
  File "wcs/statistics/views.py", line 250, in get
    self.set_group_by_parameters(group_by, formdefs, totals_kwargs, group_labels)
  File "wcs/statistics/views.py", line 564, in set_group_by_parameters
    totals_kwargs['group_by'] = "statistics_data->'%s'" % formdefs[0].group_by_field.varname

Associated revisions

Revision dea8be22 (diff)
Added by Valentin Deniaud 21 days ago

statistics: avoid crash on group by field without form (#90934)

History

#1

Updated by Lauréline Guérin 26 days ago

  • Project changed from Suivi des traces to w.c.s.
#2

Updated by Valentin Deniaud 25 days ago

  • Assignee set to Valentin Deniaud
#3

Updated by Robot Gitea 25 days ago

  • Status changed from Nouveau to En cours

Valentin Deniaud (vdeniaud) a ouvert une pull request sur Gitea concernant cette demande :

#4

Updated by Robot Gitea 25 days ago

  • Status changed from En cours to Solution proposée
#5

Updated by Robot Gitea 25 days ago

  • Status changed from Solution proposée to Solution validée

Paul Marillonnet (pmarillonnet) a approuvé une pull request sur Gitea concernant cette demande :

#6

Updated by Robot Gitea 21 days ago

  • Status changed from Solution validée to Résolu (à déployer)

Valentin Deniaud (vdeniaud) a mergé une pull request sur Gitea concernant cette demande :

#7

Updated by Transition automatique 21 days ago

  • Status changed from Résolu (à déployer) to Solution déployée

Also available in: Atom PDF