Skip to content

Fix stale curated-resource pages surviving data refreshes - #874

Open
LukasWallrich wants to merge 1 commit into
mainfrom
fix/issue-873
Open

Fix stale curated-resource pages surviving data refreshes#874
LukasWallrich wants to merge 1 commit into
mainfrom
fix/issue-873

Conversation

@LukasWallrich

Copy link
Copy Markdown
Contributor

What Problem This Solves

Retired curated-resource rows could remain publicly accessible under /curated_resources/. The generator rewrote current rows without deleting files removed from the source sheet, and the deployment workflow overlaid generated artifacts on the checkout without clearing the generated directory.

Why This Change Was Made

  • Remove generated resource files before regenerating the collection, while preserving _index.md.
  • Clear the generated resource directory before the data artifact is unpacked during deployment.

This makes the generated collection a replacement of the source data rather than an additive merge.

User Impact

Pages for resources removed from the source sheet will no longer be rebuilt or remain in the deployed site. Current curated-resource URLs continue to be generated unchanged.

Evidence

  • Focused generator replacement test passed: stale file removed and _index.md preserved.
  • Focused deployment cleanup test passed.
  • deploy.yaml parses as valid YAML.
  • Python source compiles successfully.

Fixes #873

@LukasWallrich
LukasWallrich requested a review from a team as a code owner August 26, 2026 22:41
@github-actions

Copy link
Copy Markdown
Contributor

👍 All image files/references (if any) are in webp format, in line with our policy.

@github-actions

Copy link
Copy Markdown
Contributor

✅ Spell Check Passed

No spelling issues found when checking 2 changed file(s)! 🎉

@LukasWallrich

Copy link
Copy Markdown
Contributor Author

Staging Deployment Status

This PR has been successfully deployed to staging as part of an aggregated deployment.

Deployed at: 2026-08-26 22:52:17 UTC
Staging URL: https://staging.forrt.org

The staging site shows the combined state of all compatible open PRs.

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.

Unintended pages generating under /curated_resources

1 participant