Use SIRI-ET and GTFS-RT TripUpdates at the same time - #6363
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## dev-2.x #6363 +/- ##
=============================================
+ Coverage 69.77% 69.85% +0.07%
- Complexity 18053 18115 +62
=============================================
Files 2060 2069 +9
Lines 77122 77213 +91
Branches 7856 7842 -14
=============================================
+ Hits 53814 53938 +124
+ Misses 20556 20522 -34
- Partials 2752 2753 +1 ☔ View full report in Codecov by Sentry. |
f80a8a6 to
5f8eb10
Compare
vpaturet
left a comment
There was a problem hiding this comment.
This looks good. Just minor comments.
vpaturet
left a comment
There was a problem hiding this comment.
You probably don't need to bump the serialization id since you change only a transient field.
|
So removing fields doesn't count as breaking backwards-compatibility? |
I think the idea is that the transient field is not serialized, so the serialized graph is still compatible and will load without error. |
|
Alright then. The label is gone. |
abyrd
left a comment
There was a problem hiding this comment.
Looking good so far. Just added a few questions that would reassure me I'm understanding what I'm seeing. In addition to those line comments, would it be correct to say that the refactoring described in the Javadoc on TimetableSnapshotManager has now been carried out within this PR? Should that Javadoc be updated?
These observations are absolutely correct and I have updated the Javadoc. |
abyrd
left a comment
There was a problem hiding this comment.
Thanks for confirming those points. This looks like a step in the right direction to me, thanks for all your work on this. Understood about any renaming / documentation updates coming in a subsequent step, which I'd be happy to contribute to.
Summary
Previously it was not possible to run SIRI-ET and GTFS-RT TripUpdates in the same instance. This PR changes it by cleaning up the relationships of the various real-time components.
A class diagram to show the new relationships is available in the issue #6348.
Issue
Closes #6348
Ref #4002
Unit tests
Some unit tests updated.
Documentation
The new class diagram is available in this PR in
doc/dev/diagrams/TimetableSnapshotManager.svg.Bumping the serialization version id
While no actual entities have changed, but the
TimetableRepositoryhas which is serialized into the graph. Therefore we need to bump it.cc @fahrplaner