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: hide useless information and use PF link #34

Merged
merged 2 commits into from
Nov 30, 2024
Merged

Conversation

yhru
Copy link
Collaborator

@yhru yhru commented Nov 7, 2024

Resolve :

  1. ETQ Instructeur, les informations affichées pour un numéro Tahiti devraient être adaptées à la Polynésie (bug) ETQ Instructeur, les informations affichées pour un numéro Tahiti devraient être adaptées à la Polynésie (bug) #7
  2. ETQ Usager, sur un champ numéro Tahiti, MD devrait m'afficher une erreur si j'ai entré 6 chiffres au lieu de 9 ETQ Usager, sur un champ numéro Tahiti, MD devrait m'afficher une erreur si j'ai entré 6 chiffres au lieu de 9 #27

This pull request introduces several changes to the handling and validation of SIRET numbers, updates to the user interface, and modifications to test cases and constants. The most important changes include adding validation for SIRET length, updating the user interface to comment out certain fields, and updating constants and translations for SIRET length.

Validation and Constants Updates:

  • app/models/champs/siret_champ.rb: Added a private method validate_siret_length to ensure the SIRET number has at least 9 characters.
  • config/initializers/constants.rb: Updated SIRET_LENGTHS to include both 9 and 14 as valid lengths for TAHITI and SIRET numbers.
  • config/locales/en.yml and config/locales/fr.yml: Updated the error message for invalid SIRET length to reflect the new valid lengths (9 or 14 characters). [1] [2]

User Interface Changes:

Test Case Updates:

@yhru yhru self-assigned this Nov 7, 2024
fix: remove 6 char from valid siret

fix: reflect change in the specs

feat: better specs

feat: add a validate on the siret length

fix: change according to new spec

fix: remove useless spec
@yhru yhru force-pushed the fix/tahiti-number branch from 130e27a to 247b12c Compare November 19, 2024 15:44
@maatinito maatinito force-pushed the devpf branch 2 times, most recently from 1eb73ba to 7c7982b Compare November 21, 2024 19:02
@maatinito maatinito merged commit 845707d into devpf Nov 30, 2024
13 checks passed
@maatinito maatinito deleted the fix/tahiti-number branch November 30, 2024 00:15
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