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

if country_gid exists, remove empire fields #1014

Merged
merged 2 commits into from
Oct 9, 2017

Conversation

trescube
Copy link
Contributor

@trescube trescube commented Oct 3, 2017

Per Kelso, empire fields shouldn't be available if there's a country.

See pelias/placeholder#54

@trescube trescube added this to the API Improvements milestone Oct 3, 2017
@trescube trescube self-assigned this Oct 3, 2017
@ghost ghost added the in progress label Oct 3, 2017
Copy link
Contributor

@dianashk dianashk left a comment

Choose a reason for hiding this comment

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

Instead of removing the properties, I'd consider using the predicate in geojsonify_place_details. It can be updated to look at the input params and the record being processed to decide if the property should be displayed to the end-user.

@trescube trescube force-pushed the remove-empire-when-country-exists branch from 9bcc78b to e4e8d9b Compare October 9, 2017 16:28
@ghost ghost added the in progress label Oct 9, 2017
Copy link
Contributor

@dianashk dianashk left a comment

Choose a reason for hiding this comment

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

This is great! Thanks for changing it. 🎉

@trescube trescube merged commit 96825b5 into master Oct 9, 2017
@trescube trescube deleted the remove-empire-when-country-exists branch October 9, 2017 16:39
@ghost ghost removed the in progress label Oct 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants