-
-
Notifications
You must be signed in to change notification settings - Fork 163
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
Short sources gid #574
Short sources gid #574
Conversation
return; | ||
} | ||
|
||
if (!_.includes(type_mapping.layers, layer)) { | ||
messages.errors.push( targetError(layer, type_mapping.layers) ); | ||
return; | ||
} | ||
//converts the shortened source names to the full name |
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.
You could remove the if statement here, since the source_mapping supports either the short or long name
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.
A nice reason to do that is it keeps more knowledge of what the "real" source name is in the type_mapping file, rather than here
As mentioned by @dianashk it would be great to have acceptance tests for this. They can go in the place.json test case file |
Removed an extraneous if statement
LGTM |
This (hopefully) will allows someone to search using a gid typing in the short name of a source, e.g oa:venue:123456 as opposed to openaddresses:venue:123456
Fixes #441