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

🐛 Corrige l'import XLS pour les questions #1873

Merged
merged 7 commits into from
Feb 13, 2025

Conversation

cprodhomme
Copy link
Contributor

Quand on tenter d'importer un fichier XLS pour importer des questions, on avait l'erreur suivante :

14:26:41 web.1        | Processing by Admin::QuestionsController#import_xls as HTML
14:26:41 web.1        |   Parameters: {"authenticity_token"=>"h7cyv63mpf-N9247uNbiLkscpXS2USTha3oJ3I2MEGUsyQOZo-DU4XDWjk9L4In7Mmpw_96nyu_uGZc8rjccPQ", "question"=>{"file_xls"=>#<ActionDispatch::Http::UploadedFile:0x0000000110383bd0 @tempfile=#<Tempfile:/var/folders/5z/gy2lzms53nnd8l3f7yd93mcr0000gn/T/RackMultipart20250210-4352-c5ufn.xls>, @content_type="application/vnd.ms-excel", @original_filename="QuestionGlisserDeposer_questions_export.xls", @headers="Content-Disposition: form-data; name=\"question[file_xls]\"; filename=\"QuestionGlisserDeposer_questions_export.xls\"\r\nContent-Type: application/vnd.ms-excel\r\n">, "type"=>"QuestionGlisserDeposer"}, "commit"=>"Importer le fichier"}
14:26:41 web.1        |   Compte Load (5.5ms)  SELECT "comptes".* FROM "comptes" WHERE "comptes"."deleted_at" IS NULL AND "comptes"."id" = $1 ORDER BY "comptes"."created_at" ASC, "comptes"."id" ASC LIMIT $2  [["id", "fbf17731-d66c-44ed-9598-d4841054217d"], ["LIMIT", 1]]
14:26:41 web.1        | No template found for Admin::QuestionsController#import_xls, rendering head :no_content
14:26:41 web.1        | Completed 204 No Content in 22ms (ActiveRecord: 5.4ms (1 query, 0 cached) | GC: 0.0ms)

https://eva-beta.slack.com/archives/CGE5S197C/p1739194117057729?thread_ts=1739187757.565109&cid=CGE5S197C

@cprodhomme cprodhomme force-pushed the corrige-import-xls-des-questions branch 2 times, most recently from e0d0d87 to 17f06dd Compare February 10, 2025 14:09
@etienneCharignon etienneCharignon force-pushed the corrige-import-xls-des-questions branch from 17f06dd to 186bf23 Compare February 10, 2025 15:04
@cprodhomme cprodhomme force-pushed the corrige-import-xls-des-questions branch 2 times, most recently from b1055ae to df1c833 Compare February 11, 2025 13:33
@cprodhomme cprodhomme force-pushed the corrige-import-xls-des-questions branch from df1c833 to 3414ee6 Compare February 11, 2025 13:51
@etienneCharignon etienneCharignon merged commit b65ebbd into develop Feb 13, 2025
5 checks passed
@etienneCharignon etienneCharignon deleted the corrige-import-xls-des-questions branch February 13, 2025 08:41
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