Projet

Général

Profil

Development #38543

Toulouse Axel - maj partielles

Ajouté par Lauréline Guérin il y a plus de 4 ans. Mis à jour il y a environ 4 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Version cible:
-
Début:
16 décembre 2019
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
Planning:
Non

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

0001-toulouse_axel-partial-update-38543.patch (37,2 ko) 0001-toulouse_axel-partial-update-38543.patch Lauréline Guérin, 19 décembre 2019 11:54
0002-toulouse_axel-handle-handicap-fields-38543.patch (12,7 ko) 0002-toulouse_axel-handle-handicap-fields-38543.patch Lauréline Guérin, 06 janvier 2020 12:06
0003-toulouse_axel-handle-allergie-fields-38543.patch (14,4 ko) 0003-toulouse_axel-handle-allergie-fields-38543.patch Lauréline Guérin, 06 janvier 2020 12:06
0001-toulouse_axel-partial-update-38543.patch (37,2 ko) 0001-toulouse_axel-partial-update-38543.patch Lauréline Guérin, 06 janvier 2020 12:06
0003-toulouse_axel-handle-allergie-fields-38543.patch (14,5 ko) 0003-toulouse_axel-handle-allergie-fields-38543.patch Lauréline Guérin, 09 janvier 2020 16:27
0004-toulouse_axel-some-values-are-not-editable-38543.patch (49,5 ko) 0004-toulouse_axel-some-values-are-not-editable-38543.patch Lauréline Guérin, 09 janvier 2020 16:27
0002-toulouse_axel-handle-handicap-fields-38543.patch (11,9 ko) 0002-toulouse_axel-handle-handicap-fields-38543.patch Lauréline Guérin, 09 janvier 2020 16:27
0001-toulouse_axel-partial-update-38543.patch (35,4 ko) 0001-toulouse_axel-partial-update-38543.patch Lauréline Guérin, 09 janvier 2020 16:27
0005-toulouse_axel-pre_process-the-payload-before-schema-.patch (38 ko) 0005-toulouse_axel-pre_process-the-payload-before-schema-.patch Lauréline Guérin, 13 janvier 2020 16:40
0004-toulouse_axel-some-values-are-not-editable-38543.patch (49,5 ko) 0004-toulouse_axel-some-values-are-not-editable-38543.patch Lauréline Guérin, 13 janvier 2020 16:40
0003-toulouse_axel-handle-allergie-fields-38543.patch (14,5 ko) 0003-toulouse_axel-handle-allergie-fields-38543.patch Lauréline Guérin, 13 janvier 2020 16:40
0002-toulouse_axel-handle-handicap-fields-38543.patch (19,2 ko) 0002-toulouse_axel-handle-handicap-fields-38543.patch Lauréline Guérin, 13 janvier 2020 16:40
0001-toulouse_axel-partial-update-38543.patch (35,4 ko) 0001-toulouse_axel-partial-update-38543.patch Lauréline Guérin, 13 janvier 2020 16:40
0006-toulouse_axel-zeep-upgrade-for-encoding-in-logs-3854.patch (1,56 ko) 0006-toulouse_axel-zeep-upgrade-for-encoding-in-logs-3854.patch Lauréline Guérin, 14 janvier 2020 11:56
0005-toulouse_axel-pre_process-the-payload-before-schema-.patch (38,4 ko) 0005-toulouse_axel-pre_process-the-payload-before-schema-.patch Lauréline Guérin, 14 janvier 2020 11:56
0006-toulouse_axel-zeep-upgrade-for-encoding-in-logs-3854.patch (4,71 ko) 0006-toulouse_axel-zeep-upgrade-for-encoding-in-logs-3854.patch Lauréline Guérin, 14 janvier 2020 14:09
0006-toulouse_axel-prepare-a-future-zeep-upgrade-38543.patch (1,29 ko) 0006-toulouse_axel-prepare-a-future-zeep-upgrade-38543.patch Lauréline Guérin, 14 janvier 2020 15:40

Révisions associées

Révision 481d3c63 (diff)
Ajouté par Lauréline Guérin il y a plus de 4 ans

toulouse_axel: partial update (#38543)

Révision aa2d4f28 (diff)
Ajouté par Lauréline Guérin il y a plus de 4 ans

toulouse_axel: handle handicap fields (#38543)

Révision 0937cb6c (diff)
Ajouté par Lauréline Guérin il y a plus de 4 ans

toulouse_axel: handle allergie fields (#38543)

Révision 6aa3d1a7 (diff)
Ajouté par Lauréline Guérin il y a plus de 4 ans

toulouse_axel: some values are not editable (#38543)

and it will be NOT sent by w.c.s.

Révision 6d1af4d0 (diff)
Ajouté par Lauréline Guérin il y a plus de 4 ans

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

Révision d3c5766d (diff)
Ajouté par Lauréline Guérin il y a plus de 4 ans

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

#3

Mis à jour par Lauréline Guérin il y a plus de 4 ans

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

#4

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.

#5

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

#7

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 !

#11

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 ...)

#13

Mis à jour par Lauréline Guérin il y a plus de 4 ans

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

#14

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.

#15

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

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

Formats disponibles : Atom PDF