MobilityData / gtfs-validator

Canonical GTFS Validator project for schedule (static) files.
https://gtfs-validator.mobilitydata.org/
Apache License 2.0
290 stars 101 forks source link

fix: Display empty values for feed_start_date and feed_end_date if there'sā€¦ #1798

Closed qcdyx closed 3 months ago

qcdyx commented 3 months ago

Summary: Closes #1790

image

Expected behavior:

Display empty values for feed_start_date and feed_end_date if there's no data for these two fields.

Please make sure these boxes are checked before submitting your pull request - thanks!

github-actions[bot] commented 3 months ago

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.

github-actions[bot] commented 3 months ago

šŸ“ Acceptance Test Report

šŸ“‹ Summary

āœ… The rule acceptance has passed for commit bc4f12886e48a8cb79836cc8cf958d5e4f4c926e Download the full acceptance test report here (report will disappear after 90 days).

šŸ“Š Notices Comparison

New Errors (0 out of 1563 datasets, ~0%) āœ…

No changes were detected due to the code change.

Dropped Errors (0 out of 1563 datasets, ~0%) āœ…

No changes were detected due to the code change.

New Warnings (0 out of 1563 datasets, ~0%) āœ…

No changes were detected due to the code change.

Dropped Warnings (0 out of 1563 datasets, ~0%) āœ…

No changes were detected due to the code change.

šŸ›”ļø Corruption Check

13 out of 1576 sources (~1 %) are corrupted. | Dataset | Ref Report Exists | Ref Report Readable | Latest Report Exists | Latest Report Readable | |-----------|-------------------|---------------------|----------------------|------------------------| | it-puglia-mobilita-e-trasporti-molfetta-gtfs-1147 | āœ… | N/A | āŒ | N/A | | it-regione-autonoma-della-sardegna-collegamenti-marittimi-grimaldi-gtfs-1192 | āœ… | N/A | āŒ | N/A | | it-regione-autonoma-della-sardegna-collegamenti-marittimi-moby-gtfs-1048 | āœ… | N/A | āŒ | N/A | | it-regione-autonoma-della-sardegna-collegamenti-marittimi-sardinia-ferries-gtfs-1050 | āœ… | N/A | āŒ | N/A | | it-regione-autonoma-della-sardegna-collegamenti-marittimi-tirrenia-gtfs-1051 | āœ… | N/A | āŒ | N/A | | mexico-jalisco-direccion-general-de-transporte-publico-de-puerto-vallarta-gtfs-2034 | āœ… | N/A | āŒ | N/A | | mexico-oaxaca-secretaria-de-movilidad-oaxaca-gtfs-2033 | āœ… | N/A | āŒ | N/A | | mx-jalisco-secretaria-de-movilidad-del-estado-de-jalisco-gtfs-1926 | āœ… | N/A | āŒ | N/A | | pe-aeroexpreso-gtfs-1985 | āœ… | N/A | āŒ | N/A | | tr-kocaeli-kocaeli-gtfs-1122 | āœ… | N/A | āŒ | N/A | | us-arizona-national-park-service-gtfs-1905 | āœ… | N/A | āŒ | N/A | | us-ohio-athens-public-transit-gtfs-4 | āœ… | N/A | āŒ | N/A | | us-wisconsin-beloit-transit-gtfs-392 | āœ… | N/A | āŒ | N/A |

ā±ļø 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.79 | 3.89 | ā¬†ļø+0.11 | | Median | -- | 1.35 | 1.43 | ā¬†ļø+0.08 | | Standard Deviation | -- | 10.59 | 10.85 | ā¬†ļø+0.26 | | Minimum in References Reports | us-massachusetts-massachusetts-area-express-max-gtfs-431 | 0.51 | 0.54 | ā¬†ļø+0.03 | | Maximum in Reference Reports | gb-unknown-uk-aggregate-feed-gtfs-2014 | 287.39 | 299.06 | ā¬†ļø+11.66 | | Minimum in Latest Reports | us-massachusetts-massachusetts-area-express-max-gtfs-431 | 0.51 | 0.54 | ā¬†ļø+0.03 | | Maximum in Latest Reports | gb-unknown-uk-aggregate-feed-gtfs-2014 | 287.39 | 299.06 | ā¬†ļø+11.66 |
emmambd commented 3 months ago

@qcdyx Looks good on a QA side! Minor change: can we display "N/A" instead of an empty value? I realized it should match the other null behavior in the summary report (e.g agency email and URL, where if they're empty it returns N/A)

qcdyx commented 3 months ago

@emmambd

image
github-actions[bot] commented 3 months ago

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.

github-actions[bot] commented 3 months ago

šŸ“ Acceptance Test Report

šŸ“‹ Summary

āœ… The rule acceptance has passed for commit f9ed1df195403e4a35ab6ef4f0a646129f9d62c4 Download the full acceptance test report here (report will disappear after 90 days).

šŸ“Š Notices Comparison

New Errors (0 out of 1563 datasets, ~0%) āœ…

No changes were detected due to the code change.

Dropped Errors (0 out of 1563 datasets, ~0%) āœ…

No changes were detected due to the code change.

New Warnings (0 out of 1563 datasets, ~0%) āœ…

No changes were detected due to the code change.

Dropped Warnings (0 out of 1563 datasets, ~0%) āœ…

No changes were detected due to the code change.

šŸ›”ļø Corruption Check

13 out of 1576 sources (~1 %) are corrupted. | Dataset | Ref Report Exists | Ref Report Readable | Latest Report Exists | Latest Report Readable | |-----------|-------------------|---------------------|----------------------|------------------------| | it-puglia-mobilita-e-trasporti-molfetta-gtfs-1147 | āœ… | N/A | āŒ | N/A | | it-regione-autonoma-della-sardegna-collegamenti-marittimi-grimaldi-gtfs-1192 | āœ… | N/A | āŒ | N/A | | it-regione-autonoma-della-sardegna-collegamenti-marittimi-moby-gtfs-1048 | āœ… | N/A | āŒ | N/A | | it-regione-autonoma-della-sardegna-collegamenti-marittimi-sardinia-ferries-gtfs-1050 | āœ… | N/A | āŒ | N/A | | it-regione-autonoma-della-sardegna-collegamenti-marittimi-tirrenia-gtfs-1051 | āœ… | N/A | āŒ | N/A | | mexico-jalisco-direccion-general-de-transporte-publico-de-puerto-vallarta-gtfs-2034 | āœ… | N/A | āŒ | N/A | | mexico-oaxaca-secretaria-de-movilidad-oaxaca-gtfs-2033 | āœ… | N/A | āŒ | N/A | | mx-jalisco-secretaria-de-movilidad-del-estado-de-jalisco-gtfs-1926 | āœ… | N/A | āŒ | N/A | | pe-aeroexpreso-gtfs-1985 | āœ… | N/A | āŒ | N/A | | tr-kocaeli-kocaeli-gtfs-1122 | āœ… | N/A | āŒ | N/A | | us-arizona-national-park-service-gtfs-1905 | āœ… | N/A | āŒ | N/A | | us-ohio-athens-public-transit-gtfs-4 | āœ… | N/A | āŒ | N/A | | us-wisconsin-beloit-transit-gtfs-392 | āœ… | N/A | āŒ | N/A |

ā±ļø 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.81 | 3.89 | ā¬†ļø+0.08 | | Median | -- | 1.37 | 1.42 | ā¬†ļø+0.05 | | Standard Deviation | -- | 10.56 | 10.58 | ā¬†ļø+0.02 | | Minimum in References Reports | ph-unknown-hm-transport-inc-and-robinsons-malls-gtfs-1105 | 0.49 | 0.61 | ā¬†ļø+0.12 | | Maximum in Reference Reports | gb-unknown-uk-aggregate-feed-gtfs-2014 | 281.63 | 282.04 | ā¬†ļø+0.41 | | Minimum in Latest Reports | ar-buenos-aires-subterraneos-de-buenos-aires-subte-gtfs-6 | 0.63 | 0.51 | ā¬‡ļø-0.12 | | Maximum in Latest Reports | gb-unknown-uk-aggregate-feed-gtfs-2014 | 281.63 | 282.04 | ā¬†ļø+0.41 |