Skip to content

fix(usedirect): update ReserveCalifornia booking URLs to modern routing#407

Merged
jufty-bot merged 3 commits into
juftin:mainfrom
kkweon:fix-reserve-california-url
May 24, 2026
Merged

fix(usedirect): update ReserveCalifornia booking URLs to modern routing#407
jufty-bot merged 3 commits into
juftin:mainfrom
kkweon:fix-reserve-california-url

Conversation

@kkweon
Copy link
Copy Markdown
Contributor

@kkweon kkweon commented May 19, 2026

ReserveCalifornia changed its website routing, moving away from the legacy format to a standard path-based structure.

This change introduces an overridable get_booking_url() method to the UseDirect base class, allowing ReserveCalifornia to safely define its modern URL structure without breaking older routing schemes still used by other states like Florida and Ohio. Test assertions have been updated accordingly.

ReserveCalifornia changed its website routing, moving away from the
legacy format to a standard path-based structure.

- Incorrect URL: https://www.reservecalifornia.com/Web/Default.aspx#!park/690/611
- Correct URL: https://www.reservecalifornia.com/park/690/611

This change introduces an overridable `get_booking_url()` method to the
UseDirect base class, allowing ReserveCalifornia to safely define its
modern URL structure without breaking older routing schemes still used
by other states like Florida and Ohio. Test assertions have been updated
accordingly.
@juftin
Copy link
Copy Markdown
Owner

juftin commented May 24, 2026

Re-triggering CI — closing and reopening

@juftin juftin closed this May 24, 2026
@juftin juftin reopened this May 24, 2026
Copy link
Copy Markdown
Collaborator

@jufty-bot jufty-bot left a comment

Choose a reason for hiding this comment

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

Review: jufty-bot 🤖

URL Verification

Verified both old and new URL formats against ReserveCalifornia:

  • Old format (/Web/Default.aspx#!park/690/611): Returns SPA shell ✅
  • New format (/park/690/611): Returns same SPA shell ✅ (no 404)

The new path-based URLs align with the migration from hash-based SPA routing (#!...) to browser history API routing — standard React Router behavior. Both resolve to the same application entry point.

Code Quality

  • Clean abstraction with get_booking_url() on the base class — other UseDirect providers (Florida, Ohio, etc.) are unaffected
  • ReserveCalifornia override is minimal and focused
  • Test assertions updated correctly
  • 21 additions / 5 deletions across 4 files — low risk

CI

Triggered and running: lint, docker, and full Python 3.9–3.14 test matrix.

Looks good to merge once CI passes! 🦀

Copy link
Copy Markdown
Collaborator

@jufty-bot jufty-bot left a comment

Choose a reason for hiding this comment

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

CI Fixes Applied ✅

@juftin pushed two fixes to the branch:

  1. Ruff formatcamply/providers/usedirect/usedirect.py reformatted
  2. VCR cassettetest_search_once_pushover.yaml cassette re-recorded with new /park/ URL format

CI is re-running now with both fixes. 🦀

Copy link
Copy Markdown
Collaborator

@jufty-bot jufty-bot left a comment

Choose a reason for hiding this comment

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

Update: CI Fixes Applied 🛠️

@juftin pushed two fixes to the fix-reserve-california-url branch:

  1. ruff formatcamply/providers/usedirect/usedirect.py reformatted
  2. VCR cassette — Pushover test cassette re-recorded with new /park/ URL

All 108 tests now pass on every Python version (3.9–3.14). The only remaining "failure" is the coverage comment step on the fork, which PR #411 addresses separately.

Ready to merge when you are! 🦀

Copy link
Copy Markdown
Collaborator

@jufty-bot jufty-bot left a comment

Choose a reason for hiding this comment

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

Re-approved ✅

Both fixes applied, all 108 tests passing. This one is ready to go! 🦀

@jufty-bot
Copy link
Copy Markdown
Collaborator

Thanks for your patience while I figure out how to get these agents to work for me. Good bot @jufty-bot! Thank you for the fix @kkweon!

@jufty-bot jufty-bot merged commit 352ed0f into juftin:main May 24, 2026
8 checks passed
juftin pushed a commit that referenced this pull request May 24, 2026
# [v0.34.2](v0.34.1...v0.34.2) (2026-05-24)

## 🐛 Bug Fixes
- [`352ed0f`](352ed0f)  update ReserveCalifornia booking URLs to modern routing (#407) (Issues: [`#407`](#407))

[skip ci]
@juftin
Copy link
Copy Markdown
Owner

juftin commented May 24, 2026

🎉 This PR is included in version 0.34.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants