Skip to content

fix(nav): keep content slugs without a Tutorials row in public /content/nav (#3168 regression) - #3175

Merged
Thomas Jung (jung-thomas) merged 3 commits into
DEVfrom
fix/nav-empty-catalog-3168
Nov 22, 2026
Merged

Thomas Jung (jung-thomas) merged 3 commits into
DEVfrom
fix/nav-empty-catalog-3168

Conversation

@jung-thomas

Copy link
Copy Markdown
Contributor

Problem

CI unit tests on main fail (run 45034574818): 5 failures across test/lib/content-store.test.js (3) and test/integration/content-pipeline-lifecycle.test.js (2), all /content/nav returning an empty catalog.

Root cause

The 1.45.0 Private/Pre-release Tutorials refactor (#3168, commit 7388b2d20) extracted buildNavTutorials and added tutMap[r.slug] to the result filter. That drops any published content slug lacking a visibility-passing Tutorials row. Pre-#3168 the cold-start fallback built nav from content slugs alone (metadata best-effort), so a freshly-published tutorial whose Tutorials row isn't written yet still appeared. The new join made it vanish — in tests and in the real cold-start/fallback path.

Fix

packages/content/content-store.js:

Verification

npm test -- test/lib/content-store.test.js test/integration/content-pipeline-lifecycle.test.js
  Test Files  2 passed (2)
       Tests  72 passed | 5 skipped

srv/__tests__/navigator-visibility.test.js also green (gated feed unaffected).

Bundle (_shared/content.bundle.mjs) is gitignored; rebuilt in CI/deploy.

- Bump .deploy/mta.yaml 1.44.4 -> 1.45.0 (minor; net-new feature per version
  convention). Deploy source of truth per deploy-mta.cjs.

Headline: Private / Pre-release Tutorials (#3099, #3168) — tutorial authors
can mark a tutorial's visibility (listed / non-listed / role-gated) so
pre-release content is hard-gated behind the new Tutorial.PreRelease XSUAA
scope, excluded from the public navigator, search index, sitemap.md,
llms-full.txt and semantic_search (closes the #3099 leak), and served through
a scope-gated approuter route with a fail-closed nav handler. Admins edit
visibility from the Admin UI; a QA-style pre-release build channel + navigator
branch + e2e smoke back it.

Also carries scheduler + CI hardening:
  #3171 scheduler auto-recovers dead-lettered outbox rows
  #3168 allow empty pre-release browse grid in verify-build; route-drift
        allowlist for /content/tutorials-prerelease/_nav
  #977  fix unit-test CDS singleton pollution (anonymize cascade + featured-
        topics job)
  #3112 navigator search count-guard design
  #3165 docs sidebar registration fix

Promotes origin/DEV (93572a6) to main.
release 1.45.0: Private / Pre-release Tutorials (DEV → main)
…nt/nav

The #3168 prerelease refactor added `tutMap[r.slug]` to the buildNavTutorials
result filter, which dropped any published content slug lacking a
visibility-passing Tutorials row. This regressed the cold-start fallback
(pre-#3168 it required no Tutorials join) and emptied /content/nav for
freshly-published tutorials whose Tutorials row isn't written yet.

Public feed now excludes only slugs whose Tutorials row IS ROLE_GATED (new
gatedSlugs set), keeping no-row slugs as public — preserving the ROLE_GATED
defense-in-depth while restoring the fallback. Gated feed still requires a
ROLE_GATED row.

Fixes 5 unit failures in content-store.test.js + content-pipeline-lifecycle.test.js.
@jung-thomas
Thomas Jung (jung-thomas) merged commit 6927c79 into DEV Nov 22, 2026
5 checks passed
@jung-thomas
Thomas Jung (jung-thomas) deleted the fix/nav-empty-catalog-3168 branch November 22, 2026 16:05
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