Issue 251
tech-debt: Explicit overrideAccess in the seed, and read the nav globals as a visitor
Back to our planOpen
cmstech-debtpriority: low
Type
tech-debt
Summary
Two follow-ups from #135 that the site module move (#241–#243) leaves open: explicit overrideAccess on the seed's writes, and reading the header and footer as a visitor.
Problem
src/endpoints/seed/index.tsmakes about 25 Local API writes withoutoverrideAccess.docs/project.mdasks for it on every Local API call; the default istrue, so behaviour is right but implicit.src/modules/site/data/globals.tsreads the header and footer withoverrideAccess: true. The plan from the #192 review (comment on #135, 2026-10-21): expireglobal_headerandglobal_footerfromrevalidatePageandrevalidatePostwhen a linked document changes, then read withfalse.
Proposed fix
Set overrideAccess: true with a one-line reason on each seed write (or a small seed helper that does). Add the global tag expiry to the page and post revalidate hooks with tests, then switch the globals read to false and pin it in a test.
Acceptance criteria
- Not done: Every Local API call in the seed sets
overrideAccessexplicitly. - Not done: Header and footer are read with
overrideAccess: false; changing a linked page or post refreshes the nav (tested). - Not done:
docs/project.mdno longer names #135 for these.
Area
cms
Priority
low
Generated by Claude Code, opens in a new tab