Repository navigation
fix(nav): keep content slugs without a Tutorials row in public /content/nav (#3168 regression) - #3175
Merged
Merged
Conversation
- 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
CI
unit testsonmainfail (run 45034574818): 5 failures acrosstest/lib/content-store.test.js(3) andtest/integration/content-pipeline-lifecycle.test.js(2), all/content/navreturning an empty catalog.Root cause
The 1.45.0 Private/Pre-release Tutorials refactor (#3168, commit
7388b2d20) extractedbuildNavTutorialsand addedtutMap[r.slug]to the result filter. That drops any published content slug lacking a visibility-passingTutorialsrow. Pre-#3168 the cold-start fallback built nav from content slugs alone (metadata best-effort), so a freshly-published tutorial whoseTutorialsrow 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:Tutorialsrow isROLE_GATED(newgatedSlugsset); slugs with no row fall through as public with default metadata — restoring pre-Pre-release tutorials: scope-gated browse navigator (follow-up to #3099) #3168 behavior while keeping the ROLE_GATED defense-in-depth.ROLE_GATEDrow (unchanged intent).Verification
srv/__tests__/navigator-visibility.test.jsalso green (gated feed unaffected).Bundle (
_shared/content.bundle.mjs) is gitignored; rebuilt in CI/deploy.