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

Itinerary list filter chain refactor #3626

Merged
merged 17 commits into from
Oct 12, 2021

Conversation

hannesj
Copy link
Contributor

@hannesj hannesj commented Sep 29, 2021

Summary

This PR contains the following refactorings.

  • Rename FilterChain => ItineraryListFilterChain
  • Use SystemNotices always to mark deleted itineraries
  • Split ItineraryFilter into four concrete classes implementing ItineraryListFilter
    • FilteringFilter, which takes a ItineraryTagger uses it to mark itineraries as deleted
    • SortingFilter, which takes a Comparator and uses it to reorder the itineraries
    • GroupByFilter, which takes a list of ItineraryListFilters to further process each group
    • AddMinSafeTransferCost, which is unchanged

Unit tests

Updated tests to work with mutable deletion status.

Documentation

Updated documentation and added architecture drawing.

Changelog

Included

@hannesj hannesj requested a review from a team as a code owner September 29, 2021 14:34
@t2gran t2gran added this to the 2.1 milestone Sep 29, 2021
@hannesj hannesj force-pushed the otp2_post_processing_refactor branch from 38d26cd to 3bbe317 Compare September 30, 2021 17:27
@hannesj hannesj changed the title Itinerary post-processing refactor Itinerary list filter chain refactor Sep 30, 2021
@hannesj hannesj requested a review from t2gran September 30, 2021 18:15
@hannesj hannesj force-pushed the otp2_post_processing_refactor branch from 3bbe317 to 19b8e7f Compare October 5, 2021 08:16
hannesj and others added 2 commits October 6, 2021 15:41
Co-authored-by: Thomas Gran <t2gran@gmail.com>
@hannesj hannesj added the Entur test This is currently being tested at Entur label Oct 7, 2021
@hannesj hannesj force-pushed the otp2_post_processing_refactor branch from 9151f8f to 69942cd Compare October 7, 2021 12:50
Co-authored-by: Thomas Gran <t2gran@gmail.com>
@abyrd abyrd merged commit 17ee838 into opentripplanner:dev-2.x Oct 12, 2021
@t2gran t2gran deleted the otp2_post_processing_refactor branch October 14, 2021 12:51
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 technical debt
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants