Show when the source last changed a document, next to its date - #301
Merged
Conversation
A raadsvragen entry in iBabs is dated the day the questions were asked; the answer is added to the same entry weeks later, and iBabs dates its documents no further than the entry. So the answer letter of 25 March showed as 28 February (#294). The entry's date stays the date, which is what people search by; every document of the entry now carries the entry's last modification as date_modified, the entity detail exposes it as dateModified, and the sheet shows "bijgewerkt <date>" when it differs from the date (also the first of the dates asked for in #296).
This was referenced Sep 10, 2026
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.
Addresses #294 and the first part of #296.
An iBabs register entry has one date, the day it was entered: for raadsvragen the day the questions were asked. The answer is added to the same entry weeks later, and iBabs dates documents no further than the entry, so Harderwijk's answer letter of 25 March showed as 28 February. Checked against the raw entry:
Datum: Feb 28 2026, two documents,MutationDate: 2026-03-25T12:52.sortDate): it is the date of the dossier and what people search and sort by; making it the modification date would misdate the questions the other way.date_modified(kept to the day, noon UTC).dateModified(formatted) anddateModifiedIso; the sheet shows "bijgewerkt 25 maart 2026" next to the date when the two differ. Documented in API.md.Takes effect for register documents as they are re-imported (the daily runs cover recent entries; older ones on their next touch). Test added for the two-document entry.