Skip to content

feat: add number (not integer) management#599

Open
edelclaux wants to merge 1 commit into
PnX-SI:developfrom
naturalsolutions:fix/number-and-observers-txt-mgmt-in-import
Open

feat: add number (not integer) management#599
edelclaux wants to merge 1 commit into
PnX-SI:developfrom
naturalsolutions:fix/number-and-observers-txt-mgmt-in-import

Conversation

@edelclaux

Copy link
Copy Markdown
Contributor

Closes #598

@codecov

codecov Bot commented Apr 1, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (1315447) to head (a7b5e5b).

Additional details and impacted files
@@            Coverage Diff            @@
##           develop      #599   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            1         1           
  Lines            4         4           
=========================================
  Hits             4         4           
Flag Coverage Δ
pytest 100.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

"boolean": Boolean,
"integer": Integer,
"integer[]": ARRAY(Integer),
"number": Float(precision=24),

@cen-cgeier cen-cgeier Apr 16, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Salut @edelclaux, en essayant de tester tes évolutions je me suis posé une question :
de la même manière qu'il y a les types integer et integer[], pour number il ne faut pas également ajouter number[]: ARRAY(Float(precision=24)) ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

effectivement, il doit bien y avoir des cas de valeurs multiples de float. Donc oui, surement.

@cen-cgeier

cen-cgeier commented Apr 16, 2026

Copy link
Copy Markdown
Contributor

J'ai testé ta PR, le rapport d'import m'affiche toujours les mêmes erreurs que je mentionne ici PnX-SI/GeoNature#4069
😵😵

@jacquesfize jacquesfize added this to the 1.3.1 milestone Jun 4, 2026
@amandine-sahl

amandine-sahl commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Ne fonctionne pas car la table transitoire n'est pas impactée par le changement.

if type_widget == "number":
return "integer"
return "number"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

manque la conversion du type de widget integer ce qui ne met pas à jour la table transitoire

    if type_widget == "integer":
        return "integer"

Ceci dit cela pose la question de l'éparpillement de la définition type de widget => type de donnée

@amandine-sahl

Copy link
Copy Markdown
Contributor

Par contre cela pose un autre soucis, le type_widget integer n'existe pas dans les GenericForm. C'est un champ qui ne peut s'afficher sur le formulaire

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants