GET /resorts blackout date and LTT filters (Issue #58)#87
Merged
jonathanstelman merged 1 commit intomainfrom Mar 21, 2026
Merged
GET /resorts blackout date and LTT filters (Issue #58)#87jonathanstelman merged 1 commit intomainfrom
jonathanstelman merged 1 commit intomainfrom
Conversation
- blackout_dates: comma-separated YYYY-MM-DD list; excludes resorts blacked out on any of the given dates - ltt_dates: same logic against ltt_blackout_all_dates column - ltt_available: boolean filter on LTT program participation - ltt_available added to ResortSummary response projection - Internal store switched to list[Resort] so filters can access full-model fields (blackout columns) without bloating ResortSummary; projection to ResortSummary happens at return time - Updated existing test fixtures to use Resort instead of ResortSummary - 14 new tests covering all params and composability Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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
blackout_datesandltt_datesquery params — comma-separatedYYYY-MM-DDlists that exclude resorts blacked out on any of the given datesltt_availableboolean filter for LTT program participationltt_availabletoResortSummaryresponse shapelist[ResortSummary]→list[Resort]so filters can access full-model columns (blackout_all_dates,ltt_blackout_all_dates) without leaking those large fields into the API response; projection toResortSummarynow happens at return timeFilter behavior
blackout_dates=2025-12-25,2025-12-26blackout_all_datesltt_dates=2025-12-25ltt_blackout_all_datesltt_available=trueResorts with an empty blackout list always pass the date filters.
Test plan
blackout_datesexcludes resorts blacked out on any given dateltt_datesapplies same logic against LTT-specific blackoutsltt_available=true/falsefilters correctlyltt_availablepresent in response shapeCloses #58
🤖 Generated with Claude Code