Bug #86021
utilisation d'un champ numérique en variable de workflow (AssertionError: option variable of unknown type (<class 'decimal.Decimal'>))
Début:
23 janvier 2024
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Non
Planning:
Non
Description
https://sentry.entrouvert.org/entrouvert/publik/issues/120870/
AssertionError: option variable of unknown type (<class 'decimal.Decimal'>) (12 additional frame(s) were not displayed) ... File "wcs/admin/forms.py", line 1649, in workflow_variables self.formdef.store(comment=_('Change in workflow variables')) File "wcs/formdef.py", line 427, in store get_publisher().snapshot_class.snap( File "wcs/snapshots.py", line 150, in snap tree = instance.export_to_xml(include_id=True) File "wcs/formdef.py", line 1363, in export_to_xml make_xml_value(element, option_value) File "wcs/formdef.py", line 1356, in make_xml_value assert value is None, 'option variable of unknown type (%s)' % type(value)
Révisions associées
Historique
Mis à jour par Frédéric Péters il y a 3 mois
- Projet changé de Suivi des traces à w.c.s.
- Assigné à mis à Frédéric Péters
Mis à jour par Robot Gitea il y a 3 mois
- Statut changé de Nouveau à En cours
Frédéric Péters (fpeters) a ouvert une pull request sur Gitea concernant cette demande :
- URL : https://git.entrouvert.org/entrouvert/wcs/pulls/1064
- Titre : WIP: misc: add support for decimal (and float) as workflow variables (#86021)
- Modifications : https://git.entrouvert.org/entrouvert/wcs/pulls/1064/files
Mis à jour par Robot Gitea il y a 3 mois
- Statut changé de Solution proposée à Solution validée
Serghei Mihai (smihai) a approuvé une pull request sur Gitea concernant cette demande :
Mis à jour par Robot Gitea il y a 3 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/1064
- Titre : misc: add support for decimal (and float) as workflow variables (#86021)
- Modifications : https://git.entrouvert.org/entrouvert/wcs/pulls/1064/files
Mis à jour par Transition automatique il y a 3 mois
- Statut changé de Résolu (à déployer) à Solution déployée
misc: add support for decimal (and float) as workflow variables (#86021)