-
Notifications
You must be signed in to change notification settings - Fork 53
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
Add call to MTCValidator #297
Conversation
…plus.yml to match MTC guideline
@@ -313,11 +310,9 @@ public void validate(MonitorableJob.Status status) { | |||
// run validation on feed version | |||
// FIXME: pass status to validate? Or somehow listen to events? | |||
status.update("Validating feed...", 33); | |||
validationResult = GTFS.validate(feedLoadResult.uniqueIdentifier, DataManager.GTFS_DATA_SOURCE); | |||
validationResult = GTFS.validate(feedLoadResult.uniqueIdentifier, DataManager.GTFS_DATA_SOURCE, MTCValidator::new); |
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.
@binh-dam-ibigroup, I think we should only run the MTCValidator if the MTC extension is enabled isExtensionEnabled("mtc")
. We only want the MTC-specific checks running on MTC instances of Data Tools, not for everyone. We should also add some commentary about this.
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.
One change needed with respect to the MTCValidator. Also, the gtfs-lib dependency is ready to be updated in pom.xml
.
Codecov Report
@@ Coverage Diff @@
## mtc-20200310 #297 +/- ##
==================================================
- Coverage 20.74% 20.03% -0.72%
+ Complexity 468 414 -54
==================================================
Files 152 151 -1
Lines 9186 8329 -857
Branches 1320 1146 -174
==================================================
- Hits 1906 1669 -237
+ Misses 7116 6509 -607
+ Partials 164 151 -13
Continue to review full report at Codecov.
|
🎉 This PR is included in version 3.8.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Checklist
Description
This PR adds a call to
MTCValidator
and updates gtfsplus.yml to match MTC guidelines.MTCValidator
is available on the field-lengh-validator (MTC) branch of gtfs-lib or on the main branch if (conveyal/gtfs-lib#276 is merged (the normal CI process fails the build because of that).