Skip to content

Delete the three migrated wave-C1 copies (Track C) - #373

Merged
mmcky merged 1 commit into
mainfrom
datasets/track-c1-delete
Aug 17, 2026
Merged

Delete the three migrated wave-C1 copies (Track C)#373
mmcky merged 1 commit into
mainfrom
datasets/track-c1-delete

Conversation

@mmcky

@mmcky mmcky commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

The final step of wave C1. The lectures have read these from QuantEcon/data-lectures since #372, and publish-2026aug17 has shipped that repoint, so nothing reaches the local copies any more.

The publish gate, measured

Verified by basename, not by URL — a grep for the assembled URL returns a confident zero against a split literal, which is exactly how this check gives a false pass:

data-lectures refs _static/lecture_specific refs
published notebooks, before the publish 0 1 each
published notebooks, after 1 each 0
.notebooks mirror, after 1 each 0

That ordering is what makes the deletion safe, and it mattered most for hansen_jagannathan_1991_data.json: it is fetched over the network at cell-execution time, so deleting it while a published notebook still named the old URL would have broken every notebook and Colab reader instantly, with no cache rebuild to ride out.

Consumer sweep, re-derived at deletion time

Not carried over from when the wave was planned — that is the rule QuantEcon/workspace-lectures#28 exists to enforce.

All 278 QuantEcon repos enumerated; 277 with a default branch swept over the Trees API, authenticated, so the 69 private repos are covered rather than silently 404ing. The three filenames appear in exactly two repos:

  • data-lectures — their new home, plus the three sidecar manifests
  • this repo — the copies being deleted here

Positive control fired (this repo's own copies were found); negative control returned zero.

Both _static/lecture_specific/ directories held nothing but the migrated files, so git removes the directories too.

What this does not do

The published site keeps serving these paths until the next cache rebuild and publish — every repo in the family restores a cached _build/html, and Sphinx never prunes assets removed from source. That is expected under the settle policy agreed for this migration rather than a gap in this PR: the deletion is complete on main, and the site clears on the weekly cycle. Verify a deletion against the published URL, never against main.

Baseline for whoever checks later: all three currently return 200 from python-advanced.quantecon.org at 32,217 / 12,196 / 63,456 bytes, against a 404 control. The raw blobs on main 404 as soon as this merges.

🤖 Generated with Claude Code

The lectures have read these from QuantEcon/data-lectures since #372, and
publish-2026aug17 has since shipped that repoint, so the local copies are no
longer reachable by anything.

The publish gate was verified rather than assumed, and by basename rather
than by URL. Before the publish, both published notebooks carried zero
`data-lectures` references and one `_static/lecture_specific` each; after it,
both carry `data-lectures` and zero `_static/lecture_specific`, and the
generated lecture-python-advanced.notebooks mirror matches. That ordering is
what makes this deletion safe, and it mattered most for
hansen_jagannathan_1991_data.json, which is fetched over the network at
cell-execution time: deleting it while a published notebook still named the
old URL would have broken every notebook and Colab reader instantly, with no
cache rebuild to ride out.

An org-wide sweep re-derived the consumer set at deletion time rather than
trusting the one taken when the wave was planned. All 278 QuantEcon repos
enumerated, 277 with a default branch swept over the Trees API,
authenticated so the 69 private repos are covered rather than silently 404ing.
The three filenames appear in exactly two repos: data-lectures, which is
their new home, and this one. Positive control fired (this repo's own copies
were found); negative control returned zero.

Both `_static/lecture_specific/` directories held nothing but the migrated
files, so git removes them entirely.

The published site keeps serving these paths until the next cache rebuild and
publish — every repo here restores a cached `_build/html` and Sphinx never
prunes assets removed from source. That is expected under the settle policy
agreed for this migration, not a failure of this PR: the deletion is complete
on `main`, and the site clears on the weekly cycle. Verify a deletion against
the published URL, never against `main`.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings August 17, 2026 02:01
@netlify

netlify Bot commented Aug 17, 2026

Copy link
Copy Markdown

Deploy Preview for lustrous-melomakarona-3ee73e ready!

Name Link
🔨 Latest commit 8fb26c0
🔍 Latest deploy log https://app.netlify.com/projects/lustrous-melomakarona-3ee73e/deploys/6a826b6d91786e0008468666
😎 Deploy Preview https://deploy-preview-373--lustrous-melomakarona-3ee73e.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Removes three now-unreferenced Wave C1 dataset copies from this repo’s lectures/_static/lecture_specific/... tree after the corresponding lectures were repointed to load the same datasets from QuantEcon/data-lectures (per #372), reducing repo size and eliminating duplicated assets.

Changes:

  • Delete bbh_michigan_monthly.csv local copy for subjective_beliefs_business_cycles.
  • Delete bbh_macro_quarterly.csv local copy for subjective_beliefs_business_cycles.
  • Delete hansen_jagannathan_1991_data.json local copy for hansen_jagannathan_1991.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
lectures/_static/lecture_specific/subjective_beliefs_business_cycles/bbh_michigan_monthly.csv Removes migrated local dataset copy (now loaded from data-lectures).
lectures/_static/lecture_specific/subjective_beliefs_business_cycles/bbh_macro_quarterly.csv Removes migrated local dataset copy (now loaded from data-lectures).
lectures/_static/lecture_specific/hansen_jagannathan_1991/hansen_jagannathan_1991_data.json Removes migrated local dataset copy (now loaded from data-lectures).

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@github-actions

Copy link
Copy Markdown
Contributor

@github-actions
github-actions Bot temporarily deployed to pull request August 17, 2026 02:10 Inactive
@mmcky
mmcky merged commit f442011 into main Aug 17, 2026
10 checks passed
@mmcky
mmcky deleted the datasets/track-c1-delete branch August 17, 2026 02:20
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.

2 participants