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] [Ridesharing]: Add two params while calling OuestGo #3996

Merged
merged 4 commits into from
May 9, 2023

Conversation

kadhikari
Copy link
Contributor

Two more parameters added while calling OuestGo

  • p[outward][mindate] = day of query
  • p[outward][maxdate] = day of query + 1 day

Departure origin and pickup point is the same.
Drop off and arrival point is the same.

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

Copy link
Contributor

@pbougue pbougue left a comment

Choose a reason for hiding this comment

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

It's not clearly specified anywhere that OuestGo garanties that pickup=from and dropoff=to.
Same goes for the TZ of mindate and maxdate.

If @wassimbenaissa (or @stifoon) is OK with those, code looks OK to me (just comments/naming).

@@ -62,6 +62,8 @@
WEEK_DAYS_MAPPING = ("monday", "tuesday", "wednesday", "thursday", "friday", "saturday", "sunday")
COVERAGE_ANY_BETA = "any-beta"
BEST_BOARDING_POSITION_KEY = "{}-{}"
ONE_DAY = 86400
Copy link
Contributor

Choose a reason for hiding this comment

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

More pythonic: You can probably use datetime.timedelta(days=1).total_seconds() instead of 86400.

@sonarqubecloud
Copy link

sonarqubecloud bot commented May 5, 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 0 Code Smells

96.2% 96.2% Coverage
0.0% 0.0% Duplication

@kadhikari kadhikari merged commit 7f1153a into dev May 9, 2023
@kadhikari kadhikari deleted the update_ouestgo_call_params branch May 9, 2023 08:05
@kadhikari kadhikari changed the title Add two params while calling OuestGo [Jormungandr] [Ridesharing]: Add two params while calling OuestGo 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.

3 participants