Conversation
… and test conditionally require
…onally required fields as each
…from stops, for now, to minimiz
Codecov Report
@@ Coverage Diff @@
## dev #312 +/- ##
============================================
+ Coverage 66.15% 66.63% +0.47%
- Complexity 928 998 +70
============================================
Files 136 146 +10
Lines 6838 7217 +379
Branches 816 850 +34
============================================
+ Hits 4524 4809 +285
- Misses 2024 2109 +85
- Partials 290 299 +9
Continue to review full report at Codecov.
|
| .idea/ | ||
| target/ | ||
|
|
||
| lambda$*.json No newline at end of file |
There was a problem hiding this comment.
I think this is related to running the snapshot related unit tests under Windows. Instead of using:
src\test\resources\snapshots\com\conveyal\gtfs\graphql\GTFSGraphQLTest\canFetchAgencies-0.json
the following is created instead:
src\test\resources\snapshots\com\conveyal\gtfs\graphql\GTFSGraphQLTest\lambda$canFetchAgencies$7-0.json
This is repeated for all 22 snapshot unit tests. I think it is related to how the paths are interpreted in Windows and maybe similar to a fix that was put in place for otp-middleware.
For now, I have added this to git ignore so I don't accidentally commit them. Once I have addressed I will remove.
refactor: re-order stops/fare_rules for ref check
…Tracker and NewTripTimesValidat
…n field referential integrity f
src/main/java/com/conveyal/gtfs/loader/ConditionalCheckType.java
Outdated
Show resolved
Hide resolved
src/main/java/com/conveyal/gtfs/loader/ConditionalRequirement.java
Outdated
Show resolved
Hide resolved
evansiroky
left a comment
There was a problem hiding this comment.
Please add tests for fetching GraphQL for the new tables as mentioned.
…attributions and translations
|
Assigning to @binh-dam-ibigroup since there have been a few commits since his approval. |
binh-dam-ibigroup
left a comment
There was a problem hiding this comment.
LGTM. Please address the comment formatting and typo before merging. (My other code suggestions are not blocking.)
src/main/java/com/conveyal/gtfs/loader/conditions/ConditionalRequirement.java
Outdated
Show resolved
Hide resolved
src/main/java/com/conveyal/gtfs/loader/conditions/FieldInRangeCheck.java
Outdated
Show resolved
Hide resolved
src/main/java/com/conveyal/gtfs/loader/conditions/FieldIsEmptyCheck.java
Outdated
Show resolved
Hide resolved
src/main/java/com/conveyal/gtfs/loader/conditions/FieldInRangeCheck.java
Show resolved
Hide resolved
binh-dam-ibigroup
left a comment
There was a problem hiding this comment.
Please consider changes from #322 that should address ibi-group/datatools-server#387 (review).
Add stop_times linked fields continuous_pickup, continuous_drop_off.
binh-dam-ibigroup
left a comment
There was a problem hiding this comment.
Should be good now I think
|
@landonreed - TODO: add a BREAKING CHANGE commit. |
| pattern_stop.drop_off_type = 3; | ||
| pattern_stop.pickup_type = 4; | ||
| pattern_stop.continuous_pickup = 5; | ||
| pattern_stop.continuous_drop_off = 6; |
There was a problem hiding this comment.
I don't think these invalid values should be allowed to be written to the database through JdbcTableWriter. But perhaps that's an issue for another day.
Checklist
devbefore they can be merged tomaster)Description
This PR seeks to address the changes that have been made to the GTFS spec between Augusut 2018 and present. In particular, this PR is looking to enhance GTFS-lib by including conditionally required field checks which are now part of the GTFS spec. Initial work to determine the required updates can be reviewed here:
https://docs.google.com/document/d/1J_RlOx6wUml_fGhxX6pW1dr1-JKPMInia-73FTr3LJ8/edit
Current Breaking Changes
Routes -> continuous_pickup (New field)
Routes -> continuous_drop_off (New field)
Stop Times -> continuous_pickup (New field)
Stop Times -> continuous_drop_off (New field)
Stop -> platform_code (New field)
Stop -> wheelchair_boarding (Type change from String to Int)
Feed Info -> default_lang (New field)
Feed Info -> feed_contact_email (New field)
Feed Info -> feed_contact_url (New field)