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

feat: 1786 exit gates pathway mode7 must not be bidirectional #1808

Merged

Conversation

qcdyx
Copy link
Contributor

@qcdyx qcdyx commented Aug 30, 2024

Summary:

Closes #1786
added new validation rule: bidirectional_exit_gateway

Expected behavior:
When a entry in Pathway.txt has pathway mode 7 and is bidirectional, an error bidirectional_exit_gateway is generated.
image

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
  • Add or update any needed documentation to the repo
  • 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)

@qcdyx qcdyx linked an issue Aug 30, 2024 that may be closed by this pull request
Copy link
Contributor

This contribution does not follow the conventions set by the Google Java style guide. Please run the following command line at the root of the project to fix formatting errors: ./gradlew goJF.

Copy link
Contributor

📝 Acceptance Test Report

📋 Summary

✅ The rule acceptance has passed for commit 9b2eb12
Download the full acceptance test report here (report will disappear after 90 days).

📊 Notices Comparison

New Errors (1 out of 1575 datasets, ~0%) ✅

Details of new errors due to code change, which is less than the provided threshold of 1%.

Dataset Notice Code
us-district-of-columbia-washington-wmata-gtfs-1847 bidirectional_exit_gates
Dropped Errors (0 out of 1575 datasets, ~0%) ✅

No changes were detected due to the code change.

New Warnings (0 out of 1575 datasets, ~0%) ✅

No changes were detected due to the code change.

Dropped Warnings (0 out of 1575 datasets, ~0%) ✅

No changes were detected due to the code change.

🛡️ Corruption Check

0 out of 1575 sources (~0 %) are corrupted.

⏱️ Performance Assessment

📈 Validation Time

Assess the performance in terms of seconds taken for the validation process.

Time Metric Dataset ID Reference (s) Latest (s) Difference (s)
Average -- 3.90 4.02 ⬆️+0.12
Median -- 1.34 1.43 ⬆️+0.08
Standard Deviation -- 11.41 11.40 ⬇️-0.01
Minimum in References Reports us-florida-citrus-county-transit-gtfs-630 0.50 0.65 ⬆️+0.15
Maximum in Reference Reports gb-unknown-uk-aggregate-feed-gtfs-2014 328.46 324.10 ⬇️-4.36
Minimum in Latest Reports us-california-city-of-wasco-gtfs-1788 0.53 0.53 ⬆️+0.00
Maximum in Latest Reports gb-unknown-uk-aggregate-feed-gtfs-2014 328.46 324.10 ⬇️-4.36

@emmambd
Copy link
Contributor

emmambd commented Aug 30, 2024

  1. As mentioned via Slack, the rule should be bidirectional_exit_gate not bidirectional_exit_gates
  2. Will pathways.txt be a part of the References in https://gtfs-validator.mobilitydata.org/rules.html?

@qcdyx
Copy link
Contributor Author

qcdyx commented Sep 4, 2024

bidirectional_exit_gate
image

Copy link
Contributor

github-actions bot commented Sep 4, 2024

📝 Acceptance Test Report

📋 Summary

✅ The rule acceptance has passed for commit 519e199
Download the full acceptance test report here (report will disappear after 90 days).

📊 Notices Comparison

New Errors (1 out of 1575 datasets, ~0%) ✅

Details of new errors due to code change, which is less than the provided threshold of 1%.

Dataset Notice Code
us-district-of-columbia-washington-wmata-gtfs-1847 bidirectional_exit_gate
Dropped Errors (0 out of 1575 datasets, ~0%) ✅

No changes were detected due to the code change.

New Warnings (0 out of 1575 datasets, ~0%) ✅

No changes were detected due to the code change.

Dropped Warnings (0 out of 1575 datasets, ~0%) ✅

No changes were detected due to the code change.

🛡️ Corruption Check

0 out of 1575 sources (~0 %) are corrupted.

⏱️ Performance Assessment

📈 Validation Time

Assess the performance in terms of seconds taken for the validation process.

Time Metric Dataset ID Reference (s) Latest (s) Difference (s)
Average -- 3.91 4.00 ⬆️+0.09
Median -- 1.37 1.44 ⬆️+0.07
Standard Deviation -- 11.32 11.38 ⬆️+0.06
Minimum in References Reports us-oregon-hut-airport-shuttle-gtfs-635 0.50 0.62 ⬆️+0.12
Maximum in Reference Reports gb-unknown-uk-aggregate-feed-gtfs-2014 328.10 328.42 ⬆️+0.33
Minimum in Latest Reports us-oregon-high-desert-point-gtfs-636 0.50 0.49 ⬇️-0.01
Maximum in Latest Reports gb-unknown-uk-aggregate-feed-gtfs-2014 328.10 328.42 ⬆️+0.33

@qcdyx
Copy link
Contributor Author

qcdyx commented Sep 4, 2024

@emmambd regarding question 2, yes, the new rule should appear in the rules.html. Based on #1517 and #1522, as long as comments are written for BidirectionalExitGateNotice class, a description for the new rule (birectional_exit_gate) should be included in the rules.html.

@qcdyx qcdyx requested a review from jcpitre September 5, 2024 12:34
Copy link
Contributor

@jcpitre jcpitre left a comment

Choose a reason for hiding this comment

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

LGTM

@qcdyx qcdyx merged commit 37ed5e7 into master Sep 5, 2024
336 checks passed
@qcdyx qcdyx deleted the 1786-exit-gates-pathway_mode7-must-not-be-bidirectional branch September 5, 2024 19:47
@qcdyx
Copy link
Contributor Author

qcdyx commented Sep 6, 2024

image

@emmambd
Copy link
Contributor

emmambd commented Sep 6, 2024

@qcdyx Can you share a screenshot of what the specific notice looks like? I wanted to make sure pathways.txt was linked in the references.

@qcdyx
Copy link
Contributor Author

qcdyx commented Sep 6, 2024

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.

Exit gates (pathway_mode=7) must not be bidirectional.
3 participants