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

feat: improve streeet search api #742

Merged
merged 4 commits into from
Jul 17, 2024

Conversation

derrabauke
Copy link
Contributor

@derrabauke derrabauke commented Apr 9, 2024

Needs #741
Second part of #738

Multilingual street search

  • Make a first request using the language selected in eBau
  • If no streets are found, try the other available languages
  • Display the street results using the language(s) where results were found (concatenating if results for multiple languages are found)
  • Continue further search requests with the same language (for example when continuing typing)

Update after short discussion with @czosel:
We want to stay very defensive with caching and fire one or two requests more rather then getting trapped in some request cache shenanigans. Opting for only canton relevant languages will most effectively cut down request count.

@derrabauke derrabauke added the enhancement New feature or request label Apr 9, 2024
@derrabauke derrabauke self-assigned this Apr 9, 2024
@derrabauke derrabauke requested a review from luytena April 9, 2024 15:02
@derrabauke derrabauke marked this pull request as ready for review April 9, 2024 15:02
@derrabauke derrabauke requested a review from czosel April 10, 2024 09:11
@derrabauke derrabauke force-pushed the fix-street-search-lang-2 branch 4 times, most recently from f87bcb3 to 0cfb04b Compare April 11, 2024 17:17
@derrabauke
Copy link
Contributor Author

@czosel sorry for the noise. Now it's really ready. :-)

@derrabauke derrabauke force-pushed the fix-street-search-lang-2 branch from 0cfb04b to 9ec0476 Compare May 21, 2024 08:46
@derrabauke
Copy link
Contributor Author

@czosel @luytena getting stale

@czosel
Copy link
Contributor

czosel commented Jul 3, 2024

Otherwise LGTM, nice work! 💯

@derrabauke derrabauke force-pushed the fix-street-search-lang-2 branch from 9ec0476 to 127e880 Compare July 17, 2024 07:23
If the first search request for a certain street name yieled no results
the service will retry with all available languages to search
for it.
@derrabauke derrabauke force-pushed the fix-street-search-lang-2 branch from 127e880 to f1a120b Compare July 17, 2024 08:35
@czosel czosel merged commit 9b4d28b into inosca:main Jul 17, 2024
10 checks passed
@luytena
Copy link
Contributor

luytena commented Jul 17, 2024

🎉 This PR is included in version 7.6.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@derrabauke derrabauke deleted the fix-street-search-lang-2 branch July 17, 2024 09:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants