Remove completed venue-island migration tooling (#138) - #139
Merged
Merged
Conversation
The one-time migrate:venue-islands backfill has been applied to all production venue documents, so the disposable script, its package entry, and the now-unused resolveVenueGeography helper are removed along with the migration-mapping tests. Canonical island/locality behavior and the legacy locationName read fallback are unchanged. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Reviewer's guide (collapsed on small PRs)Reviewer's GuideThis PR retires the completed venue-island migration by deleting its script, command, migration-only resolver, and dedicated tests, while updating stale documentation and preserving all canonical island behavior and legacy File-Level Changes
Assessment against linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
This branch was successfully deployed
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.
Summary
The one-time
migrate:venue-islandsbackfill introduced in #134 has been applied to all production venue documents, so its machinery is now disposable. This PR removes the migration script, its npm command, the migration-onlyresolveVenueGeography()helper (verified dead — nothing outside the script referenced it), the migration-mapping unit tests, and docs that presented the command as an active operational tool.Canonical island/locality behavior is unchanged:
Venue.island,lib/venue-islands.ts, canonical grouping/filtering, the admin island selector, Firestore island validation, card locality composition, and the transitional legacylocationNameread fallback all remain.Closes #138
Changes
scripts/migrate-venue-islands.ts(dry-run/--writebackfill script)migrate:venue-islandsentry frompackage.jsonand the README command tableresolveVenueGeography(),VenueGeography, andKNOWN_LOCALITY_ISLANDSfromlib/venue-filters.ts— dead code once the script was gone (admin still usesresolveVenueIsland, which is kept)resolveVenueGeography (migration mapping)describe block (7 tests) fromtests/lib/venue-filters.test.tsdocs/TECHNICAL.md: dropped the script from thescripts/listings; reworded the fallback note — reads fall back tolocationNamefor legacy documents, not "until the backfill completes"docs/admin/managing-locations.md+lib/types.ts+lib/venue-filters.tscomments: reworded "until migration completes" wording now that the migration is done; the documented fallback semantics are unchangedfirestore.rules, venue behavior, admin UI, analytics, or fixturesVerification
npm cinpm run check:react-versionsnpx tsc --noEmitnpm run lint(exit 0; pre-existingTSSatisfiesExpressionnotice unchanged)npm test— 372 pass (−7 intentionally removed migration-mapping tests)npm run test:rules— 30 pass; venue island allowlist still enforcednpm run buildnpm run test:smoke— 131 Playwright tests passnpm run check:md-linksnpm audit --omit=dev— 0 vulnerabilitiesnpm runno longer listsmigrate:venue-islandsRisk / deployment notes
None. No production data touched and no behavior changed — this only removes a completed one-time migration script, its dead helper, and stale doc references. The legacy
locationNameread fallback intentionally remains for any stale records/environments.Generated with Devin
Summary by Sourcery
Retire the completed venue-island backfill machinery and update references to reflect the migration’s completion.
Enhancements:
Documentation:
Tests: