Project

General

Profile

Development #78220

Donnée calculée: lever une erreur au load d'un formdata si la value d'une donnée calculée n'a pas le bon format

Added by Lauréline Guérin 4 months ago. Updated 2 months ago.

Status:
Fermé
Priority:
Normal
Target version:
-
Start date:
07 June 2023
Due date:
% Done:

0%

Estimated time:
Patch proposed:
No
Planning:
No

Description

Contexte: une situation cliente, où un formdef a été écrasé via installation d'une app.
Un champ d'id N existait déjà, il a été réutilisé, la colonne n'avait pas le bon type (varchar au lieu de jsonb).

On aurait pu le détecter plus tôt si une erreur était levée ici en cas de mauvais format (wcs/sql.py):

            elif field.key == 'computed':
                if isinstance(value, dict) and value.get('@type') == 'computed-data':
                    value = value.get('data')

Associated revisions

Revision c0fccffc (diff)
Added by Lauréline Guérin 2 months ago

sql: raise an error if computed value is not a dict (#78220)

History

#2

Updated by Robot Gitea 3 months ago

  • Status changed from Nouveau to En cours
  • Assignee set to Lauréline Guérin

Lauréline Guérin (lguerin) a ouvert une pull request sur Gitea concernant cette demande :

#3

Updated by Robot Gitea 3 months ago

  • Status changed from En cours to Solution proposée
#4

Updated by Robot Gitea 2 months ago

  • Status changed from Solution proposée to Solution validée

Frédéric Péters (fpeters) a approuvé une pull request sur Gitea concernant cette demande :

#5

Updated by Robot Gitea 2 months ago

  • Status changed from Solution validée to Résolu (à déployer)

Lauréline Guérin (lguerin) a mergé une pull request sur Gitea concernant cette demande :

#6

Updated by Transition automatique 2 months ago

  • Status changed from Résolu (à déployer) to Solution déployée
#7

Updated by Transition automatique 9 days ago

Automatic expiration

Also available in: Atom PDF