Skip to content
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

Upgrade to pelias-config-5.0.0 (set api.targets.auto_discover to true by default) #1522

Merged
merged 2 commits into from
Apr 22, 2021

Conversation

orangejulius
Copy link
Member

This PR brings in version 5.0.0 of pelias/config, which brings in a new default value for the api.targets.auto_discover configuration property.

Setting this value to true by default (the new setting) will mean that most Pelias users have to do less work to correctly configure Pelias if they're using custom data that includes their own sources and layers.

As part of this change I've also updated the documentation in the API's README.md around this option and related configuration options. Now that the default behavior is also the recommended behavior, we can simplify things quite a bit and remove a few strongly worded warnings. :)

I took a look at most of our pelias.json configurations out there, such as those from pelias/docker and many, but not all of them already set api.targets.auto_discover to true, so this configuration change is well tested and hopefully won't cause any issues.

This changes the default value of `api.targets.auto_discover` to true,
allowing Pelias users to more conveniently work with custom data.
Now that `auto_detect` is set to true, we can simplify this
documentation a bit. Most people will have no troubles and we don't have
to make the warnings sound quite as scary.
@orangejulius orangejulius merged commit 9ef8cbf into master Apr 22, 2021
@orangejulius orangejulius deleted the auto-discover-true branch April 22, 2021 16:54
@gb-kpatel
Copy link

gb-kpatel commented Apr 30, 2021

FYI, this turned out to be a breaking change for us. We discovered it yesterday that all our autocomplete API calls with layers=postalcode were failing with 400.

@orangejulius
Copy link
Member Author

Hi @gb-kpatel,
Thanks for bringing this to our attention!

I imagine what's happened is you don't have any records in the postalcode layer in your index, and the query previously used to return no results (or results from other layers, if you specified them), right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants