Skip to content

fix(logging): use a worker-safe payload logger everywhere - #252

Merged
Ardnived merged 1 commit into
mainfrom
fix/worker-safe-payload-logger
Apr 10, 2026
Merged

Ardnived merged 1 commit into
mainfrom
fix/worker-safe-payload-logger

Conversation

@Ardnived

Copy link
Copy Markdown
Contributor

Summary

  • replace Payload's default logger with a console-backed worker-safe logger
  • use the same logger path in local, CLI, and Worker environments for consistent behavior
  • document the logger architecture and why the wrapper exists

Test Results

  • Integration tests: 635 passed, 2 skipped
  • Lint: passed
  • Types: passed
  • Build: reached static page generation/finalization successfully under escalated execution, but the command did not return control afterward in this environment

@Ardnived
Ardnived merged commit 9f5c848 into main Apr 10, 2026
Ardnived added a commit that referenced this pull request Aug 8, 2026
…om-creating it

Isolated with a bare REST create: Payload returns 201 with a doc id for a
registration whose event relationship targets a trashed doc, then silently
rolls the insert back — the row never lands (the sequence advances, the
count doesn't). The trash-aware id-map rebuild therefore made #252 (on the
archived-to-trash Floriade event #199) log "created" on every run while
never persisting.

Trashed events now stay out of the registration id-map, turning that row
into a visible, counted skip. The registrations floor is 2004 (2034 source
rows, less 27 junk-email registrants, 2 events with neither row nor merge
survivor, and this one), derived identically by the invariant spec, which
also pins the archived-on-import set to #75/#199. The stale per-collection
totalItems metadata (886-era counts) is updated to the 2026-08 dump.

Full wiped-DB reseed now verifies green on all six collections with exactly
the two permanent source-data errors (region:East invalid coordinates,
event #4958 with no Atlas area).

Co-Authored-By: Claude Fable 5 <[email protected]>
Ardnived added a commit that referenced this pull request Aug 8, 2026
…tings (#621)

* feat(atlas): refresh seed data from the 2026-08 dump and re-groom listings

Re-extracts seeds/atlas/data/ from the August 2026 Atlas dump (the previous
data ended October 2024), ports the #605 curation forward wherever the raw
source is unchanged, and re-grooms the delta under the same rules: 230 new
events groomed from scratch, ~100 upstream-edited events re-groomed three-way.

Data: 653 event rows (673 extracted, less 11 re-dropped #605 duplicates and 9
newly confirmed ones), 53 shared venues (6 new venue merges), 5 new countries,
curated schedule.weekday for 7 events whose own text names a different day.

Code: parseSchedule maps monthly_2nd/monthly_last to weekNumber 2/-1; the
importer reports events whose Atlas source row was deleted upstream (64 in
this refresh) for hand-trashing; extract.ts normalizes venue text fields.

Counts and invariants recomputed: expectedCounts (managers 495, regions 653,
users 1864, events 652, registrations 2007, clients 31) and the
atlas-events-data invariant suite.

Co-Authored-By: Claude Fable 5 <[email protected]>

* fix(atlas): resolve import collisions surfaced by the local end-to-end seed

The full local reseed exposed three gaps: Atlas holds five city rows twice
(new AREA_MERGES for Nottingham, Colombier, Compiègne, Martinique, and
Province Québec onto the Québec node) and a second row for the München
Am Lilienberg building (VENUE_MERGES 5063 → 458); event #762's groomed room
exceeded the field's maxLength of 100; and Atlas *renumbers* geo nodes
(Paris moved area 438 → 1208), so a stale doc under the old id blocks the
renumbered node's create on the unique slug/mapboxId —
reportUpstreamDeletedRegions now enumerates those docs for hand-trashing,
mirroring the events-side report.

Region counts follow: 595 source geo nodes + 52 shared venues = 647.

Co-Authored-By: Claude Fable 5 <[email protected]>

* fix(atlas): set verification floors to the proven-reachable counts

The clean-DB end-to-end reseed (stale docs removed, three converged runs)
leaves exactly two permanently-unimportable rows: region:East (#42, invalid
source coordinates) and event #4958 (no Atlas area, so no resolvable region).
regions 647 → 646 and events 652 → 651 so verification measures what the
import can actually reach; the invariant spec derives the regions floor with
the same -1.

Co-Authored-By: Claude Fable 5 <[email protected]>

* fix(atlas): re-attach merged duplicates' registrations to their survivors

The wiped-DB fresh seed surfaced two registration losses the update-mode runs
had masked: 54 registrations pointed at merged-away duplicate events and were
silently skipped (a merge is not a delete — #195's 39 registrants belong to
#603's class), and the paginated id-map rebuild couldn't see the 2 events that
import straight into the trash, dropping their registration too.

MERGED_EVENT_TARGETS now routes a removed row's registrations to its merge
survivor, the rebuild passes trash: true, and the verification floors are set
to fresh-state-proven values: events 649 (2 archived rows land in trash,
uncounted), registrations 2005 (only the 2 rows with neither event nor
survivor drop). The invariant spec derives the registrations floor with the
same rules.

Co-Authored-By: Claude Fable 5 <[email protected]>

* fix(atlas): skip the registration on a trashed event instead of phantom-creating it

Isolated with a bare REST create: Payload returns 201 with a doc id for a
registration whose event relationship targets a trashed doc, then silently
rolls the insert back — the row never lands (the sequence advances, the
count doesn't). The trash-aware id-map rebuild therefore made #252 (on the
archived-to-trash Floriade event #199) log "created" on every run while
never persisting.

Trashed events now stay out of the registration id-map, turning that row
into a visible, counted skip. The registrations floor is 2004 (2034 source
rows, less 27 junk-email registrants, 2 events with neither row nor merge
survivor, and this one), derived identically by the invariant spec, which
also pins the archived-on-import set to #75/#199. The stale per-collection
totalItems metadata (886-era counts) is updated to the 2026-08 dump.

Full wiped-DB reseed now verifies green on all six collections with exactly
the two permanent source-data errors (region:East invalid coordinates,
event #4958 with no Atlas area).

Co-Authored-By: Claude Fable 5 <[email protected]>

---------

Co-authored-by: Claude Fable 5 <[email protected]>
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