Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: simu-indicateur1 #1895

Merged
merged 10 commits into from
Dec 4, 2023
Merged

fix: simu-indicateur1 #1895

merged 10 commits into from
Dec 4, 2023

Conversation

pom421
Copy link
Contributor

@pom421 pom421 commented Nov 30, 2023

  • problème tooltip dans layout.
  • correction schéma indicateur 1

@pom421 pom421 self-assigned this Nov 30, 2023
@github-advanced-security
Copy link

This pull request sets up GitHub code scanning for this repository. Once the scans have completed and the checks have passed, the analysis results for this pull request branch will appear on this overview. Once you merge this pull request, the 'Security' tab will show more code scanning analysis results (for example, for the default branch). Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results. For more information about GitHub code scanning, check out the documentation.

@pom421
Copy link
Contributor Author

pom421 commented Nov 30, 2023

  • bug sur l'indicateur 1: si on clique sur CSP, puis sur par niveau, qu'on crée un premier groupe, ok tout est bien calculé. Puis si on crée un 2ème groupe, le total des effectifs ne prend plus en compte le premier groupe.

Voir le getCommonFooter, qui appelle getMetaData. Pourquoi le computer n'est plus bon?

Autre bug :
quand j'essaie de soumettre avec un seul groupe, on est bloquée avec une erreur non visible à l'écran mais décelable avec ReactHookFormDebug en cliquant sur le bouton qui trigger les erreurs.
Il me dit que categoryId est obligatoire et qu'il est vide.

Le champ categoryId est nécessaire pour le hook RHF useFieldArray, nécessaire pour React afin d'avoir une key parmi les groupes et que la suppression des groupes soient ok.

Malheureusement, le code stocke ce champ inutilement dans le state CreateSimulationDTO.

Cela ne devrait pas être nécessaire, car il y a un autre exemple d'utilisation de useFieldArray dans UESForm dans la déclaration, où on ne persiste pas cet id dans le state. Donc on doit pouvoir s'en passer.

@pom421 pom421 requested a review from jonat75 December 4, 2023 09:31
@pom421 pom421 marked this pull request as ready for review December 4, 2023 09:40
Copy link

github-actions bot commented Dec 4, 2023

🎉 Deployment for commit bbfe3ef :

Ingresses
Docker images
  • 📦 docker pull ghcr.io/socialgouv/docker/nginx:7.0.1
  • 📦 docker pull harbor.fabrique.social.gouv.fr/egapro/egapro/api:sha-bbfe3ef244a38770a989ecfeec987137b59b610c
  • 📦 docker pull harbor.fabrique.social.gouv.fr/egapro/egapro/app:sha-bbfe3ef244a38770a989ecfeec987137b59b610c
  • 📦 docker pull maildev/maildev:2.1.0
  • 📦 docker pull sosedoff/pgweb:0.14.1
Debug

@pom421 pom421 merged commit 85c4912 into persist/migration-fronts Dec 4, 2023
10 checks passed
@pom421 pom421 deleted the fix/simu-indicateur1 branch December 4, 2023 11:31
jonat75 pushed a commit that referenced this pull request Dec 12, 2023
jonat75 pushed a commit that referenced this pull request Dec 12, 2023
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.

2 participants