Skip to content

fix(rebuild-content): fetch topic-clusters/featured-topics/topics-gallery/tags so homepage bands bake fresh - #2081

Merged
jung-thomas merged 1 commit into
mainfrom
fix/rebuild-content-homepage-feeds
Aug 28, 2026
Merged

fix(rebuild-content): fetch topic-clusters/featured-topics/topics-gallery/tags so homepage bands bake fresh#2081
jung-thomas merged 1 commit into
mainfrom
fix/rebuild-content-homepage-feeds

Conversation

@jung-thomas

Copy link
Copy Markdown
Contributor

Problem

Homepage / Explore topic-clusters band renders tutorials-only on PROD. Root cause: / is a CAP page-index BLOB (cds-cached) baked from the committed hugo/data/topic_clusters.json, which has had empty items[] since 2026-07-25. The band renderer falls back to a tutorials-only list when items[] is empty.

Why it never got fixed by deploys/republishes: rebuild-content.yml only fetches a subset of build:all's feed chain — it was missing fetch-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 local build:all produces only ever reached approuter static, which / doesn't serve.

Fix

  1. Add the four missing fetchers to rebuild-content.yml (mirroring build: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.
  2. Refresh the committed hugo/data/topic_clusters.json snapshot (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; the page-index BLOB will bake mixed clusters. Bust the page-index cache tag if needed. Verified: PROD backend /build/topic-clusters already returns mixed items (7-8/cluster).

…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).
@jung-thomas
jung-thomas merged commit 85d4118 into main Aug 28, 2026
3 checks passed
@jung-thomas
jung-thomas deleted the fix/rebuild-content-homepage-feeds branch August 28, 2026 23:23
jung-thomas added a commit that referenced this pull request Aug 29, 2026
…2081-2083

chore: sync main into DEV (reconcile hotfixes #2081 + #2083)
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