Skip to content
This repository has been archived by the owner on Feb 2, 2023. It is now read-only.

fix(viaIP-conflict): disable aroundLatLngViaIP when setting location #554

Merged
merged 3 commits into from
Sep 17, 2018

Conversation

JonathanMontane
Copy link
Contributor

Summary
When using the Places Widget in coordination with other geolocation widget such as the Geosearch, there can be a conflict between the aroundLatLngViaIP:true field and the aroundLatLng set by Places.

Result
aroundLatLngViaIP is set to false when a user selects a geolocation through places. It is restored to its initial value on clear.

samouss
samouss previously approved these changes Aug 8, 2018
@samouss samouss dismissed their stale review August 8, 2018 14:16

Review before the rebase.

samouss
samouss previously requested changes Aug 8, 2018
@@ -36,6 +38,7 @@ class AlgoliaPlacesWidget {

helper
.setQueryParameter('insideBoundingBox')
.setQueryParameter('aroundLatLngViaIP', false)
Copy link
Contributor

Choose a reason for hiding this comment

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

We probably need to implement this line inside getWidgetSearchParameters

@samouss
Copy link
Contributor

samouss commented Aug 8, 2018

We did some tests & changes with @raphi. I will push them because it's a bit tricky to explain.

@raphi
Copy link
Contributor

raphi commented Aug 28, 2018

@samouss can we move forward on that point?

@samouss
Copy link
Contributor

samouss commented Aug 28, 2018

Yep! Didn't have the time to take a look yet, I'll do it in the week.

@samouss samouss dismissed their stale review September 17, 2018 07:52

The implementation has changed.

Copy link
Contributor Author

@JonathanMontane JonathanMontane left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@samouss
Copy link
Contributor

samouss commented Sep 17, 2018

I don't have the rights to restart Netlify. It seems that Travis don't want to start...

@raphi raphi merged commit 29c2473 into master Sep 17, 2018
@raphi raphi deleted the fix/viaIP-conflict branch September 17, 2018 11:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants