Skip to content

Filter functionality for GroupOfLines/GroupOfRoutes + TransmodelAPI m… - #4812

Merged
Bartosz-Kruba merged 8 commits into
opentripplanner:dev-2.xfrom
Skanetrafiken:gol_filter
Feb 21, 2023
Merged

Filter functionality for GroupOfLines/GroupOfRoutes + TransmodelAPI m…#4812
Bartosz-Kruba merged 8 commits into
opentripplanner:dev-2.xfrom
Skanetrafiken:gol_filter

Conversation

@Bartosz-Kruba

@Bartosz-Kruba Bartosz-Kruba commented Feb 8, 2023

Copy link
Copy Markdown
Contributor

Summary

This PR adds functionality for filtering based on GroupOfRoutes. It also adds mapping for the new filter functionality to Transmodel API.

Issue

closes #4628

Unit tests

Created unit tests for new functionality

Documentation

Documented in Transmodel API

@Bartosz-Kruba
Bartosz-Kruba requested a review from a team as a code owner February 8, 2023 15:04
@leonardehrenfried

Copy link
Copy Markdown
Member

This looks good. Please merge master to make the build pass.

@codecov

codecov Bot commented Feb 10, 2023

Copy link
Copy Markdown

Codecov Report

Base: 62.93% // Head: 62.13% // Decreases project coverage by -0.80% ⚠️

Coverage data is based on head (55897e3) compared to base (d952aae).
Patch coverage: 86.36% of modified lines in pull request are covered.

❗ Current head 55897e3 differs from pull request most recent head 7714837. Consider uploading reports for the commit 7714837 to get more accurate results

Additional details and impacted files
@@              Coverage Diff              @@
##             dev-2.x    #4812      +/-   ##
=============================================
- Coverage      62.93%   62.13%   -0.80%     
+ Complexity     13273    13007     -266     
=============================================
  Files           1660     1650      -10     
  Lines          66310    66105     -205     
  Branches        7227     7190      -37     
=============================================
- Hits           41733    41076     -657     
- Misses         22190    22690     +500     
+ Partials        2387     2339      -48     
Impacted Files Coverage Δ
...ext/transmodelapi/mapping/SelectRequestMapper.java 0.00% <0.00%> (ø)
.../ext/transmodelapi/model/plan/SelectInputType.java 97.22% <100.00%> (+0.55%) ⬆️
...ting/api/request/request/filter/SelectRequest.java 77.33% <100.00%> (+3.56%) ⬆️
...ripplanner/transit/model/network/RouteBuilder.java 97.29% <100.00%> (+0.07%) ⬆️
...n/java/org/opentripplanner/updater/DataSource.java 0.00% <0.00%> (-100.00%) ⬇️
...g/opentripplanner/raptor/api/debug/DebugTopic.java 0.00% <0.00%> (-100.00%) ⬇️
...ntripplanner/raptor/api/view/TransferPathView.java 0.00% <0.00%> (-100.00%) ⬇️
...raptor/service/DestinationNotReachedException.java 0.00% <0.00%> (-100.00%) ⬇️
...angeraptor/debug/ParetoSetDebugHandlerAdapter.java 0.00% <0.00%> (-100.00%) ⬇️
...til/paretoset/ParetoSetEventListenerComposite.java 0.00% <0.00%> (-100.00%) ⬇️
... and 169 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@leonardehrenfried leonardehrenfried left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I could only find a small typo.

…SelectInputType.java

Co-authored-by: Leonard Ehrenfried <mail@leonard.io>
@t2gran t2gran added this to the 2.3 milestone Feb 15, 2023
@t2gran t2gran added !New Feature A functional feature targeting the end user. +Bump Serialization Id Add this label if you want the serialization id automatically bumped after merging the PR labels Feb 15, 2023
hannesj
hannesj previously approved these changes Feb 16, 2023

@hannesj hannesj left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'd prefer to have #4820 merged before this, as there will be some merge conflicts

bartosz added 2 commits February 20, 2023 14:18
# Conflicts:
#	src/test/java/org/opentripplanner/routing/algorithm/FilterTest.java
@Bartosz-Kruba
Bartosz-Kruba merged commit 0e1f700 into opentripplanner:dev-2.x Feb 21, 2023
@Bartosz-Kruba
Bartosz-Kruba deleted the gol_filter branch February 21, 2023 09:41
t2gran pushed a commit that referenced this pull request Feb 21, 2023
t2gran pushed a commit that referenced this pull request Feb 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

+Bump Serialization Id Add this label if you want the serialization id automatically bumped after merging the PR !New Feature A functional feature targeting the end user.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Filter on group of lines

4 participants