Skip to content

BGDIINF_SB-2890 : fix search tests #489

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

Merged
merged 2 commits into from
Oct 25, 2023

Conversation

pakb
Copy link
Contributor

@pakb pakb commented Oct 25, 2023

search now uses lat/lon from the backend, as there was some issue while using x/y with sr=2056. Might be a bug on the backend, but those coordinates were out of bound of LV95 when searching for addresses... Lat/Lon were correct, so I used them instead. Also adapting the fixture file to have only LV95 values (as that is what we are requesting from the backend, even though x/y are somewhat wrong on the real backend)

Test link

search now uses lat/lon from the backend, as there was some issue while using x/y with sr=2056. Might be a bug on the backend, but those coordinates were out of bound of LV95 when searching for addresses... Lat/Lon were correct, so I used them instead.
Also adapting the fixture file to have only LV95 values (as that is what we are requesting from the backend, even though x/y are somewhat wrong on the real backend)
@pakb pakb requested a review from ltshb October 25, 2023 12:36
@github-actions github-actions bot added the bug label Oct 25, 2023
@@ -132,7 +132,7 @@ let cancelToken = null
* returned
* @returns {Promise<CombinedSearchResults>}
*/
async function search(queryString = '', lang = '', outputProjection) {
async function search(queryString = '', lang = '', outputProjection = DEFAULT_PROJECTION) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I would not used any default projection in the api functions to avoid surprise when changing between projection.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

then I have to change the function signature, as it's the last param

@pakb pakb requested a review from ltshb October 25, 2023 12:48
@pakb pakb merged commit 84fe07c into develop-lv95 Oct 25, 2023
@pakb pakb deleted the bug_BGDIINF_SB-2890_fix_search_test branch October 25, 2023 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants