Conversation
…r handling for 502 errors
…ress SSL warnings, improve parsing
|
Caution Review failedThe pull request is closed. 📝 WalkthroughWalkthroughThis PR adds support for Gosport Borough Council bin collection data retrieval via the Supatrak API, updates test configuration to include the new council and two additional councils to GooglePublicCalendarCouncil, and enhances error handling and data parsing in HarboroughDistrictCouncil. Changes
Sequence Diagram(s)sequenceDiagram
participant Client as Client
participant Council as GosportBoroughCouncil
participant API as Supatrak API
participant Parser as Data Parser
Client->>Council: parse_data(postcode="PO12 4RU")
Council->>Council: Validate postcode exists
Council->>API: GET request with postcode header
API-->>Council: JSON response with bins data
Council->>Parser: Extract WasteType & NextCollection
Parser->>Parser: Parse dates to dd/mm/YYYY
Parser->>Parser: Deduplicate by (type, date)
Parser-->>Council: Processed bin entries
Council->>Council: Build response dict with bins list
Council-->>Client: Return {"bins": [...]}
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Suggested reviewers
Poem
✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
❌ 1 Tests Failed:
View the top 1 failed test(s) by shortest run time
To view more test analytics, go to the Test Analytics Dashboard |
closes #1686 #1593 #1618 #1794
Summary by CodeRabbit
Release Notes
New Features
Improvements