Bug #20262
Sur la page statistiques le filtre "Statuts à afficher" n'accepte pas "En attente de votre part"
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
Historique
Mis à jour par Frédéric Péters il y a plus de 2 ans
- Fichier 0001-backoffice-allow-filtering-form-stats-on-waiting-sta.patch 0001-backoffice-allow-filtering-form-stats-on-waiting-sta.patch ajouté
- Statut changé de Nouveau à Solution proposée
- Assigné à mis à Frédéric Péters
- Patch proposed changé de Non à Oui
- Planning mis à Non
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.
Mis à jour par Benjamin Dauvergne il y a plus de 2 ans
- Statut changé de Solution proposée à Solution validée
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)
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,
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)
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)
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
backoffice: allow filtering form stats on "waiting" status (#20262)