Projet

Général

Profil

Bug #61178

TypeError: delete() missing 1 required positional argument: 'event_identifier'

Ajouté par Sentry Io il y a environ 2 ans. Mis à jour il y a environ 2 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Catégorie:
-
Version cible:
-
Début:
27 janvier 2022
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
Planning:
Non

Description

https://sentry.entrouvert.org/entrouvert/gplexpert/issues/54383/

TypeError: delete() missing 1 required positional argument: 'event_identifier'
(3 additional frame(s) were not displayed)
...
  File "django/views/decorators/csrf.py", line 54, in wrapped_view
    return view_func(*args, **kwargs)
  File "django/views/generic/base.py", line 71, in view
    return self.dispatch(request, *args, **kwargs)
  File "rest_framework/views.py", line 495, in dispatch
    response = self.handle_exception(exc)
  File "rest_framework/views.py", line 455, in handle_exception
    self.raise_uncaught_exception(exc)
  File "rest_framework/views.py", line 492, in dispatch
    response = handler(request, *args, **kwargs)

Fichiers

0001-api-fix-event-endpoints-61178.patch (3,35 ko) 0001-api-fix-event-endpoints-61178.patch Lauréline Guérin, 27 janvier 2022 16:56

Révisions associées

Révision 38e4b745 (diff)
Ajouté par Lauréline Guérin il y a environ 2 ans

api: fix event endpoints (#61178)

Historique

#1

Mis à jour par Lauréline Guérin il y a environ 2 ans

  • Projet changé de Suivi des traces à Chrono
#2

Mis à jour par Lauréline Guérin il y a environ 2 ans

2 urls, 1 vue:

    url(
        r'^agenda/(?P<agenda_identifier>[\w-]+)/event/$',
        views.events,
        name='api-event',
    ),
    url(
        r'^agenda/(?P<agenda_identifier>[\w-]+)/event/(?P<event_identifier>[\w:-]+)/$',
        views.events,
        name='api-event',
    ),
#3

Mis à jour par Lauréline Guérin il y a environ 2 ans

#4

Mis à jour par Nicolas Roche il y a environ 2 ans

  • Statut changé de Solution proposée à Solution validée

Ack, mais perso j'aurais ajouté le test dans test_delete_event .

#5

Mis à jour par Lauréline Guérin il y a environ 2 ans

  • Statut changé de Solution validée à Résolu (à déployer)
commit 38e4b745b08aa78c007aaf077e943a852cfd67f4
Author: Lauréline Guérin <zebuline@entrouvert.com>
Date:   Thu Jan 27 16:55:22 2022 +0100

    api: fix event endpoints (#61178)
#6

Mis à jour par Frédéric Péters il y a environ 2 ans

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

Mis à jour par Transition automatique il y a environ 2 ans

Automatic expiration

Formats disponibles : Atom PDF