Tag based key filtering uses OR and not AND logic

Created on 8 July 2024, 9 months ago

Problem/Motivation

README.md change added by https://git.drupalcode.org/project/key/-/commit/c9544796c3d74bfb7ee9170f... says:

  * `#key_filters = ['tags' => ['file', 'private']]` This would only display
    keys whose definitions are tagged with `file` and `private` tags.

but based on my testing, this is rather an OR logic and not an AND,

In addition, the drush key:provider-list --tags=... does not leverage the KeyRepository, which means this bug has to be fixed in two places.

Unless the README.md lies and the code behaves as it should, the the README.md needs an update.

Steps to reproduce

Proposed resolution

Remaining tasks

Needs tests?

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

🇭🇺Hungary mxr576 Hungary

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024