-
Notifications
You must be signed in to change notification settings - Fork 103
feat: added fare_leg_join_rules.txt
schema and validation
#1956
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
Conversation
This is close to covering #1932 as well if |
@emmambd
is there a check that needs to be modified/added to cover #1932? |
📝 Acceptance Test Report📋 Summary✅ The rule acceptance has passed for commit 207ef2e 📊 Notices ComparisonNew Errors (0 out of 1801 datasets, ~0%) ✅No changes were detected due to the code change. Dropped Errors (0 out of 1801 datasets, ~0%) ✅No changes were detected due to the code change. New Warnings (0 out of 1801 datasets, ~0%) ✅No changes were detected due to the code change. Dropped Warnings (0 out of 1801 datasets, ~0%) ✅No changes were detected due to the code change. 🛡️ Corruption Check0 out of 1801 sources (~0 %) are corrupted. ⏱️ Performance Assessment📈 Validation TimeAssess the performance in terms of seconds taken for the validation process.
📜 Memory Consumption
|
* </ul> | ||
*/ | ||
@GtfsValidator | ||
public class FareLegJoinRuleValidator extends FileValidator { |
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.
Let's include shouldCallValidate
(logic based on the missing file method). This does not improve performance, but it's good practice. We can get a log on why some validators don't run without digging too deeply into the code.
📝 Acceptance Test Report📋 Summary✅ The rule acceptance has passed for commit a90fef1 📊 Notices ComparisonNew Errors (0 out of 1801 datasets, ~0%) ✅No changes were detected due to the code change. Dropped Errors (0 out of 1801 datasets, ~0%) ✅No changes were detected due to the code change. New Warnings (0 out of 1801 datasets, ~0%) ✅No changes were detected due to the code change. Dropped Warnings (0 out of 1801 datasets, ~0%) ✅No changes were detected due to the code change. 🛡️ Corruption Check0 out of 1801 sources (~0 %) are corrupted. ⏱️ Performance Assessment📈 Validation TimeAssess the performance in terms of seconds taken for the validation process.
📜 Memory Consumption
|
📝 Acceptance Test Report📋 Summary✅ The rule acceptance has passed for commit e6bbc44 📊 Notices ComparisonNew Errors (0 out of 1801 datasets, ~0%) ✅No changes were detected due to the code change. Dropped Errors (0 out of 1801 datasets, ~0%) ✅No changes were detected due to the code change. New Warnings (0 out of 1801 datasets, ~0%) ✅No changes were detected due to the code change. Dropped Warnings (0 out of 1801 datasets, ~0%) ✅No changes were detected due to the code change. 🛡️ Corruption Check0 out of 1801 sources (~0 %) are corrupted. ⏱️ Performance Assessment📈 Validation TimeAssess the performance in terms of seconds taken for the validation process.
📜 Memory Consumption
|
@cka-y everything looks good, just one detail I'd like to double check with you and @emmambd. For We might want to show |
@skalexch if i'm understanding properly, you're suggesting to change the display order of the notices so that |
@cka-y I'm suggesting the addition of another |
Currently the logic is:
I think the current logic does cover your suggestion but I could be mistaking. |
@cka-y the However, from_network_id and to_network_id are required regardless of each other. So even before proceeding to validating the FK, from_network_id and to_network_id both need to exist. Basically, this should trigger a
|
Looks good! |
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
📝 Acceptance Test Report📋 Summary✅ The rule acceptance has passed for commit 4700a7a 📊 Notices ComparisonNew Errors (0 out of 1801 datasets, ~0%) ✅No changes were detected due to the code change. Dropped Errors (0 out of 1801 datasets, ~0%) ✅No changes were detected due to the code change. New Warnings (0 out of 1801 datasets, ~0%) ✅No changes were detected due to the code change. Dropped Warnings (0 out of 1801 datasets, ~0%) ✅No changes were detected due to the code change. 🛡️ Corruption Check0 out of 1801 sources (~0 %) are corrupted. ⏱️ Performance Assessment📈 Validation TimeAssess the performance in terms of seconds taken for the validation process.
📜 Memory Consumption
|
Summary:
fare_leg_join_rules.txt
schema.network_id
found infare_leg_join_rules.txt
matches an entry innetworks.txt
orroutes.txt
.from_stop_id
orto_stop_id
is present but the other is omitted, ensuring both are supplied consistently.Expected behavior:

Please make sure these boxes are checked before submitting your pull request - thanks!
gradle test
to make sure you didn't break anything