mirror of
https://github.com/fleetdm/fleet
synced 2026-05-06 06:48:54 +00:00
For #27276 # Details This PR adds the ability to select labels when saving or editing a query in the UI, so that the query will only target hosts with those labels. It follows the API design from https://github.com/fleetdm/fleet/pull/27196, utilizing the labels_include_any and labels_exclude_any fields. The expectation is that when creating or updating a query, labels_include_any and labels_exclude_any are arrays of label names, and when fetching a single query, they are arrays of objects with a name and an id key. Other updates in this PR: * Removed colons from various headings on the Save Policy Modal and Edit Policy form * Updated the "Delete label" text * Removed "Policy runs on all hosts with these platforms." subheading underneath the platform selector * TargetLabelSelector component now has `suppressTitle` flag to turn off the "Target" title. |
||
|---|---|---|
| .. | ||
| _styles.scss | ||
| index.ts | ||
| TargetLabelSelector.tests.tsx | ||
| TargetLabelSelector.tsx | ||