Skip to content

Stops.txt type validation protobuf conversion#26

Merged
9 commits merged intomasterfrom
stops-type-validation-protobuf-conversion
Dec 5, 2019
Merged

Stops.txt type validation protobuf conversion#26
9 commits merged intomasterfrom
stops-type-validation-protobuf-conversion

Conversation

@ghost
Copy link
Copy Markdown

@ghost ghost commented Dec 5, 2019

Summary:

This PR adds parsing and validation of stops.txt as well as outputting it in protobuf binary format on disk

Expected behavior:

After executing Main.main(), a stops.pb file should exist in the output directory

Please make sure these boxes are checked before submitting your pull request - thanks!

  • Run the unit tests with gradle test to make sure you didn't break anything
  • Format the title like "Fix #<issue_number> - " (for example - "Fix Bug: Running using documented Docker documentation fails #1111 - Check for null value before using field")
  • Linked all relevant issues
  • Include screenshot(s) showing how this pull request works and fixes the issue(s)

Fabrice V added 9 commits November 29, 2019 15:32
-for Float and Integer types. Including range validation.
-refactor String validation to expose only GTFS types to client code (id and text)
-add validation code
  -specified format HH:MM:SS or H:MM:SS
-add unit testing of method
-add test to check for HHH:MM:SS rejection
# Conflicts:
#	src/main/java/org/mobilitydata/gtfsvalidator/conversion/CSVtoProtoConverter.java
#	src/main/java/org/mobilitydata/gtfsvalidator/rules/ValidationRules.java
#	src/main/java/org/mobilitydata/gtfsvalidator/util/GTFSTypeValidationUtils.java
#	src/test/java/org/mobilitydata/gtfsvalidator/util/GTFSTypeValidationUtilsTest.java
-required changes after merging PR #19 to master
# Conflicts:
#	src/main/java/org/mobilitydata/gtfsvalidator/util/GTFSTypeValidationUtils.java
#	src/test/java/org/mobilitydata/gtfsvalidator/util/GTFSTypeValidationUtilsTest.java
@ghost ghost requested a review from barbeau December 5, 2019 16:55
@ghost ghost self-assigned this Dec 5, 2019
@ghost ghost changed the title Stops type validation protobuf conversion Stops.txt type validation protobuf conversion Dec 5, 2019
Copy link
Copy Markdown
Member

@barbeau barbeau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Looking at this, though, brought up some other questions about the data pipeline. I'll open an issue on that.

@ghost
Copy link
Copy Markdown
Author

ghost commented Dec 5, 2019

LGTM

Looking at this, though, brought up some other questions about the data pipeline. I'll open an issue on that.

Yes, please do ! :)

@ghost ghost merged commit 6f3f424 into master Dec 5, 2019
@ghost ghost deleted the stops-type-validation-protobuf-conversion branch December 5, 2019 20:44
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant