-
Notifications
You must be signed in to change notification settings - Fork 38
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
Properly load/export/snapshot feeds w/ mixed calendar definitions. #287
Conversation
Codecov Report
@@ Coverage Diff @@
## dev #287 +/- ##
=========================================
Coverage 65.35% 65.35%
Complexity 880 880
=========================================
Files 135 135
Lines 6743 6749 +6
Branches 794 793 -1
=========================================
+ Hits 4407 4411 +4
- Misses 2037 2038 +1
- Partials 299 300 +1
Continue to review full report at Codecov.
|
src/main/java/com/conveyal/gtfs/loader/JdbcGtfsSnapshotter.java
Outdated
Show resolved
Hide resolved
src/main/java/com/conveyal/gtfs/loader/JdbcGtfsSnapshotter.java
Outdated
Show resolved
Hide resolved
numRecordsSearched, | ||
ComparatorMatcherBuilder.<Integer>usingNaturalOrdering().greaterThan(0) | ||
); | ||
if (mismatches != null) { | ||
if (!foundRecord && mismatches != null) { |
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.
Conditional could probably use a comment.
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.
@evansiroky, this looks great. I have a few suggestions for improvement which I've included in #288. If those look good to you, we can go ahead and merge.
Mixed calendar definition fix ltr
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.
Looks great!
🎉 This PR is included in version 6.0.3 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Checklist
dev
before they can be merged tomaster
)Description
Fixes ibi-group/datatools-server#313. When snapshotting feeds with a mixture of calendar definitions (some calendar + calendar_dates and some calendar_date only service_ids), the auto-generated calendar entries weren't being created thus causing problems in datatools. This fixes that and adds a test case to prove it.