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(blacklist-stream): allow excluding documents via GID blacklist #154

Merged
merged 1 commit into from
Jan 19, 2019

Conversation

missinglink
Copy link
Member

This PR includes a new stream called blacklist-stream which allows records to be excluded from the build.

See https://github.com/pelias/blacklist-stream for more information on how to use the blacklist file.

@@ -18,6 +20,10 @@ function insertWofRecord( wof, next ){
// sanity check; because WOF
if( !isValidWofRecord( id, wof ) ) { return next(); }

// enforce pelias/blacklist-stream exclusions
let peliasGID = util.format('whosonfirst:%s:%d', wof['wof:placetype'], id);
Copy link
Member

Choose a reason for hiding this comment

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

Personally I've been phasing out using util.format for template literals. They're way easier to read in my opinion and allow removing a require.

@orangejulius
Copy link
Member

The tests are failing, but this PR didn't break it, and with my testing it does indeed remove blacklisted records from Placeholder.

@orangejulius orangejulius merged commit b87df10 into master Jan 19, 2019
@orangejulius orangejulius deleted the blacklist-stream branch January 19, 2019 02:36
orangejulius added a commit to pelias/docker that referenced this pull request Jan 19, 2019
Combined with pelias/placeholder#154, this PR
add support for blacklisting records from Placeholder.
calpb pushed a commit to sorelle/docker that referenced this pull request Mar 29, 2021
Combined with pelias/placeholder#154, this PR
add support for blacklisting records from Placeholder.
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