Skip to content

Show when the source last changed a document, next to its date - #301

Merged
joepio merged 1 commit into
mainfrom
register-answers-carry-their-date
Sep 10, 2026
Merged

Show when the source last changed a document, next to its date#301
joepio merged 1 commit into
mainfrom
register-answers-carry-their-date

Conversation

@joepio

@joepio joepio commented Sep 10, 2026

Copy link
Copy Markdown
Member

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.

  • The entry's date stays the document's date (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.
  • Every document of the entry now carries the entry's last modification as date_modified (kept to the day, noon UTC).
  • The entity detail exposes dateModified (formatted) and dateModifiedIso; 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.

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).
@joepio
joepio merged commit 35f8e96 into main Sep 10, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant