Development #61631
API subscription: pas de chevauchement, pas de changement de user_external_id
0%
Description
endpoint de création:
- empêcher la création d'une subscription qui recoupe une autre subscription (même agenda, même user_external_id)
enpoint de modification:
- empêcher le changement de date si la nouvelle période recoupe une autre subscription (même agenda, même user_external_id)
- empêcher la modification de valeur du champ user_external_id (parce que c'est plus facile de gérer le chevauchement, l'update des bookings liés, etc si cette valeur ne change jamais)
Fichiers
Révisions associées
api: not possible to change subscription user_external_id (#61631)
Historique
Mis à jour par Lauréline Guérin il y a environ 2 ans
- Fichier 0002-api-not-possible-to-change-subscription-user_externa.patch 0002-api-not-possible-to-change-subscription-user_externa.patch ajouté
- Fichier 0001-api-subscriptions-with-overlapping-is-forbidden-6163.patch 0001-api-subscriptions-with-overlapping-is-forbidden-6163.patch ajouté
- Statut changé de Nouveau à Solution proposée
- Patch proposed changé de Non à Oui
Mis à jour par Lauréline Guérin il y a environ 2 ans
Mis à jour par Valentin Deniaud il y a environ 2 ans
Ça ne marche pas d'utiliser juste read_only_fields dans 0002 ?
Mis à jour par Lauréline Guérin il y a environ 2 ans
c'est le même serializer pour la création, et on veut setter user_external_id dans ce cas; j'aurais pu faire un serializer spécial pour l'update en effet
Mis à jour par Valentin Deniaud il y a environ 2 ans
- Statut changé de Solution proposée à Solution validée
Mis à jour par Lauréline Guérin il y a environ 2 ans
- Statut changé de Solution validée à Résolu (à déployer)
commit f70775094472c26f225552e27c3cfbe79be18acd Author: Lauréline Guérin <zebuline@entrouvert.com> Date: Thu Feb 10 11:44:26 2022 +0100 api: not possible to change subscription user_external_id (#61631) commit 0d919518bef66f0dcce280c8c68bfed0572b2891 Author: Lauréline Guérin <zebuline@entrouvert.com> Date: Thu Feb 10 11:08:26 2022 +0100 api: subscriptions with overlapping is forbidden (#61631)
Mis à jour par Transition automatique il y a environ 2 ans
- Statut changé de Résolu (à déployer) à Solution déployée
api: subscriptions with overlapping is forbidden (#61631)