mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 08:58:41 +00:00
Fixes #28589 Previously "include any" was not being properly honored when we queried profiles for verification and so we never would actually verify profiles where the user had an include any rule with multiple labels and the host included a subset of the labels. Updated the query that returns profiles to verify for Windows and Apple to return those profiles with "include any" labels and a nonzero number of the targeted labels applied Also rearranged and refactored the associated tests slightly and added a single test that does the various permutations of "include all" "include any" and "exclude any" # Checklist for submitter If some of the following don't apply, delete the relevant line. <!-- Note that API documentation changes are now addressed by the product design team. --> - [ ] Changes file added for user-visible changes in `changes/`, `orbit/changes/` or `ee/fleetd-chrome/changes`. See [Changes files](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/guides/committing-changes.md#changes-files) for more information. - [ ] Input data is properly validated, `SELECT *` is avoided, SQL injection is prevented (using placeholders for values in statements) - [x] Added/updated automated tests - [x] Manual QA for all new/changed functionality
1 line
162 B
Text
1 line
162 B
Text
* Fixed a bug that caused custom OS settings targeted using "include any" label rules to never verify on hosts that only included a subset of the targeted labels
|