vienalatina/apps/board/tests
Claude ae2e86a76a
Posts in the order they were written, both halves
Two different causes that look like one bug, and neither is fixed by
the other.

The site. The editor wrote `date: 2026-07-31` with no clock, so
everything published on one day was byte-identical in the field Hugo
sorts by — and Hugo fell through to its next key, the title. A day came
out alphabetised, permanently, because a rebuild changes nothing about
the files. None of the four post feeds applied an explicit sort either,
so all four inherited it.

`stamp()` attaches the clock, in `frontmatter_for`, which every
publishing path goes through. The day is still the one whoever publishes
chose and the URL still carries only the day, so nothing anyone linked
to moves. An edit keeps the time the file already had as long as the day
has not changed — a typo correction must not carry a year-old post to
the top of the page, which is what the hidden date_stamped field is for.

`partials/posts-ordered.html` is the other half: the order stated once
and called from the home page, the section list, llms.txt and the
BlogPosting block. `first N` goes on its result, never its input.

Both halves are needed, and I checked that rather than assuming it:
built with Hugo 0.135.0 and the pipeline's flags, two posts dated the
same day come out 11:00 before 09:00; with the clock removed and the
partial left in place, the alphabetically-first one is back on top.

The members area. Nothing had a tiebreak. `created_at` is
`datetime('now')` — one-second resolution — so two rows written in the
same second compared equal and SQLite was free to return them in either
order. Every ordering ends in the primary key now; activity.py had it
already and was the model.

Two disagreements went with it: Inicio's wall panel orders by `pinned`
like the wall, and its own-submissions panel uses the ranking
Publicaciones uses. The two moderation queues stay oldest-first on
purpose — a queue is not a feed.

And the public agenda sorts a day's events by the hour, which the
private calendar has done since it was written.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NizVpJ2dwzCbjCrTLCjeHn
2026-10-13 18:13:01 +00:00
..
__init__.py Add a members area: roles and an internal board 2026-09-22 10:57:18 +00:00
conftest.py A superadministrator above the responsable 2026-10-06 11:55:41 +00:00
serialize_harness.js The writing box shows the formatting, and raw HTML stops reaching the site 2026-10-06 20:07:18 +00:00
test_auth.py One front door: the members area owns its own logins 2026-09-29 08:25:25 +00:00
test_board.py A title nobody has to write, a fold, a switch and a button 2026-10-06 20:58:33 +00:00
test_brand.py Identidad, tipografías, y tres herramientas de administración 2026-10-06 12:18:04 +00:00
test_content.py Posts in the order they were written, both halves 2026-10-13 18:13:01 +00:00
test_deployment.py Hand the mail settings to the container, and rebuild on deploy 2026-09-25 18:42:39 +00:00
test_editor.py The writing box shows the formatting, and raw HTML stops reaching the site 2026-10-06 20:07:18 +00:00
test_events.py The calendar is a month again, at every width 2026-10-13 18:05:31 +00:00
test_invites.py A superadministrator above the responsable 2026-10-06 11:55:41 +00:00
test_members.py A superadministrator above the responsable 2026-10-06 11:55:41 +00:00
test_messages.py A superadministrator above the responsable 2026-10-06 11:55:41 +00:00
test_migrations.py A post can say that a machine wrote it 2026-10-06 20:19:06 +00:00
test_navigation.py Identidad, tipografías, y tres herramientas de administración 2026-10-06 12:18:04 +00:00
test_profiles.py A superadministrator above the responsable 2026-10-06 11:55:41 +00:00
test_reactions.py A superadministrator above the responsable 2026-10-06 11:55:41 +00:00
test_submissions.py A title nobody has to write, a fold, a switch and a button 2026-10-06 20:58:33 +00:00
test_templates.py The calendar is a month again, at every width 2026-10-13 18:05:31 +00:00
test_tools.py Estado del sistema was lying about the backups 2026-10-06 14:03:30 +00:00
test_uploads.py Let members post pictures, and back them up 2026-09-28 09:02:18 +00:00