Development #38543
Toulouse Axel - maj partielles
0%
Description
Prendre en compte les bouléens listés dans le ticket #38222
Pour chaque booléen:
- s'il est à False, supprimer le block de données posté correspondant
- si la mise à jour partielle ne fonctionne pas pour le block en question, le remplir avec les données connues (récupérées via un family_info)
Fichiers
Révisions associées
toulouse_axel: handle handicap fields (#38543)
toulouse_axel: handle allergie fields (#38543)
toulouse_axel: some values are not editable (#38543)
and it will be NOT sent by w.c.s.
toulouse_axel: pre_process the payload, before schema validation (#38543)
because w.c.s. always sends all fields, event if all the structure is
empty.
example: all children will always be present in the payload, even if
maj:enfant_n flags are set to False
toulouse_axel: prepare a future zeep upgrade (#38543)
Here toulouse axel sends headers like:
If there in accents in data, it fails with zeep < 3 on log encoding.
It is fixed in zeep 3.0.2:
https://github.com/mvantellingen/python-zeep/commit/7277be32d5921b0b5f1c250fe607d74aaee2125f
But we need to encode the result for ET.fromstring
Historique
Mis à jour par Lauréline Guérin il y a plus de 4 ans
- Fichier 0001-toulouse_axel-partial-update-38543.patch 0001-toulouse_axel-partial-update-38543.patch ajouté
- Statut changé de Nouveau à Solution proposée
- Patch proposed changé de Non à Oui
première itération (pour pre-review si ça dit quelqu'un)
il me manque les cas particuliers:
- la gestion des allergies (d'après une discussion avec victor, wcs n'enverra pas les données allergies au format attendu par le xsd)
- la gestion du flag 'maj:enfant_n_handicap' qui conditionne certains champs du block sanitaire (et non un block complet comme les autres flags)
à venir dans des commits séparés
Mis à jour par Benjamin Dauvergne il y a plus de 4 ans
- Statut changé de Solution proposée à Solution validée
Ça m'a l'air ok.
Mis à jour par Lauréline Guérin il y a plus de 4 ans
- Statut changé de Solution validée à En cours
c'est encore work in progress :)
je suis encore sur la gestion des cas particuliers
Mis à jour par Lauréline Guérin il y a plus de 4 ans
- Fichier 0003-toulouse_axel-handle-allergie-fields-38543.patch 0003-toulouse_axel-handle-allergie-fields-38543.patch ajouté
- Fichier 0002-toulouse_axel-handle-handicap-fields-38543.patch 0002-toulouse_axel-handle-handicap-fields-38543.patch ajouté
- Fichier 0001-toulouse_axel-partial-update-38543.patch 0001-toulouse_axel-partial-update-38543.patch ajouté
- Statut changé de En cours à Solution proposée
avec les cas particuliers
Mis à jour par Thomas Noël il y a plus de 4 ans
- Statut changé de Solution proposée à Solution validée
Une vraie partie de plaisir. Let's go !
Mis à jour par Lauréline Guérin il y a plus de 4 ans
- Fichier 0004-toulouse_axel-some-values-are-not-editable-38543.patch 0004-toulouse_axel-some-values-are-not-editable-38543.patch ajouté
- Fichier 0003-toulouse_axel-handle-allergie-fields-38543.patch 0003-toulouse_axel-handle-allergie-fields-38543.patch ajouté
- Fichier 0002-toulouse_axel-handle-handicap-fields-38543.patch 0002-toulouse_axel-handle-handicap-fields-38543.patch ajouté
- Fichier 0001-toulouse_axel-partial-update-38543.patch 0001-toulouse_axel-partial-update-38543.patch ajouté
- Statut changé de Solution validée à En cours
quelques modifs suite aux tests effectués avec Victor
toujours work in progress
Mis à jour par Lauréline Guérin il y a plus de 4 ans
- Fichier 0005-toulouse_axel-pre_process-the-payload-before-schema-.patch 0005-toulouse_axel-pre_process-the-payload-before-schema-.patch ajouté
- Fichier 0004-toulouse_axel-some-values-are-not-editable-38543.patch 0004-toulouse_axel-some-values-are-not-editable-38543.patch ajouté
- Fichier 0003-toulouse_axel-handle-allergie-fields-38543.patch 0003-toulouse_axel-handle-allergie-fields-38543.patch ajouté
- Fichier 0002-toulouse_axel-handle-handicap-fields-38543.patch 0002-toulouse_axel-handle-handicap-fields-38543.patch ajouté
- Fichier 0001-toulouse_axel-partial-update-38543.patch 0001-toulouse_axel-partial-update-38543.patch ajouté
- Statut changé de En cours à Solution proposée
voila, c'est ready for review :)
Mis à jour par Lauréline Guérin il y a plus de 4 ans
- Fichier 0006-toulouse_axel-zeep-upgrade-for-encoding-in-logs-3854.patch 0006-toulouse_axel-zeep-upgrade-for-encoding-in-logs-3854.patch ajouté
- Fichier 0005-toulouse_axel-pre_process-the-payload-before-schema-.patch 0005-toulouse_axel-pre_process-the-payload-before-schema-.patch ajouté
petite mise à jour du 0005, et ajout du 0006 qui règle un pb d'encoding (maj de zeep requise)
Mis à jour par Lauréline Guérin il y a plus de 4 ans
(je revoie ma copie et je reviens avec des tests qui passent ...)
Mis à jour par Lauréline Guérin il y a plus de 4 ans
- Fichier 0006-toulouse_axel-zeep-upgrade-for-encoding-in-logs-3854.patch 0006-toulouse_axel-zeep-upgrade-for-encoding-in-logs-3854.patch ajouté
le 0006 avec des tests qui passent
Mis à jour par Lauréline Guérin il y a plus de 4 ans
- Fichier 0006-toulouse_axel-prepare-a-future-zeep-upgrade-38543.patch 0006-toulouse_axel-prepare-a-future-zeep-upgrade-38543.patch ajouté
après discussion avec Thomas N, je change le 0006: l'upgrade de zeep se fera sur master en temps voulu.
En attendant, si on a une donnée avec accent côté Axel, ça risque de ne pas fonctionner. Mais ça dépend peut-être du niveau de log du connecteur, peut-être que c'est contournable.
La correction est néanmoins requise pour pouvoir transformer avec ET.fromstring, si result contient des accents
Mis à jour par Thomas Noël il y a plus de 4 ans
- Statut changé de Solution proposée à Solution validée
Let's go.
Sur master l'upgrade vers zeep 3 est en cours ; on devrait pouvoir basculer vers zeep 3 d'ici la fin de la semaine j'espère.
Mis à jour par Lauréline Guérin il y a plus de 4 ans
- Statut changé de Solution validée à Résolu (à déployer)
commit d3c5766d14af4a634585a835210056543c12ab80 Author: Lauréline Guérin <zebuline@entrouvert.com> Date: Tue Jan 14 15:36:35 2020 +0100 toulouse_axel: prepare a future zeep upgrade (#38543) Here toulouse axel sends headers like: <?xml version="1.0" encoding="ISO-8859-1"?> If there in accents in data, it fails with zeep < 3 on log encoding. It is fixed in zeep 3.0.2: https://github.com/mvantellingen/python-zeep/commit/7277be32d5921b0b5f1c250fe607d74aaee2125f But we need to encode the result for ET.fromstring commit 6d1af4d02a5fb22cc4c4dd945be9993669434221 Author: Lauréline Guérin <zebuline@entrouvert.com> Date: Mon Jan 13 15:12:48 2020 +0100 toulouse_axel: pre_process the payload, before schema validation (#38543) because w.c.s. always sends all fields, event if all the structure is empty. example: all children will always be present in the payload, even if maj:enfant_n flags are set to False commit 6aa3d1a7aa8b1b7434af0cf51a95c330dde2a661 Author: Lauréline Guérin <zebuline@entrouvert.com> Date: Thu Jan 9 16:24:11 2020 +0100 toulouse_axel: some values are not editable (#38543) and it will be NOT sent by w.c.s. commit 0937cb6cd1d0409382c92f66103469e4b2ee43cc Author: Lauréline Guérin <zebuline@entrouvert.com> Date: Mon Jan 6 11:52:40 2020 +0100 toulouse_axel: handle allergie fields (#38543) commit aa2d4f281215fe2242ca466af72544c43ca6481a Author: Lauréline Guérin <zebuline@entrouvert.com> Date: Fri Dec 20 15:05:55 2019 +0100 toulouse_axel: handle handicap fields (#38543) commit 481d3c63478a72403267e1283f076fed0b3a689d Author: Lauréline Guérin <zebuline@entrouvert.com> Date: Tue Dec 17 15:39:17 2019 +0100 toulouse_axel: partial update (#38543)
Mis à jour par Frédéric Péters il y a environ 4 ans
- Statut changé de Résolu (à déployer) à Solution déployée
toulouse_axel: partial update (#38543)