Closed praneethd7 closed 5 months ago
Thanks for opening this pull request! You're awesome. We use semantic commit messages to streamline the release process. Before your pull request can be merged, you should update your pull request title to start with a semantic prefix. Examples of titles with semantic prefixes:
fix: Bug with ssl network connections + Java module permissions.
feat: Initial support for multiple @PrimaryKey annotations
.docs: update RELEASE.md with new process
To get this PR to the finish line, please do the following:Hello @praneethd7, thank you for contributing to the GTFS Validator. I have two pieces of feedback:
Hi @qcdyx! Thank you for your suggestions. I have re-formatted the code according to the Google Java format. Is there a way to know which are those 22 feeds that have this error? Also, I am not sure if I have access to all of them. Please let me know.😄
Hello @praneethd7 Yes, you have access to those 22 feeds. To get them, goto https://github.com/MobilityData/gtfs-validator/actions/runs/9197621511?pr=1753, scroll down to bottom, find the [acceptance_test_report] artifact(https://github.com/MobilityData/gtfs-validator/actions/runs/9197621511/artifacts/1541824946), and download it. Unzip acceptance_test_report.zip, open acceptance_test_report.json and search for "sourceUrl", you can click the link and download the dataset. Don't forget to format code again since we merge master branch into your branch.
@qcdyx Thank you for helping me with the code formatting. I have manually checked the 22 feeds and they all have single_shape_point
error. I have verified the notice counts for each feed and everything seems to be reported correctly. I guess we are good to go :)
@emmambd Should we consult with the spec team to verify the naming and description of the single_shape_point notice?
@qcdyx No, that one's for me to review! @praneethd7 The name looks great! I made a minor comment on the description for the sake of being generic.
@emmambd @qcdyx Thank you for the suggestions. Changed the rule description
@praneethd7 Great, you PR is merged. Thanks again for contributing to GTFS Validator.
:partying_face: Congrats on getting your first pull request merged!
Summary:
Reference - #1733. Some GTFS feeds have shapes with a single shape point. These route shapes cannot be visualized on any GIS software (which requires LineString) and are therefore indicative of an error in the creation (as a line requires a minimum of two points)
Expected behavior:
The new rule flags such cases with the
single_shape_point
notice which reports theshape_id
andcsvRowNumber
of the shape with a single shape point(one row in the feed).Example Feed - LANTA GTFS:
Please make sure these boxes are checked before submitting your pull request - thanks!
gradle test
to make sure you didn't break anything