-
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: pickup and drop off window validator #1935
base: master
Are you sure you want to change the base?
Conversation
📝 Acceptance Test Report📋 Summary✅ The rule acceptance has passed for commit 587efd4 📊 Notices ComparisonNew Errors (2 out of 1788 datasets, ~0%) ✅Details of new errors due to code change, which is less than the provided threshold of 1%.
Dropped Errors (0 out of 1788 datasets, ~0%) ✅No changes were detected due to the code change. New Warnings (0 out of 1788 datasets, ~0%) ✅No changes were detected due to the code change. Dropped Warnings (0 out of 1788 datasets, ~0%) ✅No changes were detected due to the code change. 🛡️ Corruption Check0 out of 1788 sources (~0 %) are corrupted. ⏱️ Performance Assessment📈 Validation TimeAssess the performance in terms of seconds taken for the validation process.
📜 Memory Consumption
|
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!
} | ||
|
||
@Override | ||
public boolean shouldCallValidate(ColumnInspector header) { |
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.
👍
Summary:
forbidden_arrival_or_departure_time
: Triggers when both arrival/departure times and pickup/drop-off windows are defined, which is not allowed.missing_pickup_or_drop_off_window
: Identifies cases where either the start or end pickup/drop-off window is missing but the other is present.invalid_pickup_drop_off_window
: Flags scenarios where the end pickup/drop-off window occurs before or at the same time as the start window.Expected behavior:
forbidden_arrival_or_departure_time
: This example showcases the dynamic display of columns (thedeparture_time
column is missing from display as it is not defined in the tested feed)missing_pickup_or_drop_off_window
:invalid_pickup_drop_off_window
:Please make sure these boxes are checked before submitting your pull request - thanks!
gradle test
to make sure you didn't break anything