Survey responses open-data export#15492
Merged
Conversation
Member
Author
|
@andreslucena and @alecslupu this is now ready to review. |
alecslupu
suggested changes
Nov 14, 2025
Contributor
alecslupu
left a comment
There was a problem hiding this comment.
Almost perfect. Some I18n things and we are good to go.
decidim-surveys/lib/decidim/surveys/user_responses_serializer.rb
Outdated
Show resolved
Hide resolved
decidim-surveys/lib/decidim/surveys/user_responses_serializer.rb
Outdated
Show resolved
Hide resolved
alecslupu
suggested changes
Nov 18, 2025
Contributor
alecslupu
left a comment
There was a problem hiding this comment.
I would expect something like this
decidim-surveys/lib/decidim/surveys/user_responses_serializer.rb
Outdated
Show resolved
Hide resolved
Co-authored-by: Alexandru Emil Lupu <contact@alecslupu.ro>
alecslupu
reviewed
Nov 18, 2025
Co-authored-by: Alexandru Emil Lupu <contact@alecslupu.ro>
alecslupu
approved these changes
Nov 18, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🎩 What? Why?
This makes the available the publication of survey responses through Open Data exports.
Exports published would only before from being included in the Open Data export thanks to a new component created within Surveys.
📌 Related Issues
Testing
(Before testing make sure you have responses available via seeds in a survey component via any space)
(Click the export button again, if you get an export Open Data job error first time)
Further Testing
Since the Open Data job in development caches each export, publishing more responses won't change the contents of the export.
Head back to the admin where you have responses in the survey component you're testing and set to publish one more set. Kill the server and run the
rails consolewith the following commands:Decidim::Organization.first.open_data_files.each(&:purge)followed by
Decidim::OpenDataJob.perform_now(Decidim::Organization.first)If successful, will purge any open-data files cached and perform any pending open-data jobs.
Close the
rails consolethen run the server (bin/dev). Go to the footer and repeat steps 6, 7, 8 and 9. See the CSV export with new publications of responses (or unpublished if you performed that action).📷 Screenshots
Export in footer:

Published responses (eg first set: "Soluta voluptatem quis. Accusamus consequatur numquam. Quisquam sapiente quos."):
Export CSV: