fix(rebuild-content): fetch topic-clusters/featured-topics/topics-gallery/tags so homepage bands bake fresh - #2081
Merged
Conversation
…lery/tags before Hugo bake The content rebuild only fetched a subset of build:all's feed chain (tutorials, advocates, homepage-shelves, verb/shelf-definitions), so the page-index BLOB was baked from the STALE committed data files. The homepage 'Explore' topic-clusters band rendered tutorials-only because the committed hugo/data/topic_clusters.json had empty items[] since 2026-07-25 and no rebuild path ever regenerated it. Add the four missing fetchers so every rebuild bakes from live backend data. Also refresh the committed topic_clusters.json snapshot (mixed items from the prod backend).
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
Homepage
/Explore topic-clusters band renders tutorials-only on PROD. Root cause:/is a CAPpage-indexBLOB (cds-cached) baked from the committedhugo/data/topic_clusters.json, which has had emptyitems[]since 2026-07-25. The band renderer falls back to a tutorials-only list whenitems[]is empty.Why it never got fixed by deploys/republishes:
rebuild-content.ymlonly fetches a subset ofbuild:all's feed chain — it was missingfetch-topic-clusters,fetch-featured-topics,fetch-topics-gallery,fetch-tags— so every content rebuild re-baked the page BLOB from the stale committed files. The fresh mixed data a localbuild:allproduces only ever reached approuter static, which/doesn't serve.Fix
rebuild-content.yml(mirroringbuild:all), each against the target env's srv, so the page BLOB bakes from live backend data in every mode. Durable — the file can't rot again.hugo/data/topic_clusters.jsonsnapshot (now mixed: tutorial/mission/group/learning-journey/sample/help-doc/discovery-mission) so the immediate bake is correct.After merge
Re-run
rebuild-content.yml env=prod mode=full; thepage-indexBLOB will bake mixed clusters. Bust thepage-indexcache tag if needed. Verified: PROD backend/build/topic-clustersalready returns mixed items (7-8/cluster).