-
Notifications
You must be signed in to change notification settings - Fork 80
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 route short names to stop deletion warning #985
Conversation
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.
Sure, that's code.
lib/common/actions/index.js
Outdated
@@ -183,7 +183,7 @@ const PatternLinkErrorMessage = (props) => { | |||
return ( | |||
<li style={{listStyle: 'none', margin: '3px 0px'}}> | |||
<a href={patternPath}> | |||
{`Route ${pattern.routeId}, Pattern ${pattern.patternId}`} | |||
{`Route ${pattern.routeShortName}, Pattern ${pattern.patternId}`} |
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.
This is not working with a number of feeds I previously imported. For these feeds, the route short name is undefined. You should fall back on route ID IMO.
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.
I agree, good call. I have added route ID as a fall back in bfcde9e
Checklist
dev
before they can be merged tomaster
)Description
Companion PR to conveyal/gtfs-lib#396 to make use of route short names in deletion error messages