Add validation for missing calls in SIRI update - #5403
Merged
vpaturet merged 2 commits intoOct 16, 2023
Conversation
Codecov ReportAll modified lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dev-2.x #5403 +/- ##
==========================================
Coverage 66.60% 66.60%
- Complexity 15279 15284 +5
==========================================
Files 1790 1790
Lines 69364 69371 +7
Branches 7306 7309 +3
==========================================
+ Hits 46197 46205 +8
Misses 20690 20690
+ Partials 2477 2476 -1
☔ View full report in Codecov by Sentry. |
vpaturet
force-pushed
the
fix_siri_missing_calls_validation
branch
from
October 6, 2023 14:57
626b3f9 to
5b8fa6b
Compare
Contributor
Author
|
@lassetyr I updated the validation to reject updates with less than 2 calls and those that refer to unknown stops. |
leonardehrenfried
requested review from
leonardehrenfried
and removed request for
leonardehrenfried
October 10, 2023 10:07
lassetyr
approved these changes
Oct 16, 2023
leonardehrenfried
approved these changes
Oct 16, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
When a SIRI update creates a new trip without estimated calls, the update fails with the following error message:
This PR ensures that the SIRI updater checks earlier in the process if the added trip has no call and reports a validation error.
@lassetyr should the validation reject as well EstimatedVehicleJourneys with less than 2 calls?
Issue
No
Unit tests
Added unit test
Documentation
No