Projet

Général

Profil

Development #66015

Pointage - Récupérer les types de pointage dans lingo

Ajouté par Lauréline Guérin il y a presque 2 ans. Mis à jour il y a presque 2 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Catégorie:
-
Version cible:
-
Début:
07 juin 2022
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
Planning:
Non

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

0004-manager-use-check_types-from-lingo-66015.patch (22,3 ko) 0004-manager-use-check_types-from-lingo-66015.patch Lauréline Guérin, 10 juin 2022 10:20
0005-agendas-remove-CheckType-CheckTypeGroup-models-66015.patch (60,4 ko) 0005-agendas-remove-CheckType-CheckTypeGroup-models-66015.patch Lauréline Guérin, 10 juin 2022 10:20
0003-api-use-check_types-from-lingo-66015.patch (23,1 ko) 0003-api-use-check_types-from-lingo-66015.patch Lauréline Guérin, 10 juin 2022 10:20
0001-misc-retrieve-check-types-from-lingo-66015.patch (6,49 ko) 0001-misc-retrieve-check-types-from-lingo-66015.patch Lauréline Guérin, 10 juin 2022 10:20
0002-agendas-Booking.user_check_type-becomes-2-fields-slu.patch (48,1 ko) 0002-agendas-Booking.user_check_type-becomes-2-fields-slu.patch Lauréline Guérin, 10 juin 2022 10:20
0001-misc-retrieve-check-types-from-lingo-66015.patch (6,49 ko) 0001-misc-retrieve-check-types-from-lingo-66015.patch Lauréline Guérin, 10 juin 2022 10:36
0001-misc-retrieve-check-types-from-lingo-66015.patch (6,5 ko) 0001-misc-retrieve-check-types-from-lingo-66015.patch Lauréline Guérin, 10 juin 2022 11:36
0003-api-use-check_types-from-lingo-66015.patch (23,1 ko) 0003-api-use-check_types-from-lingo-66015.patch Lauréline Guérin, 10 juin 2022 11:54
0004-manager-use-check_types-from-lingo-66015.patch (22,3 ko) 0004-manager-use-check_types-from-lingo-66015.patch Lauréline Guérin, 17 juin 2022 23:27
0005-agendas-remove-CheckType-CheckTypeGroup-models-66015.patch (60,2 ko) 0005-agendas-remove-CheckType-CheckTypeGroup-models-66015.patch Lauréline Guérin, 17 juin 2022 23:27
0003-api-use-check_types-from-lingo-66015.patch (23,1 ko) 0003-api-use-check_types-from-lingo-66015.patch Lauréline Guérin, 17 juin 2022 23:27
0002-agendas-Booking.user_check_type-becomes-2-fields-slu.patch (48,1 ko) 0002-agendas-Booking.user_check_type-becomes-2-fields-slu.patch Lauréline Guérin, 17 juin 2022 23:27
0001-misc-retrieve-check-types-from-lingo-66015.patch (6,5 ko) 0001-misc-retrieve-check-types-from-lingo-66015.patch Lauréline Guérin, 17 juin 2022 23:27
0004-manager-use-check_types-from-lingo-66015.patch (22,3 ko) 0004-manager-use-check_types-from-lingo-66015.patch Lauréline Guérin, 18 juin 2022 13:17
0005-agendas-remove-CheckType-CheckTypeGroup-models-66015.patch (60,2 ko) 0005-agendas-remove-CheckType-CheckTypeGroup-models-66015.patch Lauréline Guérin, 18 juin 2022 13:17
0003-api-use-check_types-from-lingo-66015.patch (23,1 ko) 0003-api-use-check_types-from-lingo-66015.patch Lauréline Guérin, 18 juin 2022 13:17
0002-agendas-Booking.user_check_type-becomes-2-fields-slu.patch (56,5 ko) 0002-agendas-Booking.user_check_type-becomes-2-fields-slu.patch Lauréline Guérin, 18 juin 2022 13:17
0001-misc-retrieve-check-types-from-lingo-66015.patch (6,5 ko) 0001-misc-retrieve-check-types-from-lingo-66015.patch Lauréline Guérin, 18 juin 2022 13:17

Demandes liées

Lié à Lingo - Development #66008: API - liste des types de pointageFermé07 juin 2022

Actions

Révisions associées

Révision 244dd89c (diff)
Ajouté par Lauréline Guérin il y a presque 2 ans

misc: retrieve check types from lingo (#66015)

Révision b5d836d4 (diff)
Ajouté par Lauréline Guérin il y a presque 2 ans

agendas: Booking.user_check_type becomes 2 fields (slug, label) (#66015)

Révision 2d0cb4f1 (diff)
Ajouté par Lauréline Guérin il y a presque 2 ans

api: use check_types from lingo (#66015)

Révision 42e84a48 (diff)
Ajouté par Lauréline Guérin il y a presque 2 ans

manager: use check_types from lingo (#66015)

Révision abf70dba (diff)
Ajouté par Lauréline Guérin il y a presque 2 ans

agendas: remove CheckType & CheckTypeGroup models (#66015)

Historique

#1

Mis à jour par Lauréline Guérin il y a presque 2 ans

#2

Mis à jour par Lauréline Guérin il y a presque 2 ans

  • Description mis à jour (diff)
#4

Mis à jour par Lauréline Guérin il y a presque 2 ans

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 ?

#10

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.

#11

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)
#12

Mis à jour par Transition automatique il y a presque 2 ans

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

Mis à jour par Transition automatique il y a plus d'un an

Automatic expiration

Formats disponibles : Atom PDF