-
Notifications
You must be signed in to change notification settings - Fork 53
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
Merge (current/future) feed versions for MTC #186
Merged
+1,603
−284
Merged
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
fa9ec49
initial work on merge feeds for MTC
landonreed 8f8f6c4
Merge branch 'dev' into merge-feed-versions-mtc
landonreed 9e76476
refactor(feed-merge): handle merging projects + two versions for feed…
landonreed cf7208c
Merge remote-tracking branch 'origin/fix-gtfs-plus-upload-job-fixes' …
landonreed b6d1058
feat(merge-feeds): add MTC merge feeds strategy
landonreed 2fc62d1
refactor(job): remove unused job type
landonreed 1e7014b
refactor(merge-feeds): improve comments, add job#validationResult
landonreed c4109c4
refactor: address PR comments
landonreed f84dd4c
build(pom): update gtfs-lib to snapshot version for testing
landonreed adb9b0d
Merge branch 'dev' into merge-feed-versions-mtc
bc0b450
test(merge-feeds): add tests for MTC and REGIONAL merge types
landonreed 10c253f
Merge branch 'dev' into merge-feed-versions-mtc
fb3a2d8
refactor(junit): refactor tests to use junit4
landonreed 72c57f6
build(pom): add junit 4
landonreed 6b06107
test: create database if not exists
landonreed c3b9c9e
test: add log
landonreed b0f0260
test(ci): create database using travis
landonreed 97e742f
build(travis): always create postgres db for tests
9860110
Merge branch 'dev' into merge-feed-versions-mtc
landonreed d94f40e
refactor(merge-feeds): address PR comments
landonreed 126f61d
fix(merge-feeds): address remaining PR comments
landonreed d2276a2
build(pom): bump gtfs-lib to 4.3.3
6d9db08
fix(merge-feeds): add test for errors; fix missing stop_code bug
landonreed bcc5cbb
build(travis): remove oraclejdk8 to fix build
04c9c47
build(travis): use jdk 8 and linux trusty dist
landonreed 7f69f67
refactor(merge-feeds): improve error message for agency_id mismatch
landonreed a590fc3
build(pom): update gtfs-lib to 4.3.4
landonreed f81ba52
Merge branch 'dev' into merge-feed-versions-mtc
landonreed b9e95a0
refactor(merge-feeds): add description for exception
landonreed File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
20 changes: 20 additions & 0 deletions
20
src/main/java/com/conveyal/datatools/manager/gtfsplus/CalendarAttribute.java
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package com.conveyal.datatools.manager.gtfsplus; | ||
|
||
import com.conveyal.gtfs.model.Entity; | ||
|
||
import javax.naming.OperationNotSupportedException; | ||
import java.sql.PreparedStatement; | ||
import java.sql.SQLException; | ||
|
||
public class CalendarAttribute extends Entity { | ||
|
||
private static final long serialVersionUID = 1L; | ||
|
||
public String service_id; | ||
public String service_description; | ||
|
||
@Override public void setStatementParameters(PreparedStatement statement, boolean setDefaultId) { | ||
throw new UnsupportedOperationException( | ||
"Cannot call setStatementParameters because loading a GTFS+ table into RDBMS is unsupported."); | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
src/main/java/com/conveyal/datatools/manager/gtfsplus/Direction.java
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package com.conveyal.datatools.manager.gtfsplus; | ||
|
||
import com.conveyal.gtfs.model.Entity; | ||
|
||
import java.sql.PreparedStatement; | ||
import java.sql.SQLException; | ||
|
||
public class Direction extends Entity { | ||
landonreed marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
private static final long serialVersionUID = 1L; | ||
|
||
public String route_id; | ||
public int direction_id; | ||
public String direction; | ||
|
||
|
||
@Override | ||
public void setStatementParameters(PreparedStatement statement, boolean setDefaultId) throws SQLException { | ||
throw new UnsupportedOperationException( | ||
"Cannot call setStatementParameters because loading a GTFS+ table into RDBMS is unsupported."); | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
src/main/java/com/conveyal/datatools/manager/gtfsplus/FareRiderCategory.java
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package com.conveyal.datatools.manager.gtfsplus; | ||
|
||
import com.conveyal.gtfs.model.Entity; | ||
|
||
import java.sql.PreparedStatement; | ||
import java.sql.SQLException; | ||
import java.time.LocalDate; | ||
|
||
public class FareRiderCategory extends Entity { | ||
landonreed marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
private static final long serialVersionUID = 1L; | ||
|
||
public String fare_id; | ||
public int rider_category_id; | ||
public double price; | ||
public LocalDate expiration_date; | ||
public LocalDate commencement_date; | ||
|
||
@Override | ||
public void setStatementParameters(PreparedStatement statement, boolean setDefaultId) throws SQLException { | ||
throw new UnsupportedOperationException( | ||
"Cannot call setStatementParameters because loading a GTFS+ table into RDBMS is unsupported."); | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
src/main/java/com/conveyal/datatools/manager/gtfsplus/FareZoneAttribute.java
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package com.conveyal.datatools.manager.gtfsplus; | ||
|
||
import com.conveyal.gtfs.model.Entity; | ||
|
||
import java.sql.PreparedStatement; | ||
import java.sql.SQLException; | ||
|
||
public class FareZoneAttribute extends Entity { | ||
landonreed marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
private static final long serialVersionUID = 1L; | ||
|
||
public String zone_id; | ||
public String zone_name; | ||
|
||
@Override | ||
public void setStatementParameters(PreparedStatement statement, boolean setDefaultId) throws SQLException { | ||
throw new UnsupportedOperationException( | ||
"Cannot call setStatementParameters because loading a GTFS+ table into RDBMS is unsupported."); | ||
} | ||
} |
Oops, something went wrong.
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.
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.
Needs javadoc
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.
Same as above comment: I'm not really sure what I would say for each of these tables. We don't really have javadoc for these entities on the GTFS side of things, so I wonder why we would need it here.