Versioning and updating datasets
This page is for editors and administrators who keep published datasets current. Every save of a content object in Exponential is a version, and the older versions stay in the history up to a limit (Content history). That is the basis for updating data in a way re-users can follow.
Contents
- Three kinds of change
- What the version history keeps
- Updating a dataset regularly
- Correcting an error
- Superseding and withdrawing
- Keeping more versions
Three kinds of change
| Change | Example | Recommended approach |
|---|---|---|
| Regular update | new month of figures | replace the file of the "current" distribution, or add a distribution per period |
| Correction | wrong values in last month's file | replace the file, explain the correction on the dataset page |
| Retirement | the data is no longer collected | keep the page, mark it withdrawn, say why and where to go |
What the version history keeps
- Each publish makes a new version; the previous published version becomes archived.
- Every version keeps its fields, including the file of a file field.
- The Versions page of an object (
/content/history/<object ID>) lists them and can Compare two versions. - The number of versions kept is limited:
content.ini [VersionManagement] DefaultVersionHistoryLimit=45by default, andVersionHistoryClass[]per class. When the limit is reached, the oldest archived version is removed to make room.
The history is an internal record for staff with content/versionread; it is not shown to visitors. If re-users
need older files, publish them as their own distributions.
Updating a dataset regularly
Two patterns, pick one per dataset:
One current file. One distribution "Current data", whose file you replace at each update. Re-users always fetch the same page. Keep the file name the same so the download address stays the same.
One file per period. A new distribution per month or year ("2025", "2026"). Old files stay downloadable at their own addresses; the dataset page lists all of them. This suits statistics that are cited by period.
In both cases update the dataset's "Last changed" date, and, if your catalog has one, its feed picks up a change notice (see "Feeds for new and changed datasets").
When the data comes from another system, that system can do the update itself: since Exponential 6.0.15 the REST API publishes a new version of a dataset page with the values and the file address it sends, and the history keeps every version (Keeping datasets current from another system).
Correcting an error
- Edit the distribution, replace the file, publish.
- On the dataset page, add a dated line under "Corrections": what was wrong, which period, when it was fixed.
- If the error was large, publish a news item and link it.
The old file stays in the version history, so you can show later exactly what was published before the correction.
Superseding and withdrawing
Do not remove a dataset page: removal makes its address answer "not found" and nothing redirects (Redirects and moved content). Instead:
- Add a notice at the top of the description: "Withdrawn on <date>: <reason>. Replaced by <link>."
- Change the update frequency to "no longer updated".
- Optionally move it to an "Archived datasets" folder; the old address redirects to the new place.
If a dataset must really go (for example personal data was published by mistake), remove the file, then decide on the page with your records officer. Removing a file from the current version does not remove it from older versions: remove those versions too in the Versions page, or the file stays in the history.
Keeping more versions
For dataset and distribution classes you may want a longer history than the default 45:
# settings/override/content.ini.append.php
[VersionManagement]
VersionHistoryClass[dataset]=200
VersionHistoryClass[distribution]=200Clear the INI cache afterwards (php bin/php/ezcache.php --clear-tag=ini). Lowering a limit later does not remove
versions by itself; php bin/php/cleanupversions.php --apply removes the archived versions beyond the limit. More
versions take more database and storage space; check with your administrator.
Related pages
- Content history
- Publishing, versions and the trash
- Redirects and moved content
- Free documentation: this page is free to copy, translate and improve under the GNU FDL 1.3.
Become an Exponential Partner
Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.