Publishing Decidim participation data as open data

Publishing Decidim processes, proposals and results as open data needs a scheduled export, a reviewed file layout and a portal or dashboard that reuses the files. This page explains how the pieces fit and what to plan.

On this page

How to publish Decidim participation data as open data

Publishing Decidim participation data as open data means scheduling Decidim to generate downloadable files of process, proposal and result data, then making those files available in a place where others can find, download and reuse them. The supported route is a scheduled export of CSV files from Decidim, which are then loaded into a data portal such as CKAN or read directly by a dashboard. Decidim's job is to produce the files on a schedule. The portal's job is to catalog them, store them under a stable address, document their meaning and, where needed, load them into a queryable store. Keep that boundary clear in your plan, because a problem in the export (missing rows, a changed column) and a problem in the portal (broken links, stale datasets) need different owners and different checks.

Before you schedule anything, confirm the exact export options, the file names and the column contents against the version you run. Decidim's export behavior is tied to its release line, and the 0.32 and 0.31 branches are the two that receive security updates today, so check the Decidim releases page and the installed component settings rather than relying on older guides. Decide which spaces and components are public, which fields are personal data that must be removed or aggregated, and who approves each publication. Your data protection and records officers should sign off on the column list before the first scheduled run, not after the first file has been downloaded by a third party.

What you need before scheduling the export

The export depends on four things lining up: a supported Decidim branch, a background job system that runs scheduled tasks, storage and access controls for the generated files, and a publishing target whose requirements you have checked. Confirm each one before you write the schedule, because a gap in any of them stops the export or exposes data you did not mean to publish.

Platform version

Run a Decidim branch that still receives security updates. Until version 1.0, only the last two minor versions are supported, currently 0.32.x and 0.31.x, so a 0.30.x or older instance needs an upgrade plan before you add a public data feed. Check the Ruby and Node versions for your branch in the installation docs, and confirm the export behavior in the release notes for the exact version you run, since the export format and task names can change between minor releases.

Security policy

Job processing

Scheduled exports run through the background job system, so production must have ActiveJob workers running and a scheduler that triggers the export task at the times you choose. Confirm that the workers restart after a deploy and that failed jobs are visible to administrators. An export that silently fails leaves a portal showing stale data with no warning, so set up an alert on the last successful run.

Installation docs

File hosting and access

Generated files are stored through ActiveStorage, so decide whether they stay on local disk or move to object storage before the first run. Decide who can read the files directly, whether the download links are public, and how long old exports remain available. Review the file list for each component before publishing, because some fields may contain personal data that a public file would expose permanently.

Licensing and data review

Decide the license under which the open data is released and state it in the dataset metadata. Have a privacy owner review which fields leave the platform, including names, contact details, free-text comments and verification-related attributes. Remove or aggregate anything that identifies a participant. Record the review decision so the next export cycle can be checked against it.

Portal account

The publishing target needs an account with rights to create datasets, upload resources and schedule updates. Use a dedicated service account rather than a personal login, store its credentials in your secrets manager, and limit its rights to the one organization that owns the dataset. Confirm how the portal handles resource updates and whether it keeps dataset history, because that decides how you replace files on each run.

Configuring the export task step by step

This sequence takes a Decidim organization from an agreed list of spaces and components to a scheduled open data export that has been checked against the admin panel. Each step ends with a check so the team can confirm the published files match what participants see before any data goes public.

  1. Confirm the spaces and components to publish

    The participation or open data lead lists each process, assembly and initiative to publish, along with the components inside them, such as proposals, meetings, surveys, participatory budgets and accountability results. Confirm the platform version is one that still receives security updates, which means 0.32.x or 0.31.x according to Decidim's security policy, and check the version against your running instance. The step is done when the inventory is signed off by the people who own each space and the version is recorded.

  2. Enable the export and limit its scope

    A Decidim administrator turns on the open data export for the organization and restricts it to the spaces named in the inventory. The exact settings location depends on your version, so confirm it against the documentation for the release you run before changing anything in production. Use a staging copy first where possible. The step is done when a test space appears in the export configuration and an unlisted space does not.

  3. Schedule the export through background jobs

    The export runs as a background job, so the platform's job processing must be working in production. Decidim's production setups use ActiveJob for background work, so confirm your job workers are running and that your deployment's scheduled-task mechanism triggers the export at the times you choose. Ask your platform team to confirm the scheduler details for your installation method, whether manual or Docker. The step is done when a scheduled run appears in the job logs without errors.

  4. Run one manual export and inspect the files

    Trigger the export by hand once, download the output and open each file. Check the file names, column headers, character encoding and date formats, and confirm the headers match the field documentation for your version. Look for raw HTML in free-text fields, email addresses or other personal data that should not be published, and any fields that are empty when they should contain values. The step is done when each component has a file and the team has written down any fields to remove or transform.

  5. Compare counts and test exclusions

    For each published component, compare the number of records in the file with the count shown in the admin panel for the same filters. Then test the edge cases on purpose: create or pick a hidden proposal, a moderated or reported item, an unpublished meeting and a draft survey, and confirm that none of them appear in the export. Mismatches usually come from filters or state values, so record the cause before moving on. The step is done when counts match and every excluded item is absent from the files.

  6. Decide the publication location

    Choose where the files will be published: a download location on the Decidim host, or a data portal such as CKAN, where datasets, metadata and resources are managed separately. Confirm who owns the portal, what license applies to the published data, and who signs off on the personal data review. If you use a portal, check its ingestion and metadata requirements before the first upload. The step is done when the publication location, license and owner are written in the data governance record.

  7. Set the refresh cadence and review it

    Set how often the export refreshes so it follows the moderation and publication cycle of your spaces, for example after a consultation closes or after results are approved. Keep the schedule in the operations runbook with an owner for each change. After the first scheduled run, compare its output with the manual export from the earlier step to confirm the scheduled job behaves the same way. The step is done when the cadence is documented, the first scheduled output matches the manual check, and a reviewer is assigned to each future run.

What the exported files include and exclude

Process and assembly records describe what the participation is about: titles, descriptions, phases, dates and the components attached to each space. This is usually the lowest-risk data to publish, but descriptions are written by staff and sometimes by external partners, so they still need a read-through before release.

  • Structure metadata: space titles, descriptions, start and end dates and the phase each process is in.
  • Component listings: which components, such as proposals or meetings, each space uses, which helps dashboards show where participation happened.
  • Staff-written text: descriptions and announcements may name officials, consultants or vendors, so decide whether those names should appear.
  • Private and draft spaces: confirm whether private spaces and unpublished drafts are excluded from the export.

Check on the installed version that private and draft spaces are filtered out and that the field list matches what you documented.

How exported files move from Decidim to a data portal

The flow starts with a Decidim background job, which runs the export task and writes the resulting files to a storage location the host can reach. A harvester pulls those files into a CKAN portal, or a team uploads them by hand, and CKAN can load tabular resources into its DataStore for the Data API. Readers reach only the public portal, never the Decidim host. At each hand-off, check who can write to the storage location, what the harvester is allowed to fetch, and whether the published files are the ones you reviewed before release.

Exported files cross three trust boundaries before readers see them.

Mapping Decidim fields to portal metadata

This table maps the main Decidim concepts in a participation export to the dataset, resource and metadata fields a portal expects, with notes on identifiers, controlled vocabularies and fields to drop for privacy. Treat each row as a starting point: the mapping is a draft until someone compares it column by column with an export file from your own instance.

Decidim conceptPortal fieldHandling note
Process or participatory spaceDataset (package) title, description and organizationKeep one stable identifier per space so reruns update the same dataset instead of creating copies.
Component (meetings, proposals, budgets)Resource per component export, with component type as a tag or fieldUse a fixed list of component types agreed with data owners. Confirm which components your export includes.
ProposalResource rows keyed by proposal identifierThe identifier must persist across exports so reused datasets stay consistent. Confirm it is present in every export file.
Status and stateControlled vocabulary fieldMap Decidim states to a fixed published list. Check that every state value in the export appears in the list.
Dates (published, closed, meeting start)Date fields in a documented format with time zoneConfirm the time zone and date format in the export before mapping. Mixed formats break filtering in portals.
ResultLinked resource or result type fieldGive results their own identifier and link them to the parent proposal or process where the export allows.
Author names, emails and contact detailsDrop from the published resourcePersonal data should not reach a public portal. Review free-text fields as well, since participants may type identifiers into them.
Individual votes or signaturesDrop per-person records; publish aggregate counts onlyConfirm whether the export includes per-person data and remove it before publication.
Dataset license and attributionLicense field from the portal's controlled listAgree the license with the publishing organization before the first export is released.

Reusing the files in CKAN and dashboards

CKAN turns the published files into queryable data when they are loaded into its DataStore, which stores structured data from resources in a separate PostgreSQL database and exposes a Data API for filtering, full-text search, pagination and SQL queries. The loading step is handled by XLoader, the officially supported tool, because DataPusher is now legacy. Confirm before go-live that the loader is configured for the file formats your export produces, and decide which datasets should be loaded into the DataStore and which should only be offered as downloads. Plan for a read-only database user for public queries, since the DataStore is designed with a separate write user and a read-only user.

CKAN also carries catalog metadata in a standard form. The ckanext-dcat extension provides DCAT-AP v1, v2 and v3 schemas, DCAT RDF endpoints and an RDF harvester, which matters if your portal must interoperate with other national or regional catalogs. Extension support depends on the CKAN version, and the extension is listed as supported on CKAN 2.10 and 2.11, so check the compatibility of the extension and profile you choose against the CKAN release you run before you commit to a metadata schema. Ask the implementer to confirm that choice in writing.

Dashboards can read the CSV files directly or query the CKAN Data API, and the choice shapes what the dashboard can do. Direct CSV reads suit snapshots, while API queries suit filtered or paginated views of large resources. Decide which approach each dashboard uses, and who owns the refresh schedule. Building Decidim's own Grafana dashboards is a separate topic and is not covered here, so treat that setup as its own piece of work.

Security and privacy controls for public files

Open data exports leave your platform and can be copied indefinitely, so the controls have to sit before the file is written and around the place it is stored. The cards below cover what to review, who can reach the files, how long they live, and how the underlying Decidim instance stays on a supported security branch.

Review personal data before publication

Exports reflect whatever participants wrote into proposals, meetings and processes, including names, contact details or personal stories posted in comments. Before the first scheduled export runs, list which fields each export includes and decide which ones must be removed or excluded for public release. Check a sample file against that list after each change to components or registration fields, because new fields can appear in an export without anyone deciding they should be public.

Restrict access to the export location

Decide whether the export directory is public, behind authentication, or readable only by the data portal's ingestion process. The files live in the storage your Decidim instance writes to, so the permissions on that bucket or directory, and any signed URL settings, decide who can download them. Test access from an unauthenticated session and from a second organization account to confirm that nothing unintended is exposed.

Set retention and deletion for old exports

Every scheduled run produces a new set of files, and old copies can outlive the data they describe. Write down how long each export is kept, who deletes it, and how deletion reaches downstream copies such as a data portal or a dashboard cache. Ask your provider how the export task handles previous files and confirm that deletion behavior in a staging environment before relying on it.

Protect unpublished results

Results, budgets and outcomes often sit in a component before the organization is ready to announce them. An export that runs on schedule can publish them early if the filter for visibility is wrong or the component is still in draft. Confirm which publication states are included in the export and run a test against a dummy process in draft to verify that unpublished items stay out of the files.

Keep Decidim on a supported branch

Until version 1.0, Decidim supports only the last two minor versions with security updates, which currently means 0.32.x and 0.31.x. Running 0.30.x or earlier means security fixes are no longer provided for that line. Report suspected vulnerabilities to security@decidim.org or through GitHub Security Advisories. Decidim allows implementers a grace period of 2 months for standard vulnerabilities and 4 months for critical ones before details are disclosed, so plan patch windows around those deadlines.

Patch grace periods
2 and 4 months
Decidim security policy

Log export runs and access

Keep a record of each scheduled export: when it ran, which version of the instance produced it, which fields were included, and where the files were written. Pair this with access logs on the storage location so you can answer who downloaded a file and when. Store these logs outside the public export location and set a retention period for them that your privacy notice and records policy support.

Common export and publishing failures

This table lists the failures teams most often meet when they schedule Decidim exports and load them into a dashboard or data portal. Each row gives the likely cause and the first fix to check. Treat the upgrade row as a required step before any minor version change, because export structure and stored data can shift between releases.

FailureLikely causeFix
Scheduled export never runsBackground job processing (ActiveJob) not configured, or no worker process picks up queued tasksConfigure the job backend and worker in production, then confirm a new file is written after the next scheduled run
Hidden content still appears in filesFile generated before a moderation action, or not regenerated after content was hiddenRe-run the export after moderation, and confirm with your admin team how hidden and removed items are handled
Private or unpublished items in public filesExport scope does not match the visibility of the space or componentReview a sample file against each space's visibility before publishing, and limit the export to public components
Broken characters when CSV opensEncoding mismatch between the file and the spreadsheet or portal import settingsTest with the tool your users open files in, and set the import encoding explicitly, usually UTF-8
Columns shift or rows splitDelimiter or quoting problems in free-text fields such as proposal bodies that contain commas, quotes or line breaksParse with a CSV-aware reader rather than splitting on delimiters, and test with a record containing those characters
Portal rejects or times out on large filesLoader limits or timeouts on big resources; DataPusher is legacyLoad through XLoader, split large exports by component or period, and confirm limits for your CKAN version
Stale or mismatched data after an upgradeNew minor version changed export fields or database structure, or the portal still holds the previous schemaBack up first, upgrade one minor version at a time, regenerate the export, and reload the portal resource
Upgrade notes not checkedExport jobs and dashboards keep running on assumptions from the previous versionRead the upgrade notes for every minor version on the path before the upgrade, and repeat the export check afterward

Questions buyers ask before publishing open data

What drives the cost of publishing Decidim data as open data?

The cost depends mainly on how much data is in scope, how many distinct datasets must be shaped, how much privacy review the data needs, which portal receives it, and how often it is published. Each of these adds configuration, testing and review work. Cost is one-time for the initial build (export scheduling, dataset mapping, portal setup and review) and recurring for upkeep such as schema changes, portal upgrades and periodic review. Ask any provider for a quote that lists these components separately, including which items are included in the fixed scope and which are optional retainers.

How long does it take to publish Decidim open data?

The duration depends on the agreed scope and on your owner's review cycle, not on a fixed number. The build itself moves quickly when the datasets are clear, but data owners, legal sign-off and hosting decisions often set the pace. Before you commit, ask for a written timeline that marks which steps wait on your reviewers and how many review rounds are included. Most engagements are fixed-scope, so the scope and timeline are agreed in writing before work starts.

What does our organization need to provide for an open data project?

You need to name data owners for each process, proposal and result dataset, a legal or privacy reviewer who can approve what is published, and a hosting decision for the portal and the export task. Your team should also confirm which fields are personal data and which are safe to release. On the technical side, the Decidim instance must be reachable from where the export runs, and someone must own the server, backups and upgrades. Gaps in any of these usually delay the project more than the build does.

Which parts of the export need a privacy review before publication?

Any field that can identify a participant needs review before it leaves Decidim, including names, contact details, free-text comments that quote people, and combinations of fields that identify small groups. Confirm with your privacy lead which personal data your deployment holds and which legal basis covers publication. Decide whether the export should include only aggregated counts for some components. Record the decision, because auditors and data protection officers will ask how each dataset was approved.

Can our own team publish Decidim open data without a partner?

Yes, if you have engineers who can run a Rails application and a data portal, and staff who can own the review process. The main work is configuring the export schedule, checking the files the export produces against your review rules, loading them into a portal and keeping that setup patched. Teams without portal or privacy experience often find the review and upkeep take longer than the technical setup. Assess your skills in those areas honestly before deciding.

Which data portal should we use to host the published files?

CKAN is an open-source data management system for data hubs and portals, licensed under the GNU Affero General Public License v3.0, and used by public sites such as catalog.data.gov. Choose a portal based on your hosting constraints, the metadata standards your public bodies require, and the staff who will maintain it. Confirm the CKAN version you plan to run, since CKAN supports only its latest patch of the current minor version and the previous minor version for security fixes. Dashboards such as Grafana or Superset can read the same files without a portal, so decide whether you need a catalog at all.

How often should the Decidim export run, and what does that cost in upkeep?

Set the cadence based on how often participants change the data and how often reviewers can approve a release. A daily or weekly schedule suits active processes, while results may only need publication once a phase closes. Each run adds load on the Decidim instance and needs monitoring, and each new dataset or schema change needs a test. Ask providers how they will handle failed runs, when a Decidim upgrade changes the export, and who is notified. Upkeep is recurring, so include it in the quote rather than treating it as a one-time cost.

Keeping exports working through Decidim upgrades

Decidim upgrades move one minor version at a time. The update guide asks you to step through each minor release, for example 0.29 to 0.30 before 0.31, and to follow the upgrade instructions published with each release, because some releases change database structures. Take a database backup before every step, since that backup is the clean way back if a migration fails. Treat each minor version as its own change window with its own test pass, and do not combine several minor versions into one run, because a failure would be hard to attribute to a single change.

Export output is the part most likely to surprise downstream users. The open data files are generated by the application, so a new minor version can change which columns appear, how values are formatted, or how list fields are encoded. Do not assume the files stay identical. Check each release's notes for changes that touch processes, proposals or results, then confirm the effect against your own output on a staging copy of production data. Generate the files for every process and component you publish and compare column headers, row counts and value formats with the files from the version you run today.

Make that comparison a standing step in the upgrade plan. Record which export jobs you schedule, the file layout each one produces, and the dashboards, portals or CKAN DataStore loads that read them, so the person running the upgrade knows whom to notify before production. Illustrative example: a renamed column in a proposals file would leave a dashboard panel empty while the export job still reports success. In any quote or written scope, ask who owns the comparison, who signs off the result, and how long the rollback path stays open. If a change appears, decide whether to update the consumers or hold the old layout, and document that decision against the version it applies to.

How DeployOpen works on this

DeployOpen plans, implements, documents and supports self-hosted open-source platforms inside your own infrastructure. For Decidim open data publishing, that means agreeing the export scope in writing first, building the export and portal path in your environment, and handing over the configuration, tests and runbooks your team needs to keep it running.

How we scope

  • Written scope listing which Decidim processes, proposals and results are published and which fields are excluded.
  • Agreed schedule for export generation, file formats and the reuse targets such as dashboards or a data portal.
  • Confirmation of the Decidim version in use, since supported releases and upgrade paths shape the export work.

How we build

  • Configure the scheduled export task and background job processing in the Decidim deployment you operate.
  • Check the downloaded files for completeness, personal data exposure and consistent column definitions before publication.
  • Connect the published files to the dashboard or data portal you choose, tested against a staging copy first.

How we hand over

  • Documentation of the export schedule, included fields, exclusions and the steps to change them.
  • Test records and checks your team can rerun after upgrades or changes to the Decidim instance.
  • Runbook covering failed exports, storage locations and who approves changes to published data.

How we support

  • Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts.
  • Ongoing support, upgrades and continuous testing are available as a retainer after handover.
  • Quotes follow from the written scope, so ask for the export fields, portal target and hosting details to be listed.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.