Skip to content

fix: Add notice for missing stop name for specific location types#1316

Merged
fredericsimard merged 9 commits intoMobilityData:masterfrom
JarvusInnovations:issue/1078/missing-stop-name
Feb 22, 2023
Merged

fix: Add notice for missing stop name for specific location types#1316
fredericsimard merged 9 commits intoMobilityData:masterfrom
JarvusInnovations:issue/1078/missing-stop-name

Conversation

@briandonahue
Copy link
Copy Markdown
Contributor

@briandonahue briandonahue commented Jan 19, 2023

Summary:

Adds validation for required stop name for STOP, STATION, ENTRANCE location types. Closes #1078

Expected behavior:

Should generate an Error notice if stop name is missing for the above location types.

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

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Jan 19, 2023

CLA assistant check
All committers have signed the CLA.

Copy link
Copy Markdown
Collaborator

@bdferris-v2 bdferris-v2 left a comment

Choose a reason for hiding this comment

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

Modulo the one comment, this LGTM.

@isabelle-dr isabelle-dr linked an issue Feb 10, 2023 that may be closed by this pull request
Copy link
Copy Markdown
Contributor

@isabelle-dr isabelle-dr left a comment

Choose a reason for hiding this comment

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

The new rule LGTM, we just need the RULES.md update :)

More a general thought than something specific to this PR: I wonder if we want to formalize our preferred approach between:

  • generating a custom notice for the conditionally required fields
  • re-using MissingRequiredField

@briandonahue
Copy link
Copy Markdown
Contributor Author

The new rule LGTM, we just need the RULES.md update :)

@isabelle-dr updated!

@bdferris-v2
Copy link
Copy Markdown
Collaborator

@isabelle-dr apologies I missed the RULES.md update on this. I've taken a stab at adding a unit-test to catch this sort of thing in #1331.

Copy link
Copy Markdown
Contributor

@isabelle-dr isabelle-dr left a comment

Choose a reason for hiding this comment

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

Just two propositions for the definitions, thanks for updating this so quickly @briandonahue!
Why are there also modifications to the java files in this PR?

@briandonahue
Copy link
Copy Markdown
Contributor Author

Why are there also modifications to the java files in this PR?

@isabelle-dr this PR contains the updated validation and the RULES.md update to go along with it. Should they be separate?

Copy link
Copy Markdown
Contributor

@isabelle-dr isabelle-dr left a comment

Choose a reason for hiding this comment

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

Sorry, I got mixed up with #1330 🙈.
This is perfect! LGTM

@isabelle-dr
Copy link
Copy Markdown
Contributor

Can you update this branch with the latest master?

@fredericsimard fredericsimard merged commit b01b6e1 into MobilityData:master Feb 22, 2023
@briandonahue briandonahue deleted the issue/1078/missing-stop-name branch February 23, 2023 15:55
KClough added a commit to JarvusInnovations/gtfs-validator that referenced this pull request Feb 24, 2023
…bilityData#1316)

* Fix: Add notice for missing stop name for specific location types

* switch to isEmpty()

* Address PR feedback, cleanup test for readability

* Update RULES.md

* Apply suggestions from code review

Co-authored-by: isabelle-dr <[email protected]>

---------

Co-authored-by: Kevin Clough <[email protected]>
Co-authored-by: isabelle-dr <[email protected]>
KClough added a commit to JarvusInnovations/gtfs-validator that referenced this pull request Mar 1, 2023
…bilityData#1316)

* Fix: Add notice for missing stop name for specific location types

* switch to isEmpty()

* Address PR feedback, cleanup test for readability

* Update RULES.md

* Apply suggestions from code review

Co-authored-by: isabelle-dr <[email protected]>

---------

Co-authored-by: Kevin Clough <[email protected]>
Co-authored-by: isabelle-dr <[email protected]>
ryon pushed a commit to JarvusInnovations/gtfs-validator that referenced this pull request Apr 1, 2023
…bilityData#1316)

* Fix: Add notice for missing stop name for specific location types

* switch to isEmpty()

* Address PR feedback, cleanup test for readability

* Update RULES.md

* Apply suggestions from code review

Co-authored-by: isabelle-dr <[email protected]>

---------

Co-authored-by: Kevin Clough <[email protected]>
Co-authored-by: isabelle-dr <[email protected]>
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.

Add a rule for missing stop name

6 participants