fleet/server/datastore/mysql
Lucas Manuel Rodriguez 8d664bd456
Make software batch endpoint asynchronous (#22258)
#22069

API changes: https://github.com/fleetdm/fleet/pull/22259

QAd by applying 10 pieces of software on a team, which took 3+ minutes
in total (which, before these changes was timing out at 100s.)

With this approach, a GitOps CI run timing out might leave the
background process running (which will eventually be applied to the
database). The team discussed and agreed that we can fix this edge case
later.

- [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/Committing-Changes.md#changes-files)
for more information.
- [X] Input data is properly validated, `SELECT *` is avoided, SQL
injection is prevented (using placeholders for values in statements)
- [X] Added/updated tests
- [X] Manual QA for all new/changed functionality
2024-09-20 11:55:47 -03:00
..
migrations Add software installer extension column to database (#22017) 2024-09-12 16:22:35 -05:00
activities.go Minor fixes to policy software installations (#22148) 2024-09-17 13:30:27 -03:00
activities_test.go Can run install scripts now. 2024-09-06 09:49:28 -05:00
aggregated_stats.go Fixes from PR review #19206 (live query stats optimization) (#19403) 2024-05-31 07:35:26 -05:00
aggregated_stats_test.go Performance stats for live queries (#15440) 2023-12-13 14:46:59 -06:00
app_configs.go Merge remote-tracking branch 'origin/main' into feat-save-certs 2024-05-31 09:34:48 -03:00
app_configs_test.go fleetctl gitops --dry-run now errors on duplicate (or conflicting) global/team enroll secrets. (#19344) 2024-05-31 07:01:13 -05:00
apple_mdm.go fix: stop profiles that never reached the host from showing up as failed (#22186) 2024-09-19 11:31:46 -04:00
apple_mdm_test.go implement OTA enrollment (#21942) 2024-09-10 16:52:17 -03:00
calendar_events.go Profiles batch activity (#21604) 2024-08-30 16:00:35 -05:00
calendar_events_test.go Correctly handle NULL timezones (#20605) 2024-07-22 10:04:29 -07:00
campaigns.go Address multiple redis-related issues observed with live queries (#16855) 2024-02-27 19:35:27 -06:00
campaigns_test.go Address multiple redis-related issues observed with live queries (#16855) 2024-02-27 19:35:27 -06:00
carves.go Enabled support and validation of 'after' parameter for several endpoints (#15047) 2023-11-09 13:18:29 -06:00
carves_test.go
config.go 🧹 friday cleanup party: substitute deprecated import of go-kit (#19774) 2024-06-17 10:27:31 -03:00
cron_stats.go Add mechanism to force read from primary DB, use it for puppet matching (#12396) 2023-06-19 13:55:15 -04:00
cron_stats_test.go Add mechanism to force read from primary DB, use it for puppet matching (#12396) 2023-06-19 13:55:15 -04:00
delete.go Add mechanism to force read from primary DB, use it for puppet matching (#12396) 2023-06-19 13:55:15 -04:00
delete_test.go Updated factory method for creating queries in tests 2023-07-07 09:05:51 -04:00
email_changes.go Add mechanism to force read from primary DB, use it for puppet matching (#12396) 2023-06-19 13:55:15 -04:00
email_changes_test.go
errors.go Fixed a bug when a cached prepared statement gets deleted in the MySQL server (#21219) 2024-08-09 11:59:24 -03:00
fulltext.go Using '@' in target search causes 422 error response (#5148) 2022-04-19 09:28:49 -04:00
fulltext_test.go Using '@' in target search causes 422 error response (#5148) 2022-04-19 09:28:49 -04:00
hosts.go Add policies for "No team" (#21972) 2024-09-12 14:23:25 -03:00
hosts_test.go Backend for policy automation to install software (#21650) 2024-08-30 14:13:25 -03:00
invites.go 19016 ingest certs on start (#19360) 2024-05-30 18:18:42 -03:00
invites_test.go Create errors with ctxerr, add the call to store them in redis (#2786) 2021-11-15 09:11:38 -05:00
jobs.go Send DeviceConfigured MDM command after DEP enrollment (#17737) 2024-03-25 13:25:29 -04:00
jobs_test.go Send DeviceConfigured MDM command after DEP enrollment (#17737) 2024-03-25 13:25:29 -04:00
labels.go Update label name in configuration profile (#21246) 2024-08-13 13:57:32 +02:00
labels_test.go Update label name in configuration profile (#21246) 2024-08-13 13:57:32 +02:00
locks.go Merge conflicts 2024-04-16 10:20:59 -05:00
locks_test.go Add mechanism to force read from primary DB, use it for puppet matching (#12396) 2023-06-19 13:55:15 -04:00
mdm.go Profiles batch activity (#21604) 2024-08-30 16:00:35 -05:00
mdm_test.go Profiles batch activity (#21604) 2024-08-30 16:00:35 -05:00
microsoft_mdm.go Fix cron profile delivery when a single Windows VM has duplicate enrollment entries for its host_uuid (#21983) 2024-09-11 17:18:59 -04:00
microsoft_mdm_test.go Fix cron profile delivery when a single Windows VM has duplicate enrollment entries for its host_uuid (#21983) 2024-09-11 17:18:59 -04:00
migrations_test.go Use docker compose on CI instead of docker-compose (#21017) 2024-08-02 18:12:36 -03:00
mysql.go Profiles batch activity (#21604) 2024-08-30 16:00:35 -05:00
mysql_test.go Fixed a bug when a cached prepared statement gets deleted in the MySQL server (#21219) 2024-08-09 11:59:24 -03:00
nanomdm_storage.go feat: enable multiple ABM and VPP tokens (#21693) 2024-08-29 18:51:46 -04:00
nanomdm_storage_test.go 19016 ingest certs on start (#19360) 2024-05-30 18:18:42 -03:00
operating_system_vulnerabilities.go Profiles batch activity (#21604) 2024-08-30 16:00:35 -05:00
operating_system_vulnerabilities_test.go Profiles batch activity (#21604) 2024-08-30 16:00:35 -05:00
operating_systems.go Updated host_operating_system INSERT. (#18556) 2024-04-29 10:54:50 -05:00
operating_systems_test.go Don't create a nudge config if macos is above version 14 (#18020) 2024-04-05 10:11:49 -04:00
packs.go Enabled support and validation of 'after' parameter for several endpoints (#15047) 2023-11-09 13:18:29 -06:00
packs_test.go Changed query performance statistics to uint64 to match osquery reports. (#15505) 2023-12-11 11:29:17 -06:00
password_reset.go Add mechanism to force read from primary DB, use it for puppet matching (#12396) 2023-06-19 13:55:15 -04:00
password_reset_test.go Add mechanism to force read from primary DB, use it for puppet matching (#12396) 2023-06-19 13:55:15 -04:00
policies.go Clear policy results and stats when setting or changing an installer (#22053) 2024-09-12 16:56:12 -03:00
policies_test.go Clear policy results and stats when setting or changing an installer (#22053) 2024-09-12 16:56:12 -03:00
queries.go Merge remote-tracking branch 'origin/main' into feat-save-certs 2024-05-31 09:34:48 -03:00
queries_test.go Fixes from PR review #19206 (live query stats optimization) (#19403) 2024-05-31 07:35:26 -05:00
query_results.go Added server_settings.query_report_cap (#19692) 2024-06-14 12:24:01 -03:00
query_results_test.go Added server_settings.query_report_cap (#19692) 2024-06-14 12:24:01 -03:00
scep.go 19016 ingest certs on start (#19360) 2024-05-30 18:18:42 -03:00
scep_test.go use Fleet instead of FleetDM in certificates (#19748) 2024-06-14 11:08:49 -03:00
scheduled_queries.go Updating wall_time from seconds to ms. (#16706) 2024-02-12 07:58:40 -06:00
scheduled_queries_test.go Performance stats for live queries (#15440) 2023-12-13 14:46:59 -06:00
schema.sql Add software installer extension column to database (#22017) 2024-09-12 16:22:35 -05:00
scripts.go Can run install scripts now. 2024-09-06 09:49:28 -05:00
scripts_test.go Final API changes and test updates. 2024-09-09 14:43:52 -05:00
sessions.go Add mechanism to force read from primary DB, use it for puppet matching (#12396) 2023-06-19 13:55:15 -04:00
sessions_test.go Add read replica testing helpers and fix non-sso login bug (#4908) 2022-04-04 16:52:05 -07:00
software.go Fix Host Software Vulnerability Filter (#21899) 2024-09-13 08:28:26 -06:00
software_installers.go Make software batch endpoint asynchronous (#22258) 2024-09-20 11:55:47 -03:00
software_installers_test.go Make software batch endpoint asynchronous (#22258) 2024-09-20 11:55:47 -03:00
software_test.go Fix Host Software Vulnerability Filter (#21899) 2024-09-13 08:28:26 -06:00
software_titles.go Add GitOps support for policy installers (#21826) 2024-09-06 19:10:28 -03:00
software_titles_test.go Delete apps associated with VPP tokens when they're moved or deleted (#21852) 2024-09-06 09:14:09 -04:00
statistics.go Add AI features, maintenance window, and Fleet Desktop to usage statistics Story #19693 (#21131) 2024-08-12 15:12:28 -04:00
statistics_test.go Add AI features, maintenance window, and Fleet Desktop to usage statistics Story #19693 (#21131) 2024-08-12 15:12:28 -04:00
targets.go Adding backend support for running live queries with team_id=0 (No team) (#17258) 2024-03-04 16:08:10 -06:00
targets_test.go Bugfix: only count hosts that user has permission to see in count field of label endpoints (#18859) 2024-05-21 12:02:08 -04:00
teams.go Backend for policy automation to install software (#21650) 2024-08-30 14:13:25 -03:00
teams_test.go Backend support for iOS/iPadOS OS updates (#20649) 2024-07-24 14:34:23 -03:00
testing_utils.go Merge remote-tracking branch 'origin/main' into 20320-feat-uninstall-packages 2024-09-11 09:35:04 -05:00
unicode_test.go Bugfix: only count hosts that user has permission to see in count field of label endpoints (#18859) 2024-05-21 12:02:08 -04:00
users.go additional stats (#19078) 2024-05-24 15:06:10 -04:00
users_test.go Add AvailableTeams to loginResponse and getUserResponse (#3585) 2022-01-13 13:57:44 -06:00
vpp.go Add policies for "No team" (#21972) 2024-09-12 14:23:25 -03:00
vpp_test.go Add clearer error for VPP token constraint failure (#21967) 2024-09-11 14:11:28 -04:00
vulnerabilities.go Added known_vulnerability to vulnerabilities endpoint. (#21136) 2024-08-08 21:37:25 +02:00
vulnerabilities_test.go Add No Team to Software Backend (#20822) 2024-07-30 11:19:05 -06:00
windows_updates.go Add mechanism to force read from primary DB, use it for puppet matching (#12396) 2023-06-19 13:55:15 -04:00
windows_updates_test.go Add mechanism to force read from primary DB, use it for puppet matching (#12396) 2023-06-19 13:55:15 -04:00
wstep.go Add certificate management for Microsoft MDM (WSTEP) (#12543) 2023-06-29 19:31:53 -03:00
wstep_test.go Move nanomdm dependency in monorepo (#16015) 2024-01-11 23:28:48 -03:00