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

Short sources gid #574

Merged
merged 2 commits into from
Jul 6, 2016
Merged

Short sources gid #574

merged 2 commits into from
Jul 6, 2016

Conversation

avulfson17
Copy link
Contributor

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

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
Copy link
Member

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

Copy link
Member

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

@orangejulius
Copy link
Member

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
@trescube
Copy link
Contributor

trescube commented Jul 6, 2016

:shipit:

@orangejulius
Copy link
Member

LGTM

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