Development #76955
Js live validation: uniformiser objets retournés par hasAttrError et hasServerError
Début:
24 avril 2023
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Non
Planning:
Non
Description
Propostion de simplification.
La function hasAttrError retourne un string ErrorType.
La function hasServerError retourne un array [ErrorType, ErrorMessage].
Et ensuite la function toggleStatus fait un micmac de if else pour gérer les 2 format de données diff.
Si hasAttrError retourne un array [ErrorType, ErrorMessage] on peut simplifier tout ça.
Révisions associées
Historique
Mis à jour par Robot Gitea il y a environ un an
- Statut changé de Nouveau à Solution proposée
- Assigné à mis à Thomas Jund
Thomas Jund (tjund) a ouvert une pull request sur Gitea concernant cette demande :
- URL : https://git.entrouvert.org/entrouvert/wcs/pulls/269
- Titre : Js live validation: remove if else nesting to toggleStatus method (#76955)
- Modifications : https://git.entrouvert.org/entrouvert/wcs/pulls/269/files
Mis à jour par Robot Gitea il y a environ un an
- Statut changé de Solution proposée à Solution validée
Corentin Sechet (csechet) a approuvé une pull request sur Gitea concernant cette demande :
Mis à jour par Robot Gitea il y a environ un an
- 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/269
- Titre : Js live validation: remove if else nesting to toggleStatus method (#76955)
- Modifications : https://git.entrouvert.org/entrouvert/wcs/pulls/269/files
Mis à jour par Transition automatique il y a environ un an
- Statut changé de Résolu (à déployer) à Solution déployée
Js live validation: remove if else nesting to toggleStatus method (#76955)