Development #32415
retourner une liste vide sur /api/forms quand il n'y a aucune démarche encore définie
Début:
17 avril 2019
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Oui
Planning:
Non
Description
Parce que sinon, paf sur le wcs_all_forms qui n'existe pas. C'est quelque chose qui a déjà été fait sur /api/user/{forms,drafts} dans #28132.
Fichiers
Révisions associées
Historique
Mis à jour par Frédéric Péters il y a environ 5 ans
- Fichier 0001-api-don-t-crash-api-forms-when-there-are-no-formdefs.patch 0001-api-don-t-crash-api-forms-when-there-are-no-formdefs.patch ajouté
- Statut changé de Nouveau à Solution proposée
- Patch proposed changé de Non à Oui
Mis à jour par Thomas Noël il y a environ 5 ans
output n'existe pas encore, je pense qu'il faut plutôt renvoyer {'data': []}
Mis à jour par Frédéric Péters il y a environ 5 ans
- Fichier 0001-api-don-t-crash-api-forms-when-there-are-no-formdefs.patch 0001-api-don-t-crash-api-forms-when-there-are-no-formdefs.patch ajouté
Merci pour la relecture, en plus testé en local en modifiant le == 0, quand j'ai annulé les changements au fichier je suis remonté trop loin :/
Pour ma peine le patch avec un vrai test.
Mis à jour par Thomas Noël il y a environ 5 ans
- Statut changé de Solution proposée à Solution validée
Mis à jour par Frédéric Péters il y a environ 5 ans
- Statut changé de Solution validée à Résolu (à déployer)
commit e916dcf8d2ef9a0878b34a6c19ff2344d43e7e3f Author: Frédéric Péters <fpeters@entrouvert.com> Date: Wed Apr 17 11:57:13 2019 +0200 api: don't crash /api/forms when there are no formdefs (#32415)
Mis à jour par Frédéric Péters il y a environ 5 ans
- Statut changé de Résolu (à déployer) à Solution déployée
api: don't crash /api/forms when there are no formdefs (#32415)