Skip to content

Overwrite default WALK directMode when it is not set in the request, but modes is set#5779

Merged
eibakke merged 1 commit into
opentripplanner:dev-2.xfrom
entur:directModeFix
Apr 12, 2024
Merged

Overwrite default WALK directMode when it is not set in the request, but modes is set#5779
eibakke merged 1 commit into
opentripplanner:dev-2.xfrom
entur:directModeFix

Conversation

@eibakke

@eibakke eibakke commented Apr 2, 2024

Copy link
Copy Markdown
Contributor

Overwrite default WALK directMode when it is not set in the request, but modes is set. Defaulting it to walk when it was not set caused issues when the user expected no results because transportModes are defined.

Unit tests

Updated existing unit test to pass. Also verified that the results are as expected with the related Entur Shamash Query

Documentation

Updated JavaDoc.

Defaulting it to walk when it was not set caused issues when the user expected no results because transportModes are defined.
@eibakke eibakke requested a review from a team as a code owner April 2, 2024 13:02
@codecov

codecov Bot commented Apr 2, 2024

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 67.81%. Comparing base (8d15a0d) to head (fb26d55).
Report is 7 commits behind head on dev-2.x.

Additional details and impacted files
@@            Coverage Diff             @@
##             dev-2.x    #5779   +/-   ##
==========================================
  Coverage      67.81%   67.81%           
  Complexity     16531    16531           
==========================================
  Files           1906     1906           
  Lines          72275    72274    -1     
  Branches        7443     7442    -1     
==========================================
+ Hits           49012    49014    +2     
+ Misses         20742    20740    -2     
+ Partials        2521     2520    -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@vpaturet vpaturet self-requested a review April 3, 2024 04:24
@eibakke eibakke added the Entur Test This is currently being tested at Entur label Apr 3, 2024
@t2gran t2gran added this to the 2.6 (next release) milestone Apr 3, 2024
@vpaturet vpaturet assigned eibakke and unassigned vpaturet Apr 3, 2024
@leonardehrenfried leonardehrenfried self-requested a review April 4, 2024 13:49
@vpaturet

vpaturet commented Apr 4, 2024

Copy link
Copy Markdown
Contributor

see #5675 for the original PR that sets the defaults on access/egress/direct mode

@eibakke eibakke merged commit 75e515b into opentripplanner:dev-2.x Apr 12, 2024
@eibakke eibakke deleted the directModeFix branch April 12, 2024 12:48
t2gran pushed a commit that referenced this pull request Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Entur Test This is currently being tested at Entur

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants