Skip to content

Making Note.published settable and adding the migration metadata columns - #295

Open
aaronjae22 wants to merge 2 commits into
refactor/shared-test-helpersfrom
feat/settable-note-published
Open

aaronjae22 wants to merge 2 commits into
refactor/shared-test-helpersfrom
feat/settable-note-published

Conversation

@aaronjae22

@aaronjae22 aaronjae22 commented Sep 2, 2026

Copy link
Copy Markdown
Collaborator

Closes #294

Note.published was auto_now_add=True, which does not merely default the value so Note(published=some_date) was not working properly since it silently discarded the date. That made it impossible for an importer to preserve an object's original publication time, which LOLA §7.1.7 asks for as a SHOULD ("The destination SHOULD keep the 'published' timestamp rather than rewrite it"), since imported content is written through these same models. It also left the content collection ordering on a column where every row shared the same second, so any future cursor-based pagination over -published could skip or repeat rows

Also, Note carried only actor, content, published and visibility, so there was nowhere for the metadata §6.3 names — addressing, reply chain, canonical URL, original markup, breadcrumbs — to be preserved into.

@aaronjae22
aaronjae22 requested a review from lisad September 2, 2026 23:28
@aaronjae22 aaronjae22 self-assigned this Sep 2, 2026
@aaronjae22 aaronjae22 changed the title feat: Making Note.published settable and adding the migration metadat… Making Note.published settable and adding the migration metadata columns Sep 3, 2026
@aaronjae22
aaronjae22 marked this pull request as ready for review September 3, 2026 03:54
@aaronjae22
aaronjae22 force-pushed the feat/settable-note-published branch from 1dcc855 to 4b0d3fe Compare September 9, 2026 01:12
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.

Make published settable and enrich the content model for migration fidelity

2 participants