Development #66015
Pointage - Récupérer les types de pointage dans lingo
0%
Description
Ecran de pointage: récupérer la liste des types de pointage dans lingo (#66008)
API & endpoint de pointage: récupérer la liste des types de pointage dans lingo
Models: Supprimer la FK, revenir à un slug
Supprimer les models CheckType et CheckTypeGroup, supprimer les vues managers qui vont avec, le paramétrage du group de types de pointage au niveau de l'agenda, les imports.
Vérifier le prod et en recette l'utilisation des types de pointage
Fichiers
Demandes liées
Révisions associées
agendas: Booking.user_check_type becomes 2 fields (slug, label) (#66015)
api: use check_types from lingo (#66015)
manager: use check_types from lingo (#66015)
agendas: remove CheckType & CheckTypeGroup models (#66015)
Historique
Mis à jour par Lauréline Guérin il y a presque 2 ans
- Lié à Development #66008: API - liste des types de pointage ajouté
Mis à jour par Lauréline Guérin il y a presque 2 ans
- Fichier 0005-agendas-remove-CheckType-CheckTypeGroup-models-66015.patch 0005-agendas-remove-CheckType-CheckTypeGroup-models-66015.patch ajouté
- Fichier 0004-manager-use-check_types-from-lingo-66015.patch 0004-manager-use-check_types-from-lingo-66015.patch ajouté
- Fichier 0003-api-use-check_types-from-lingo-66015.patch 0003-api-use-check_types-from-lingo-66015.patch ajouté
- Fichier 0002-agendas-Booking.user_check_type-becomes-2-fields-slu.patch 0002-agendas-Booking.user_check_type-becomes-2-fields-slu.patch ajouté
- Fichier 0001-misc-retrieve-check-types-from-lingo-66015.patch 0001-misc-retrieve-check-types-from-lingo-66015.patch ajouté
- Statut changé de Nouveau à Solution proposée
- Patch proposed changé de Non à Oui
0001: de quoi récupérer les types de pointage dans lingo
0002: changement de model, suppression de la FK de Booking vers CheckType (on stocke le slug, et le label aussi, pour l'affichage)
0003: api, on utilise les types de pointage lingo
0004: UI, on utilise les types de pointage lingo
0005: nettoyage, suppression des models CheckType et CheckTypeGroup
0002: si le label change dans lingo, pas de mise à jour; on l'affiche sur l'écran de pointage, pour les résa déjà pointées, mais on pourrait en fait le récupérer dans les types de pointage qu'on a récupéré dans lingo. Je vire user_check_type_label ? Ou je laisse comme ça ?
Mis à jour par Lauréline Guérin il y a presque 2 ans
Mis à jour par Lauréline Guérin il y a presque 2 ans
Mis à jour par Lauréline Guérin il y a presque 2 ans
Mis à jour par Lauréline Guérin il y a presque 2 ans
- Fichier 0005-agendas-remove-CheckType-CheckTypeGroup-models-66015.patch 0005-agendas-remove-CheckType-CheckTypeGroup-models-66015.patch ajouté
- Fichier 0004-manager-use-check_types-from-lingo-66015.patch 0004-manager-use-check_types-from-lingo-66015.patch ajouté
- Fichier 0003-api-use-check_types-from-lingo-66015.patch 0003-api-use-check_types-from-lingo-66015.patch ajouté
- Fichier 0002-agendas-Booking.user_check_type-becomes-2-fields-slu.patch 0002-agendas-Booking.user_check_type-becomes-2-fields-slu.patch ajouté
- Fichier 0001-misc-retrieve-check-types-from-lingo-66015.patch 0001-misc-retrieve-check-types-from-lingo-66015.patch ajouté
rebase
Mis à jour par Lauréline Guérin il y a presque 2 ans
- Fichier 0005-agendas-remove-CheckType-CheckTypeGroup-models-66015.patch 0005-agendas-remove-CheckType-CheckTypeGroup-models-66015.patch ajouté
- Fichier 0004-manager-use-check_types-from-lingo-66015.patch 0004-manager-use-check_types-from-lingo-66015.patch ajouté
- Fichier 0003-api-use-check_types-from-lingo-66015.patch 0003-api-use-check_types-from-lingo-66015.patch ajouté
- Fichier 0002-agendas-Booking.user_check_type-becomes-2-fields-slu.patch 0002-agendas-Booking.user_check_type-becomes-2-fields-slu.patch ajouté
- Fichier 0001-misc-retrieve-check-types-from-lingo-66015.patch 0001-misc-retrieve-check-types-from-lingo-66015.patch ajouté
Mis à jour par Frédéric Péters il y a presque 2 ans
- Statut changé de Solution proposée à Solution validée
J'aurais peut-être ajouté des paramètres slug/kind sur get_agenda_check_types, pour par exemple avoir
+ check_types = get_agenda_check_types(self.agenda) + absence_check_types = [ct for ct in check_types if ct.kind == 'absence'] + presence_check_types = [ct for ct in check_types if ct.kind == 'presence']
remplacé par
+ absence_check_types = get_agenda_check_types(self.agenda, kind='absence') + presence_check_types = get_agenda_check_types(self.agenda, kind='presence')
mais ça entraine l'envie d'avoir du cache sur la récupération depuis lingo, et ça n'en vaut pas la chandelle.
Go ainsi.
Mis à jour par Lauréline Guérin il y a presque 2 ans
- Statut changé de Solution validée à Résolu (à déployer)
commit abf70dba29b46047ca3cafe13303ba2e0a3c3083 Author: Lauréline Guérin <zebuline@entrouvert.com> Date: Fri Jun 10 10:17:38 2022 +0200 agendas: remove CheckType & CheckTypeGroup models (#66015) commit 42e84a48a9d469cd8f470c0d0d511610c9c31eb5 Author: Lauréline Guérin <zebuline@entrouvert.com> Date: Thu Jun 9 17:01:20 2022 +0200 manager: use check_types from lingo (#66015) commit 2d0cb4f1b2868495a690dcdc7160d21cc5826fd3 Author: Lauréline Guérin <zebuline@entrouvert.com> Date: Thu Jun 9 16:35:13 2022 +0200 api: use check_types from lingo (#66015) commit b5d836d46d4ac209a8db58eb97a6d6bee98aee41 Author: Lauréline Guérin <zebuline@entrouvert.com> Date: Thu Jun 9 14:53:13 2022 +0200 agendas: Booking.user_check_type becomes 2 fields (slug, label) (#66015) commit 244dd89cf9ee83131f4a324c78fdc73f470f73e7 Author: Lauréline Guérin <zebuline@entrouvert.com> Date: Tue Jun 7 15:20:20 2022 +0200 misc: retrieve check types from lingo (#66015)
Mis à jour par Transition automatique il y a presque 2 ans
- Statut changé de Résolu (à déployer) à Solution déployée
misc: retrieve check types from lingo (#66015)