Bug #83306
action de workflow qui crée une demande qui supprime la demande appelante
Début:
09 novembre 2023
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Non
Planning:
Non
Description
https://sentry.entrouvert.org/entrouvert/publik/issues/116484/
File "wcs/forms/actions.py", line 207, in _q_index url = GlobalInteractiveMassActionAfterJob.execute_one( File "wcs/forms/actions.py", line 272, in execute_one url = perform_items(wf_status.items, formdata) or url File "wcs/workflows.py", line 92, in perform_items url = item.perform(formdata) or url File "wcs/wf/create_formdata.py", line 739, in perform
^^^ on a une action exécutée (qui s'appelle "❌️ Supprimer les inscriptions") et dedans il y a création d'une demande
demande où s'exécute un workflow qui fait un tas de trucs et quand le contrôle revient à la demande,
formdata.refresh_from_storage() File "wcs/formdata.py", line 348, in refresh_from_storage obj = self.get(self.id) File "wcs/sql.py", line 382, in f return func(*args, **kwargs) File "wcs/sql.py", line 2638, in get raise KeyError()
elle n'est plus là.
Il y aurait à gérer de manière particulière ce cas-ci, vraisemblablement en arrêtant le traitement.
Révisions associées
workflows: redirect on removed self (#83306)
Historique
Mis à jour par Robot Gitea il y a 5 mois
- Statut changé de Nouveau à En cours
- Assigné à mis à Frédéric Péters
Frédéric Péters (fpeters) a ouvert une pull request sur Gitea concernant cette demande :
- URL : https://git.entrouvert.org/entrouvert/wcs/pulls/846
- Titre : WIP: workflows: redirect on removed self (#83306)
- Modifications : https://git.entrouvert.org/entrouvert/wcs/pulls/846/files
Mis à jour par Robot Gitea il y a 5 mois
- Statut changé de Solution proposée à Solution validée
Lauréline Guérin (lguerin) a approuvé une pull request sur Gitea concernant cette demande :
Mis à jour par Robot Gitea il y a 5 mois
- Statut changé de Solution validée à Résolu (à déployer)
Frédéric Péters (fpeters) a mergé une pull request sur Gitea concernant cette demande :
- URL : https://git.entrouvert.org/entrouvert/wcs/pulls/846
- Titre : workflows: redirect on removed self (#83306)
- Modifications : https://git.entrouvert.org/entrouvert/wcs/pulls/846/files
Mis à jour par Transition automatique il y a 5 mois
- Statut changé de Résolu (à déployer) à Solution déployée
tests: move external workflow action tests to their own file (#83306)