-
Notifications
You must be signed in to change notification settings - Fork 2
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
Add missing checkbox for api_impot_part_sandbox forms #658
Add missing checkbox for api_impot_part_sandbox forms #658
Conversation
Isalafont
commented
Jan 16, 2025
- add attributes data: { 'dpd_homologation_checkbox' => '1' } to api_impot_particulier_sandbox seeds
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bien vu !
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cf mon unique com
app/lib/seeds.rb
Outdated
@@ -53,7 +53,7 @@ def create_authorization_requests_for_clamart | |||
authorization_request = create_submitted_authorization_request(:api_entreprise, attributes: { intitule: 'Place des entreprises', applicant: another_demandeur }) | |||
send_message_to_instructors(authorization_request, body: "Je ne suis pas sûr du cadre de cette demande, pouvez-vous m'aider ?") | |||
|
|||
create_validated_authorization_request(:api_impot_particulier_sandbox, attributes: { intitule: 'Demande de retraite progressive en ligne', applicant: demandeur }) | |||
create_validated_authorization_request(:api_impot_particulier_sandbox, attributes: { intitule: 'Demande de retraite progressive en ligne', applicant: demandeur, data: { 'dpd_homologation_checkbox' => '1' } }) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pourquoi ce n'est pas dans la factory ? Ce n'est pas le rôle des seeds de savoir comment construire une demande valide. Idem pour en dessous.
Y'a une question plus large ici d'ailleurs : cette checkbox est présente sur l'ensemble des demandes en sandbox mais pas en production. Toutes les autres data sont partagées, pourquoi pas celle là ? cc @SchweisguthN |