Skip to content
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

fix: StopZoneIdValidator #972

Merged
merged 11 commits into from
Sep 3, 2021
Merged

fix: StopZoneIdValidator #972

merged 11 commits into from
Sep 3, 2021

Conversation

lionel-nj
Copy link
Contributor

closes #950

Summary:

This PR provides support to check STATION or ENTRANCE in StopZoneIdValidator.

Expected behavior:

No notice should be generated for a record from stops.txt if stop.zone_id is empty AND stops.location_type=1 or stops.location_type=2

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 "feat: [new feature short description]". Title must follow the Conventional Commit Specification(https://www.conventionalcommits.org/en/v1.0.0/).
  • Linked all relevant issues
  • [ ] Include screenshot(s) showing how this pull request works and fixes the issue(s)

- rework unit tests
@lionel-nj lionel-nj self-assigned this Aug 26, 2021
Copy link
Collaborator

@aababilov aababilov left a comment

Choose a reason for hiding this comment

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

I also recommend to add stopName field to the notice and pass GtfsStop as a parameter for convenience.

Honestly, I wonder why GTFS standard has this requirement this way. Why can't zone_id be provided for a station and apply to all child platforms? However, Google implementation agrees with the official GTFS description.

RULES.md Outdated Show resolved Hide resolved
Copy link
Collaborator

@aababilov aababilov left a comment

Choose a reason for hiding this comment

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

LGTM, just one minor remark. Thanks a lot!

@lionel-nj
Copy link
Contributor Author

Thanks for reviewing @aababilov!

@lionel-nj lionel-nj merged commit 406775e into master Sep 3, 2021
@lionel-nj lionel-nj deleted the fix/StopZoneIdValidator branch September 3, 2021 14:25
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.

fix: check stops.zone_id presence
3 participants