Skip to content

Conversation

@jcicurel-pass
Copy link
Contributor

…ctory

🎯 Related Ticket or 🔧 Changes Made

On force institutionId à une longueur de 8 dans la factory EducationalInstitutionFactory pour éviter des erreurs dans la synchro avec Adage en testing

  • Travail pair testé en environnement de preview

@jcicurel-pass jcicurel-pass marked this pull request as ready for review December 1, 2025 11:44
@jcicurel-pass jcicurel-pass force-pushed the institution-id-sandbox branch from 61168a0 to 1b57544 Compare December 1, 2025 13:33
Comment on lines 58 to 59
prefix = (7 - len(str(sequence_number))) * "0"
return f"{prefix}{sequence_number}F"
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggestion : tu devrais arriver exactement au même résultat avec

Suggested change
prefix = (7 - len(str(sequence_number))) * "0"
return f"{prefix}{sequence_number}F"
return f"{sequence_number}F".zfill(8)

ou directement dans la factory :

institutionId = factory.Sequence(lambda x: f"{x}F".zfill(8))

@jcicurel-pass jcicurel-pass force-pushed the institution-id-sandbox branch from 1b57544 to f08edf4 Compare December 1, 2025 15:33
@jcicurel-pass jcicurel-pass merged commit 96adf0d into master Dec 1, 2025
32 checks passed
@jcicurel-pass jcicurel-pass deleted the institution-id-sandbox branch December 1, 2025 16:12
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.

3 participants