Skip to content

Replace blacklist/whitelist with blocklist/allowlist - #4469

Merged
weitzman merged 2 commits into
drush-ops:masterfrom
normanlolx:blocklist-allowlist
Jul 20, 2020
Merged

weitzman merged 2 commits into
drush-ops:masterfrom
normanlolx:blocklist-allowlist

Conversation

@normanlolx

Copy link
Copy Markdown

Following up on https://www.drupal.org/project/ideas/issues/3159647#comment-13755051 let's fix this now.

This PR replaces blacklist which only had one occurrence in a comment. And it deprecates whitelist which only appeared in an option to the sql:sanitize command.

$conn = $this->getDatabase();
$field_definitions = $this->getEntityFieldManager()->getFieldDefinitions('user', 'user');
$field_storage = $this->getEntityFieldManager()->getFieldStorageDefinitions('user');
/** @deprecated Use $options['allowlist-fields'] instead. */

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Does this need an indicator on when the legacy value will be removed?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Usually we would remove in the next major version. There is no Drush 11 branch at the moment, and no convention (other than @deprecated) to explicitly flag something for removal in Drush 11.

Drush 11 is far off, and it we don't have the bandwidth to maintain a "future" branch right now. We could consider introducing a convention, but in theory we remove all @deprecated functions in each major version, so @deprecated fills that role at the moment.

@weitzman
weitzman merged commit b75b055 into drush-ops:master Jul 20, 2020
@normanlolx
normanlolx deleted the blocklist-allowlist branch July 21, 2020 11:08
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.

4 participants