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

feat(abbreviations): use wof:abbreviation for dependencies if available #375

Closed
wants to merge 1 commit into from

Conversation

orangejulius
Copy link
Member

This is a backwards-compatible version of #273 which allows us to handle the upcoming switch from storing dependency abbreviations in the wof:country field to wof:abbreviation (see whosonfirst-data/whosonfirst-data#823)

It should be safe to merge now and will do the right thing once WOF data is updated.

Supersedes #273

This is a backwards-compatible version of #273
which allows us to handle the upcoming switch from storing dependency
abbreviations in the `wof:country` field to `wof:abbreviation` (see
whosonfirst-data/whosonfirst-data#823)

It should be safe to merge now and will do the right thing once WOF data
is updated.

Supersedes #273
@orangejulius orangejulius requested a review from trescube August 5, 2018 14:09
@orangejulius
Copy link
Member Author

Note: lets merge #374 first since they touch similar parts of the code.

orangejulius pushed a commit that referenced this pull request Sep 19, 2018
Several abbreviation fields have changed or will change over time in
WOF.

1.) `wof:shortcode` just replaced `wof:abbreviation`
2.) for dependency records, `wof:shortcode` will replace `wof:country`

This change allows us to handle both of those changing fields in a
backwrds compatible way, by supporting the older field but prioritizing
the newer ones.

We should later come in and remove the logic to refer to the older
values once we're sure they're no longer used and enough time has passed
that most people will have updated their copy of WOF data.

Supersedes #273
Supersedes #375
Fixes #398
Fixes pelias/pelias#645
Connects whosonfirst/whosonfirst-properties#78
orangejulius pushed a commit that referenced this pull request Sep 19, 2018
Several abbreviation fields have changed or will change over time in
WOF.

1.) `wof:shortcode` just replaced `wof:abbreviation`
2.) for dependency records, `wof:shortcode` will replace `wof:country`

This change allows us to handle both of those changing fields in a
backwards compatible way, by supporting the older field but prioritizing
the newer ones.

We should later come in and remove the logic to refer to the older
values once we're sure they're no longer used and enough time has passed
that most people will have updated their copy of WOF data.

Supersedes #273
Supersedes #375
Fixes #398
Fixes pelias/pelias#645
Connects whosonfirst/whosonfirst-properties#78
orangejulius added a commit that referenced this pull request Sep 19, 2018
Several abbreviation fields have changed or will change over time in
WOF.

1.) `wof:shortcode` just replaced `wof:abbreviation`
2.) for dependency records, `wof:shortcode` will replace `wof:country`

This change allows us to handle both of those changing fields in a
backwards compatible way, by supporting the older field but prioritizing
the newer ones.

We should later come in and remove the logic to refer to the older
values once we're sure they're no longer used and enough time has passed
that most people will have updated their copy of WOF data.

Supersedes #273
Supersedes #375
Fixes #398
Fixes pelias/pelias#645
Connects whosonfirst/whosonfirst-properties#78
@orangejulius
Copy link
Member Author

replaced with #399

@orangejulius orangejulius deleted the dependency-abbr-backwards-compatible branch September 19, 2018 15:37
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.

2 participants