Add feature switch for matching ET messages on stops - #4347
Conversation
Codecov Report
@@ Coverage Diff @@
## dev-2.x #4347 +/- ##
==========================================
Coverage 57.54% 57.54%
Complexity 10933 10933
==========================================
Files 1441 1441
Lines 58255 58256 +1
Branches 6772 6773 +1
==========================================
+ Hits 33520 33521 +1
Misses 22717 22717
Partials 2018 2018
Help us with your feedback. Take ten seconds to tell us how you rate us. |
|
I think it would be better with an updater parameter, rather than a feature flag. |
|
@Bartosz-Kruba We discussed this at the developer meeting, so if you do the switch to config - not OTPFeature as @hannesj suggest, then this looks ok. |
2b13dc5 to
fe23a05
Compare
fe23a05 to
bda7b90
Compare
|
Is there some reason the parameter is not called |
|
You want to run the formatter on your code. |
d8c270f to
41da116
Compare
|
I've changed the name of config parameter name and did a rebase. Had to go for other solution since |
There was a problem hiding this comment.
With this approach, the updater still instantiates the SiriFuzzyTripMatcher, and passes it to the SiriTimetableSnapshotSource.
Would it be easier to handle this flag only in the updater, and set SiriFuzzyTripMatcher = null when this feature is switched off?
SiriTimetableSnapshotSource would then only need a null-check.
41da116 to
8de6964
Compare
8de6964 to
08c4080
Compare
This is not so easy since SiriFuzzyTripMatcher is used for other things as well. It would require us to move around a lot of code. I would rather not do that since we are planning to refactor whole module anyway |
Summary
Add feature switch for matching ET messages on stops
Issue
closes #4346
Unit tests
No new unit tests added
Documentation
Updated documentation