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] Init connector Forseti for bss stations #4101

Merged
merged 11 commits into from
Sep 19, 2023

Conversation

kadhikari
Copy link
Contributor

@kadhikari kadhikari commented Sep 6, 2023

  • All the bss providers are in the table jormunandr.bss_provider and are shared by all instances (coverages) active (instance.bss_provider = true).

  • A connector as Cykleo with one organization_id is intialized as a bss_provider, that means there are many bss providers Cykleo as well as JcDeaux.

  • From now, each new external service for BSS may be integrated in forseti and used in navitia.

  • One instance of forseti for the same datatype as gbfs.

  • Same Forseti will be used by one or more instance but with different combination of organization_ids

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

@pbougue pbougue self-requested a review September 18, 2023 07:52
Comment on lines +137 to +142
if not data:
return Stands(0, 0, StandsStatus.unavailable)
obj_stations = data.get('stations', [])

if not obj_stations:
return Stands(0, 0, StandsStatus.unavailable)
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
if not data:
return Stands(0, 0, StandsStatus.unavailable)
obj_stations = data.get('stations', [])
if not obj_stations:
return Stands(0, 0, StandsStatus.unavailable)
if not data or not data.get('stations', []):
return Stands(0, 0, StandsStatus.unavailable)

@sonarcloud
Copy link

sonarcloud bot commented Sep 19, 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 9 Code Smells

73.2% 73.2% Coverage
0.0% 0.0% Duplication

@kadhikari kadhikari merged commit 1ff5054 into dev Sep 19, 2023
@kadhikari kadhikari deleted the add_forseti_in_bss_parking_space_availability branch September 19, 2023 11:44
@kadhikari kadhikari changed the title Init connector Forseti for bss stations [jormungandr] Init connector Forseti for bss stations Sep 25, 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.

3 participants