-
-
Notifications
You must be signed in to change notification settings - Fork 242
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
Allow cobrands to customise nearby lookup distances for duplicates #4456
Conversation
f65a1b2
to
3e0576a
Compare
Codecov Report
@@ Coverage Diff @@
## master #4456 +/- ##
==========================================
- Coverage 82.20% 82.19% -0.01%
==========================================
Files 365 365
Lines 27647 27653 +6
Branches 4293 4294 +1
==========================================
+ Hits 22727 22730 +3
- Misses 3630 3633 +3
Partials 1290 1290
|
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.
Looks good! Bonus points for remembering to update the config page HTML 🥇
@@ -679,10 +679,14 @@ sub _nearby_json :Private { | |||
$c->stash->{page} = 'report'; | |||
|
|||
# distance in metres | |||
my $dist = $c->get_param('distance') || ''; | |||
my $dist; | |||
if (my $mode = $c->get_param('mode')) { |
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.
Given there are two different endpoints for the two different modes, can we set 'mode' in the controllers that then call _nearby_json
rather than a query parameter?
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.
Suppose we could, but there's currently nothing inspector- or suggestions-specific about the behaviour of the two different paths. I think I'd prefer to leave them as-is with the intention of each call made explicit rather than adding some subtle difference in behaviour of two very similarly named things that'd trip somebody up in the future (most likely me!)
For UK councils this is picked up from cobrand feature config. For FD-2997.
3e0576a
to
854323a
Compare
For UK councils this is picked up from cobrand feature config.
For FD-2997.