-
Notifications
You must be signed in to change notification settings - Fork 192
Fix Fareham #1769
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Fareham #1769
Conversation
WalkthroughThis PR updates FarehamBoroughCouncil.py to send postcode parameters under a single "Road or Postcode" key instead of separate "Road" and "Postcode" keys, and makes extensive documentation updates to wiki/Councils.md to standardize and clarify parameter usage patterns (-s, -u, -p, -w) across multiple council entries. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes
Possibly related PRs
Suggested reviewers
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 inconclusive)
✅ Passed checks (2 passed)
✨ 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 |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1769 +/- ##
=======================================
Coverage 86.81% 86.81%
=======================================
Files 9 9
Lines 1138 1138
=======================================
Hits 988 988
Misses 150 150 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (1)
wiki/Councils.md (1)
2149-2158: Clarify parameter flags for Isle of AngleseyThe note says “Pass either UPRN or postcode/house number,” but the additional-parameters list only shows
-sand-u. If this council also accepts postcode and house number via-p/-nlike others, consider listing those flags explicitly so users don’t have to infer them.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
uk_bin_collection/uk_bin_collection/councils/FarehamBoroughCouncil.py(2 hunks)wiki/Councils.md(7 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
- GitHub Check: Run Unit Tests (3.12, 1.8.4)
- GitHub Check: Run Integration Tests (3.12, 1.8.4)
🔇 Additional comments (9)
uk_bin_collection/uk_bin_collection/councils/FarehamBoroughCouncil.py (2)
35-42: Parameter name update aligns with new JSON interfaceUsing a single
"Road or Postcode"key populated withuser_postcodekeeps the request shape simple and consistent with the updated endpoint; postcode validation remains in place viacheck_postcode. No issues seen with this change.
88-92: Return behaviour unchanged and appropriateReturning the sorted
datadict at the end ofparse_datapreserves existing behaviour; no concerns here.wiki/Councils.md (7)
160-160: Isle of Anglesey contents entry is consistentThe new contents link for Isle of Anglesey correctly matches the
### Isle of Angleseyheading anchor; navigation will work as expected.
1248-1253: CumberlandCouncil entry matches UPRN-only patternThe updated Cumberland command and additional-parameters section now follow the standard UPRN-only convention used elsewhere; the note is clear and consistent.
1645-1655: Epsom and Ewell documentation cleanly standardizes -s/-u/-p/-wThe command, parameter bullets, and Selenium note are aligned and match patterns used for other Selenium-based councils. This should make usage much clearer.
1755-1760: Folkestone and Hythe now correctly advertises Selenium requirementAdding
-wand documenting it as a remote Selenium web driver URL brings this entry in line with other Selenium-backed parsers and clarifies the integration requirements.
2163-2169: Islington entry now matches the UPRN+postcode patternSwitching to the shorter
/your-areaURL and documenting both-u(UPRN) and-p(postcode) brings this in line with other UPRN+postcode councils; the note is concise and accurate.
2527-2533: Merton documentation updated to new FixMyStreet-based flowThe new FixMyStreet URL plus
-sand-uparameters, with a clear UPRN note, accurately reflects a UPRN-driven, skip-URL pattern and is consistent with similar entries.
2810-2816: North Hertfordshire entry updated to the new mobile APIUsing the
apps.cloud9technologies.com/.../XXXXXXXX/API endpoint with-sand-udocumented, plus the note about replacingXXXXXXXXwith the UPRN, matches how other “embed UPRN in URL” entries are described.
The parameter name has changed in the new JSON interface page as well
Summary by CodeRabbit
Bug Fixes
Documentation
✏️ Tip: You can customize this high-level summary in your review settings.