Projet

Général

Profil

Bug #20262

Sur la page statistiques le filtre "Statuts à afficher" n'accepte pas "En attente de votre part"

Ajouté par Frédéric Péters il y a plus de 6 ans. Mis à jour il y a plus de 2 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Version cible:
-
Début:
24 novembre 2017
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
Planning:
Non

Description

Exception:
  type = '<type 'exceptions.KeyError'>', value = ''

Stack trace (most recent call first):
  File "/usr/lib/python2.7/dist-packages/wcs/workflows.py", line 374, in get_status
   372             if status.id == id:
   373                 return status
>  374         raise KeyError()
   375
   376     def get_backoffice_fields(self):

  locals:
     status = <wcs.workflows.WorkflowStatus object at 0x7f78a6fbdb10>
     self = <Workflow 'Enregistrement Demande Etat-civil(courrier,fax,guichet)' id:38>
     id = 'waiting'

  File "/usr/lib/python2.7/dist-packages/wcs/backoffice/management.py", line 1725, in stats
  1723             else:
  1724                 criteria_label = _('Status: %s') % self.formdef.workflow.get_status(
> 1725                         selected_filter).name
  1726                 applied_filters = ['wf-%s' % selected_filter]
  1727             criterias.append(Or([Equal('status', x) for x in applied_filters]))

La prise en compte de "waiting" doit manquer.


Fichiers

Révisions associées

Révision baf97ab3 (diff)
Ajouté par Frédéric Péters il y a plus de 2 ans

backoffice: allow filtering form stats on "waiting" status (#20262)

Révision ecd65f95 (diff)
Ajouté par Frédéric Péters il y a plus de 2 ans

tests: remove backoffice statistics tests moved to their own file (#20262)

Révision 731e5158 (diff)
Ajouté par Frédéric Péters il y a plus de 2 ans

tests: apply #20262 changes to moved tests (#20262)

Historique

#1

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

La prise en compte de "waiting" doit manquer.

En effet; notamment parce qu'il ne pouvait pas être géré en pickle. Voilà pour le gérer.

#2

Mis à jour par Benjamin Dauvergne il y a plus de 2 ans

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

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

  • Statut changé de Solution validée à Résolu (à déployer)
commit baf97ab3261c2dabf43eb52ef79f6b6390df1524
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Sun Oct 24 20:44:00 2021 +0200

    backoffice: allow filtering form stats on "waiting" status (#20262)
#4

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

  • Statut changé de Résolu (à déployer) à En cours

build pété là-dessus,

#5

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

  • Statut changé de En cours à Résolu (à déployer)

Voilà tests que j'avais déplacé/modifié et dans le rebase j'ai restauré la version d'origine dans le fichier d'origine,

commit ecd65f957c324673d4715d2d148ce393e3660583
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Fri Jan 28 15:05:32 2022 +0100

    tests: remove backoffice statistics tests moved to their own file (#20262)
#6

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

+ appliquer les modifications aux tests déplacés,

commit 731e515861c444720f0478b63f40a4ef44f1be23
Author: Frédéric Péters <fpeters@entrouvert.com>
Date:   Fri Jan 28 15:16:22 2022 +0100

    tests: apply #20262 changes to moved tests (#20262)
#7

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

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

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

Automatic expiration

Formats disponibles : Atom PDF