Make maxFlexTripDuration configurable - #4642
Conversation
|
|
||
| Duration maxTransferDuration; | ||
|
|
||
| if (json.exist("maxTransferDurationSeconds")) { |
There was a problem hiding this comment.
I'm usually with Thomas here. People are just as likely to overlook the config change when you wait so you might as well make it backwards-incompatible now.
There was a problem hiding this comment.
I will remove the compatibility
| }, | ||
| "flex" : { | ||
| "maxTransferDurationSeconds" : 240 | ||
| "maxTransferDuration" : "30m" |
There was a problem hiding this comment.
This is an unusually long example which can make performance quite bad.
af70fe4 to
035526b
Compare
Also make maxFlexTripDuration configurable
035526b to
e21e576
Compare
e21e576 to
3751a23
Compare
|
Ah, I see the example config test is doing its job. |
Codecov ReportBase: 60.70% // Head: 60.71% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## dev-2.x #4642 +/- ##
==========================================
Coverage 60.70% 60.71%
+ Complexity 12240 12239 -1
==========================================
Files 1579 1579
Lines 63414 63431 +17
Branches 6990 6990
==========================================
+ Hits 38498 38511 +13
- Misses 22740 22743 +3
- Partials 2176 2177 +1
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. |
Summary
Currently
maxFlexTripDurationis hard-coded in the flex calculator. Make it configurable from the router config.Also remove unnecessary
FlexParameters, by just usingFlexConfigwhere needed and migratemaxTransferDurationSecondsto duration-typedmaxTransferDuration