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

Improve business logic for consolidated stops #5653

Merged

Conversation

leonardehrenfried
Copy link
Member

Summary

During client review, we noticed that the logic for the consolidated stops are not quite as specified which is rectified with this PR.

@miles-grant-ibigroup can you test that this satisfies the requirements?

Unit tests

Adapted.

@leonardehrenfried leonardehrenfried added Sandbox IBI Developed by or important for IBI Group Skip Changelog labels Feb 1, 2024
Copy link

codecov bot commented Feb 1, 2024

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (9ed5f22) 67.54% compared to head (7692ef1) 67.62%.
Report is 85 commits behind head on dev-2.x.

Files Patch % Lines
...opconsolidation/DecorateConsolidatedStopNames.java 80.00% 0 Missing and 1 partial ⚠️
...tion/internal/DefaultStopConsolidationService.java 94.73% 1 Missing ⚠️
Additional details and impacted files
@@              Coverage Diff              @@
##             dev-2.x    #5653      +/-   ##
=============================================
+ Coverage      67.54%   67.62%   +0.08%     
- Complexity     16292    16293       +1     
=============================================
  Files           1888     1886       -2     
  Lines          71609    71549      -60     
  Branches        7405     7384      -21     
=============================================
+ Hits           48365    48382      +17     
+ Misses         20740    20662      -78     
- Partials        2504     2505       +1     

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

Copy link
Contributor

@miles-grant-ibigroup miles-grant-ibigroup left a comment

Choose a reason for hiding this comment

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

I think this is the correct behavior

@leonardehrenfried leonardehrenfried marked this pull request as ready for review February 1, 2024 16:29
@leonardehrenfried leonardehrenfried requested a review from a team as a code owner February 1, 2024 16:29
@leonardehrenfried leonardehrenfried changed the title Improve logic for consolidated stops Improve business logic for consolidated stops Feb 1, 2024
@leonardehrenfried leonardehrenfried added this to the 2.5 (next release) milestone Feb 5, 2024
Copy link
Contributor

@binh-dam-ibigroup binh-dam-ibigroup left a comment

Choose a reason for hiding this comment

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

@leonardehrenfried Could you clarify the alternate use of primary vs secondary stops and clarify a method name, please?

Copy link
Contributor

@binh-dam-ibigroup binh-dam-ibigroup left a comment

Choose a reason for hiding this comment

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

Seems to work fine, thanks for the clarifying comments.

@leonardehrenfried leonardehrenfried merged commit 026e39e into opentripplanner:dev-2.x Feb 8, 2024
5 checks passed
@leonardehrenfried leonardehrenfried deleted the consolidated-stop-codes branch February 8, 2024 07:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
IBI Developed by or important for IBI Group Sandbox Skip Changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants