Import Godsey trails into Payload - #126
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 08f39e8caa
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
08f39e8 to
a09cd5d
Compare
a09cd5d to
8622b4c
Compare
8622b4c to
8ddccfc
Compare
8ddccfc to
0a4a57d
Compare
0a4a57d to
3fdc04d
Compare
🤖
Summary
editedStatic-data deprecation
Payload is authoritative.
public/data/chattanooga/trails.geojsonandtrails-supplemental.geojsonremain only to bootstrap fresh databases and provide the existing runtime outage/unseeded fallback. Their embedded metadata, adjacent README, generator, seed, runtime config, and repository guidance all mark themstaged-for-removal.Remove both files, their converter plumbing, and
geojsonFallbackUrltogether after a database-native bootstrap exists and the map has an explicit database-outage experience. The immutable Payload migration remains as migration history.Provenance
The supplemental coordinates came from the six existing checked-in elevation profiles, which were originally sampled from the legacy
Godsey Ridge TrailsMapbox layer. No external data was fetched. Trail names and source paths now live in data; neither the converter nor the runtime map contains a Godsey-specific name mapping.The migration carries an immutable snapshot of the six geometries, profiles, and measurements. Its rollback only removes data when the live row and latest version still match that snapshot, so later curator edits survive and the two Payload representations cannot diverge.
Verification
pnpm test:run— 60 files, 639 tests passedpnpm checkpnpm builduv run --with-requirements scripts/requirements.txt python -m unittest discover -s scripts -p 'test_*.py'— 22 tests passededitedlive geometry andeditedlatest-draft geometry both survived up and down unchangedimported, published, and currently missing geometryThe lockfile normalizes transitive packages to existing project constraints so
pnpm dedupe:checkremains clean:postcss-selector-parseruses the declared6.1.3override, and transitive Node typings reuse the direct Node 24 types required by.nvmrc.Rollout
pnpm db:migrateand applies the backfill before the new deployment goes live.No manual seed command is required for this rollout.