Bug #59898
glisser·déposer d'actions, IndexError: list index out of range
Début:
20 décembre 2021
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Oui
Planning:
Non
Description
https://sentry.entrouvert.org/entrouvert/publik/issues/54159/
IndexError: list index out of range (10 additional frame(s) were not displayed) ... File "quixote/directory.py", line 88, in _q_traverse return obj._q_traverse(path) File "quixote/directory.py", line 88, in _q_traverse return obj._q_traverse(path) File "quixote/directory.py", line 92, in _q_traverse return obj() File "wcs/admin/workflows.py", line 628, in update_order self.status.items = [[x for x in self.status.items if x.id == y][0] for y in new_order] File "wcs/admin/workflows.py", line 628, in <listcomp> self.status.items = [[x for x in self.status.items if x.id == y][0] for y in new_order]
Fichiers
Révisions associées
Historique
Mis à jour par Frédéric Péters il y a plus de 2 ans
- Sujet changé de IndexError: list index out of range à glisser·déposer d'actions, IndexError: list index out of range
- Assigné à mis à Frédéric Péters
Mis à jour par Frédéric Péters il y a plus de 2 ans
- Fichier 0001-workflows-ignore-reordering-with-unknown-action-ids-.patch 0001-workflows-ignore-reordering-with-unknown-action-ids-.patch ajouté
- Statut changé de Nouveau à Solution proposée
- Patch proposed changé de Non à Oui
Partage à tout le module de la fonction générique _update_order introduite dans #59223; en passant modif partout pour avoir un retour json.
(modif à wcs/workflows.py pour avoir un retour pour la création du workflow dans les tests).
Mis à jour par Lauréline Guérin 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 dd994746aca8585922cb08851542b4f5317b2e62 Author: Frédéric Péters <fpeters@entrouvert.com> Date: Mon Dec 20 09:36:37 2021 +0100 workflows: ignore reordering with unknown action ids (#59898)
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
workflows: ignore reordering with unknown action ids (#59898)