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: 1829 flex invalid prior notice day range #1858

Merged
merged 14 commits into from
Oct 1, 2024

Conversation

qcdyx
Copy link
Contributor

@qcdyx qcdyx commented Oct 1, 2024

Summary:
Closes #1829
add a new notice for flex feed: invalid_prior_notice_day_range

Expected behavior:
if the flex feed's prior last day is greater than prior start day, then generate this error.
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 Oct 1, 2024 that may be closed by this pull request
Copy link
Contributor

github-actions bot commented Oct 1, 2024

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

github-actions bot commented Oct 1, 2024

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

github-actions bot commented Oct 1, 2024

📝 Acceptance Test Report

📋 Summary

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

📊 Notices Comparison

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

No changes were detected due to the code change.

Dropped Errors (0 out of 1588 datasets, ~0%) ✅

No changes were detected due to the code change.

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

No changes were detected due to the code change.

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

No changes were detected due to the code change.

🛡️ Corruption Check

0 out of 1588 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 -- 4.09 4.16 ⬆️+0.07
Median -- 1.42 1.49 ⬆️+0.06
Standard Deviation -- 11.77 11.81 ⬆️+0.04
Minimum in References Reports us-california-flex-v2-developer-test-feed-1-gtfs-1817 0.51 0.64 ⬆️+0.13
Maximum in Reference Reports gb-unknown-uk-aggregate-feed-gtfs-2014 300.87 299.48 ⬇️-1.39
Minimum in Latest Reports us-california-city-of-wasco-gtfs-1788 0.55 0.52 ⬇️-0.03
Maximum in Latest Reports gb-unknown-uk-aggregate-feed-gtfs-2014 300.87 299.48 ⬇️-1.39

@qcdyx qcdyx marked this pull request as draft October 1, 2024 14:13
@qcdyx qcdyx marked this pull request as ready for review October 1, 2024 16:32
# Resolved Conflicts:
#	main/src/main/java/org/mobilitydata/gtfsvalidator/validator/BookingRulesEntityValidator.java
#	main/src/test/java/org/mobilitydata/gtfsvalidator/validator/BookingRulesEntityValidatorTest.java
Copy link
Contributor

github-actions bot commented Oct 1, 2024

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

github-actions bot commented Oct 1, 2024

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.

@qcdyx qcdyx requested a review from jcpitre October 1, 2024 17:20
Copy link
Contributor

github-actions bot commented Oct 1, 2024

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

github-actions bot commented Oct 1, 2024

📝 Acceptance Test Report

📋 Summary

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

📊 Notices Comparison

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

No changes were detected due to the code change.

Dropped Errors (0 out of 1588 datasets, ~0%) ✅

No changes were detected due to the code change.

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

No changes were detected due to the code change.

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

No changes were detected due to the code change.

🛡️ Corruption Check

0 out of 1588 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 -- 4.06 4.09 ⬆️+0.03
Median -- 1.42 1.46 ⬆️+0.04
Standard Deviation -- 11.73 11.68 ⬇️-0.05
Minimum in References Reports us-florida-citrus-county-transit-gtfs-630 0.50 0.62 ⬆️+0.12
Maximum in Reference Reports gb-unknown-uk-aggregate-feed-gtfs-2014 303.22 302.09 ⬇️-1.13
Minimum in Latest Reports us-massachusetts-massachusetts-area-express-max-gtfs-431 0.50 0.51 ⬆️+0.01
Maximum in Latest Reports gb-unknown-uk-aggregate-feed-gtfs-2014 303.22 302.09 ⬇️-1.13

@emmambd
Copy link
Contributor

emmambd commented Oct 1, 2024

@qcdyx On a QA side, works as expected! Here's the test data I made for this.

dsi.zip

@qcdyx
Copy link
Contributor Author

qcdyx commented Oct 1, 2024

@jcpitre
image

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 bb23bf3 into master Oct 1, 2024
333 checks passed
@qcdyx qcdyx deleted the 1829-flex-invalid_prior_notice_day_range branch October 1, 2024 19:34
@emmambd
Copy link
Contributor

emmambd commented Oct 1, 2024

I'm confused by the "prior notice last day earlier than start day" addition. Can we remove this? cc @qcdyx

Copy link
Contributor

github-actions bot commented Oct 1, 2024

📝 Acceptance Test Report

📋 Summary

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

📊 Notices Comparison

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

No changes were detected due to the code change.

Dropped Errors (0 out of 1588 datasets, ~0%) ✅

No changes were detected due to the code change.

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

No changes were detected due to the code change.

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

No changes were detected due to the code change.

🛡️ Corruption Check

0 out of 1588 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 -- 4.10 4.14 ⬆️+0.04
Median -- 1.42 1.46 ⬆️+0.05
Standard Deviation -- 11.82 11.71 ⬇️-0.11
Minimum in References Reports us-oregon-high-desert-point-gtfs-636 0.51 0.53 ⬆️+0.02
Maximum in Reference Reports gb-unknown-uk-aggregate-feed-gtfs-2014 307.40 299.17 ⬇️-8.22
Minimum in Latest Reports us-oregon-hut-airport-shuttle-gtfs-635 0.55 0.52 ⬇️-0.02
Maximum in Latest Reports gb-unknown-uk-aggregate-feed-gtfs-2014 307.40 299.17 ⬇️-8.22

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.

Flex: invalid_prior_notice_day_range
3 participants