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

[Jormungandr] [Autocomplete]: Remove administrative_regions from children and add test on places with query #3992

Merged
merged 2 commits into from
May 4, 2023

Conversation

kadhikari
Copy link
Contributor

@kadhikari kadhikari commented May 2, 2023

  • Remove administrative_regions from children.
  • For api /places?q=toto in navitia, api /autocomplete is used bragi where as /places/id uses api /features in bragi.
  • A test already exists on /places/id using bragi result with children.
  • A new test is added on /places?q= using bragi result with children.

For more details: https://navitia.atlassian.net/browse/NAV-2000

@kadhikari kadhikari changed the title Test on places with query having children in the result Remove administrative_regions from children and add test on places with query May 3, 2023
@sonarqubecloud
Copy link

sonarqubecloud bot commented May 3, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 3 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@@ -500,6 +500,42 @@ def geojson():
BRAGI_MOCK_BOBETTE_DEPTH_ONE = deepcopy(BRAGI_MOCK_BOBETTE_DEPTH_ZERO)
BRAGI_MOCK_BOBETTE_DEPTH_TWO = deepcopy(BRAGI_MOCK_BOBETTE_DEPTH_ZERO)
BRAGI_MOCK_BOBETTE_DEPTH_THREE = deepcopy(BRAGI_MOCK_BOBETTE_DEPTH_ZERO)
BRAGI_MOCK_BOBETTE_WITH_CHILDREN = deepcopy(BRAGI_MOCK_BOBETTE)
BRAGI_MOCK_BOBETTE_WITH_CHILDREN["features"][0]["properties"]["geocoding"]["children"] = [
{
Copy link
Contributor

Choose a reason for hiding this comment

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

(do it only if you feel like it)
Maybe add multiple children could be nice here too.

@kadhikari kadhikari merged commit 8ebc31c into dev May 4, 2023
@kadhikari kadhikari deleted the add_test_on_poi_with_children branch May 4, 2023 14:30
@kadhikari kadhikari changed the title Remove administrative_regions from children and add test on places with query [Jormungandr] [Autocomplete]: Remove administrative_regions from children and add test on places with query May 9, 2023
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.

4 participants