Projet

Général

Profil

Development #76955

Js live validation: uniformiser objets retournés par hasAttrError et hasServerError

Ajouté par Thomas Jund il y a environ un an. Mis à jour il y a environ un an.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Version cible:
-
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

Révision 68438b2c (diff)
Ajouté par Thomas Jund il y a environ un an

Js live validation: remove if else nesting to toggleStatus method (#76955)

Historique

#1

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 :

#2

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 :

#3

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 :

#4

Mis à jour par Transition automatique il y a environ un an

  • Statut changé de Résolu (à déployer) à Solution déployée
#5

Mis à jour par Transition automatique il y a 10 mois

Automatic expiration

Formats disponibles : Atom PDF