mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 09:28:54 +00:00
<!-- Add the related story/sub-task/bug number, like Resolves #123, or remove if NA --> **Related issue:** Resolves #39303 (child of #25080). - Added `inherited_query_count` to `ListQueriesResponse` (thought of adding a brand new endpoint just for counting, but felt like extending the current one was good enough). In the parent task, [it was suggested](https://github.com/fleetdm/fleet/issues/25080#issuecomment-3326071574) to `"Depend on team list entity endpoint's count field / team entity count endpoint for whether or not to disable the manage automations button"`, which Rachael approved, so I went for this approach. - The `ManageQueryAutomationsModal` now fetches its own data with `merge_inherited = false` (meaning it only fetches non-inherited queries only). Previously, queries were passed down as props to it, which would not show the queries available to automate if the first page of queries were all inherited and the second page contained queries for that team (the user would have to navigate to the second page for the button to be enabled). ^ The fact that the modal fetches its own data is similar behavior to what is currently done in `Policies`. For queries, I noticed that we would need to add pagination within the `Manage Automations` modal, but that can be a follow-up. <img width="2480" height="1309" alt="Screenshot 2026-02-04 at 11 48 42 AM" src="https://github.com/user-attachments/assets/ebac79a5-a793-4708-9313-d9a697dfd7de" /> # Checklist for submitter - [x] 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. ## Testing - [x] QA'd all new/changed functionality manually https://github.com/user-attachments/assets/119f03b9-dde1-4bb9-9fee-6204b1a58879 |
||
|---|---|---|
| .. | ||
| activities.ts | ||
| autofill.ts | ||
| certificates.ts | ||
| command.ts | ||
| common.ts | ||
| conditional_access.ts | ||
| config.ts | ||
| config_profiles.ts | ||
| device_user.ts | ||
| disk_encryption.ts | ||
| enroll_secret.ts | ||
| global_policies.ts | ||
| global_scheduled_queries.ts | ||
| host_count.ts | ||
| host_query_report.ts | ||
| host_summary.ts | ||
| hosts.ts | ||
| idp.ts | ||
| installers.ts | ||
| invites.ts | ||
| labels.ts | ||
| macadmins.ts | ||
| mdm.ts | ||
| mdm_android.ts | ||
| mdm_apple.ts | ||
| mdm_apple_bm.ts | ||
| operating_systems.ts | ||
| osquery_options.ts | ||
| packs.ts | ||
| queries.ts | ||
| query_report.ts | ||
| scheduled_queries.ts | ||
| scripts.ts | ||
| secrets.tsx | ||
| sessions.ts | ||
| software.ts | ||
| spec.ts | ||
| status.ts | ||
| status_labels.ts | ||
| targets.ts | ||
| team_policies.ts | ||
| team_scheduled_queries.ts | ||
| teams.ts | ||
| users.ts | ||
| version.ts | ||
| vulnerabilities.ts | ||