Conversation
decidim-dev/lib/decidim/dev/assets/.~lock.import_proposals.xlsx#
Outdated
Show resolved
Hide resolved
decidim-proposals/lib/decidim/proposals/proposal_answer_creator.rb
Outdated
Show resolved
Hide resolved
decidim-proposals/lib/decidim/proposals/proposal_answer_creator.rb
Outdated
Show resolved
Hide resolved
ahukkanen
left a comment
There was a problem hiding this comment.
Some review comments when going through.
…ecidim into feature/import_proposal_answers
- Refactors the import view to only consider a single importer as this is the desired way it works - Adds message configurations to the importer manifests that define different messages during the import process for each importer - Improve some of the messages, make them more understandable
When the `prepare` method has not been called before `verify`, the data headers were not available yet.
|
Just to note here that the bugs/issues are already fixed and we have also added better errors in these situations:
Feel free to test in the QA environment linked above. |
|
Hi! I tried to import some proposals answers but I get an error: I have the same error with CSV and XLSX. This is the file that I'm using: proposals-answers-example.csv, in this process: https://pr8271.decidimqa.mainiotech.fi/admin/participatory_processes/pb-2022/components/3/imports?name=answers Also regarding the wording of the error, Grammarly says that it should be "Found an error in the import file on lines 3 and 5. Please check that these lines are formatted correctly and contain valid records." |
|
@andreslucena Your import document contains amendment IDs on lines 3 and 5. You cannot import answers for amendments, so these lines are incorrect. We'll fix the wording with the error message. |
|
@andreslucena The wording is now fixed for the error message. |
You're right, after removing those lines everything works as expected. I thought that somehow I got to import answers to Amendments because that's what I've seen in the admin panel: But I think it's actually an unrelated bug (from the seed contents), so we can skip that for now. Ready to be reviewed by you @decidim/maintainers |
leio10
left a comment
There was a problem hiding this comment.
Huge and outstanding job! 👏🔝

🎩 What? Why?
Imports proposal answers from file (excel, csv, json).
📌 Related Issues
https://meta.decidim.org/processes/roadmap/f/122/proposals/14922
Testing
📋 Checklist
🚨 Please review the guidelines for contributing to this repository.
docs/.📷 Screenshots