-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Use enum instead of boolean for real time update semantics #5892
Use enum instead of boolean for real time update semantics #5892
Conversation
3bc9721
to
895f196
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## dev-2.x #5892 +/- ##
=============================================
- Coverage 69.45% 69.45% -0.01%
- Complexity 17064 17066 +2
=============================================
Files 1927 1928 +1
Lines 73578 73580 +2
Branches 7549 7550 +1
=============================================
+ Hits 51106 51107 +1
- Misses 19847 19848 +1
Partials 2625 2625 ☔ View full report in Codecov by Sentry. |
56b6bd5
to
716faa2
Compare
716faa2
to
95d5bc1
Compare
src/ext/java/org/opentripplanner/ext/siri/updater/EstimatedTimetableSource.java
Outdated
Show resolved
Hide resolved
src/ext/java/org/opentripplanner/ext/siri/updater/SiriETHttpTripUpdateSource.java
Outdated
Show resolved
Hide resolved
src/main/java/org/opentripplanner/updater/trip/TimetableSnapshotSource.java
Outdated
Show resolved
Hide resolved
src/main/java/org/opentripplanner/updater/trip/UpdateIncrementality.java
Outdated
Show resolved
Hide resolved
/** | ||
* The update contains all available realtime information for all trips in a given feed. The | ||
* previously stored updates must be deleted and replaced with the information from this one. | ||
*/ | ||
FULL_DATASET, | ||
/** | ||
* The update contains only information for a subset of all trips. If there is information stored | ||
* from a previous realtime update it must be kept in order to have a complete picture of all | ||
* trips. | ||
*/ | ||
DIFFERENTIAL, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Btw does SIRI itself have some similar thing? I'm just wondering since we usually tell in the javadoc what are the matching SIRI values.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a little bit of code that suggests that Siri updates can either be FULL_DATASET or DIFFERENTIAL but I don't see the former being ever returned. That's a lot of words to say "I don't know".
Summary
In #5871 we discussed that the boolean argument indicating if a realtime update is a full or an incremental one should be replaced with an enum, which this PR does.
Issue
#4816
@vpaturet @habrahamsson-skanetrafiken Do you want to have this for SIRI as well?