-
Notifications
You must be signed in to change notification settings - Fork 101
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
feat: add StopTimeTripWithoutTimes validator #1474
base: master
Are you sure you want to change the base?
Conversation
✅ Rule acceptance tests passed. |
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.
LGTM
* We can't generate the ERROR notice block_trips_with_overlapping_stop_times for the same trip | ||
* because we are missing time information |
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.
Is it possible that stop times are missing and there is no error?
@isabelle-dr can you review this wording?
If I understand properly, this notice is different from the other ones in the sense that it informs that a notice could not have been checked. I saw that this was briefly discussed in the issue related, but this is a broader question of what to do when portions of this validator don't run (and a notice could not have been checked). This is the case for plenty of these validator notices and I think they should be treated differently since it's not technically a spec violation. |
We should probably have discussed this in a bit more detail before opening the PR, sorry @KClough. 😕 I believe there are preferred ways to solve this problem, with a section in the validator report that informs of the list of notices that could not have been checked. |
@isabelle-dr I assumed we'd end up doing both:
|
✅ Rule acceptance tests passed. |
We are aligned there on the second point. I would like to keep the list of notices in the "Specification Compliance report" section as true spec violations. If not, we risk making this section more noisy, which is an incentive to ignore it. Sorry for the misalignment there, I hope we can recover some of the work in this PR. |
Summary:
Summarize the changes in the pull request including how it relates to any issues (include the #number, or link them).
Partially resolves #1089
Expected behavior:
Adds a new validator that reports an error if a trip includes stop time that are missing either arrival time or departure time.
Please make sure these boxes are checked before submitting your pull request - thanks!
gradle test
to make sure you didn't break anything