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

Update validation language #568

Merged
merged 2 commits into from
Oct 13, 2023
Merged

Conversation

philip-cline
Copy link
Contributor

@philip-cline philip-cline commented Oct 12, 2023

Checklist

  • Appropriate branch selected (all PRs must first be merged to dev before they can be merged to master)
  • Any modified or new methods or classes have helpful JavaDoc and code is thoroughly commented
  • The description lists all applicable issues this PR seeks to resolve
  • The description lists any configuration setting(s) that differ from the default settings
  • All tests and CI builds passing

Description

Responding to some comments around the language of the recent directions.txt validation.

Copy link
Contributor

@binh-dam-ibigroup binh-dam-ibigroup left a comment

Choose a reason for hiding this comment

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

LGTM, just a small suggestion, but if they want the exact original text I'm fine with that.

@@ -188,7 +188,7 @@ private static void validateTable(

if (tableIsDirections && !gtfsRoutes.isEmpty()) {
// After we're done validating all the table values, check if every route was checked off in directions.txt
issues.add(new ValidationIssue(tableId, "route_id", -1, "Directions table does not define direction names for all routes."));
issues.add(new ValidationIssue(tableId, null, -1, "Directions file doesn't define directions for all routes listed in routes file"));
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
issues.add(new ValidationIssue(tableId, null, -1, "Directions file doesn't define directions for all routes listed in routes file"));
issues.add(new ValidationIssue(tableId, null, -1, "The directions file doesn't define directions for all routes listed in the routes file"));

or maybe say "routes listed in "routes.txt" explicitly.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I like that better as well, I asked them what they think

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Alright we have the go-ahead for routes.txt which is my favourite

Copy link
Contributor

@miles-grant-ibigroup miles-grant-ibigroup left a comment

Choose a reason for hiding this comment

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

I agree with @binh-dam-ibigroup

@philip-cline philip-cline merged commit 2e4ad4f into mtc-deploy Oct 13, 2023
2 checks passed
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.

3 participants