fleet/frontend/utilities
Jacob Shandling 6f9dd8e40b
Generalize logic to ensure macos_settings always filtered with a team_id; Apply to 3 places (#10472)
## Addresses [this
discussion](https://github.com/fleetdm/fleet/pull/10385#discussion_r1134668601)

## Implements

Abstract logic to ensure a team_id is always passed with the
macos_settings filter, allowing general usage and keeping that logic in
sync everywhere it is used.

Uses this in 3 places.

## Checklist for submitter

If some of the following don't apply, delete the relevant line.

- [x] Added/updated tests
- [x] Manual QA

---------

Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
2023-03-15 15:44:48 -07:00
..
append_target_type_to_targets replaced old api calls with new version (#5254) 2022-04-20 10:45:32 -07:00
campaign_helpers Use new display name property in live query results (#8268) 2022-10-19 17:24:42 -05:00
convert_to_csv Use new display name property in live query results (#8268) 2022-10-19 17:24:42 -05:00
debounce Removed all traces of Redux from the app! (#5287) 2022-04-22 09:45:35 -07:00
deep_difference Removed all traces of Redux from the app! (#5287) 2022-04-22 09:45:35 -07:00
format_api_errors Removed all traces of Redux from the app! (#5287) 2022-04-22 09:45:35 -07:00
format_error_response Ensure invite form always returns a base error (#8615) 2022-11-08 15:34:18 -06:00
permissions Add readonly MDM.EnabledAndConfigured to app config and device responses (#9575) 2023-02-01 14:47:52 -03:00
simple_search Removed all traces of Redux from the app! (#5287) 2022-04-22 09:45:35 -07:00
sort Add software details page (#6089) 2022-06-08 14:01:38 -05:00
strings Improve team setting functionality (#704) 2021-04-30 12:13:04 -07:00
url Generalize logic to ensure macos_settings always filtered with a team_id; Apply to 3 places (#10472) 2023-03-15 15:44:48 -07:00
yaml Fleet Documentation: Update agent options and enrollment secret documentation (#9565) 2023-02-13 10:45:37 -05:00
constants.ts standardize a default value for empty cells (#9899) 2023-02-17 15:25:28 -03:00
copy_text.ts update jest setup and move config to its own file (#8258) 2022-10-25 14:17:32 +01:00
endpoints.ts Request encryption key change from API and update modal copy (#10495) 2023-03-15 09:26:02 -07:00
helpers.ts Fleet UI: Use currentTeam.id from app context to set teamId for API calls on Manage host page (#10053) 2023-02-23 11:37:09 -05:00
local.ts Frontend Tech Debt: Typescript types (#4319) 2022-03-10 10:10:44 -05:00
osquery_tables.ts Feat/update query doc sidepanel (#8214) 2022-10-14 17:45:57 +01:00
platform_icon_class.ts Removed all traces of Redux from the app! (#5287) 2022-04-22 09:45:35 -07:00
sql_tools.ts Removed all traces of Redux from the app! (#5287) 2022-04-22 09:45:35 -07:00