fleet/server/datastore/mysql
Roberto Dip 7ddf275a64
fix treatment of sync scripts + prevent running expired scripts on fleet upgrade (#16567)
for #16547

# 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. -->

- [x] Input data is properly validated, `SELECT *` is avoided, SQL
injection is prevented (using placeholders for values in statements)
- [x] Added/updated tests
- For database migrations:
- [x] Checked schema for all modified table for columns that will
auto-update timestamps during migration.
- [x] Confirmed that updating the timestamps is acceptable, and will not
cause unwanted side effects.
- [x] Manual QA for all new/changed functionality
2024-02-02 17:57:46 -03:00
..
migrations fix treatment of sync scripts + prevent running expired scripts on fleet upgrade (#16567) 2024-02-02 17:57:46 -03:00
activities.go fix treatment of sync scripts + prevent running expired scripts on fleet upgrade (#16567) 2024-02-02 17:57:46 -03:00
activities_test.go Queued scripts feature (#16300) 2024-01-29 11:37:54 -03:00
aggregated_stats.go Performance stats for live queries (#15440) 2023-12-13 14:46:59 -06:00
aggregated_stats_test.go Performance stats for live queries (#15440) 2023-12-13 14:46:59 -06:00
app_configs.go Improve UX for globally enabling/disabling SSO (#15887) 2024-01-10 08:26:55 -06:00
app_configs_test.go Improve UX for globally enabling/disabling SSO (#15887) 2024-01-10 08:26:55 -06:00
apple_mdm.go feature: target profiles by labels (#16202) 2024-01-26 11:00:58 -05:00
apple_mdm_test.go feature: target profiles by labels (#16202) 2024-01-26 11:00:58 -05:00
campaigns.go Add mechanism to force read from primary DB, use it for puppet matching (#12396) 2023-06-19 13:55:15 -04:00
campaigns_test.go Updated factory method for creating queries in tests 2023-07-07 09:05:51 -04: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 Improve performance of the Go test suite (#2060) 2021-09-20 14:09:38 -04:00
config.go Fix double quote usage in sql query (#6707) 2022-07-20 10:10:03 -06: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 Improve performance of the Go test suite (#2060) 2021-09-20 14:09:38 -04:00
errors.go Configure bootstrap package and end user auth for newly created teams in MDM pre-assignment flow (#13089) 2023-08-07 09:43:39 -05: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 Implement OS Version ID (#16463) 2024-01-31 10:14:24 -07:00
hosts_test.go Implement OS Version ID (#16463) 2024-01-31 10:14:24 -07:00
invites.go Enabled support and validation of 'after' parameter for several endpoints (#15047) 2023-11-09 13:18:29 -06: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 Add mechanism to force read from primary DB, use it for puppet matching (#12396) 2023-06-19 13:55:15 -04:00
jobs_test.go Allow "not_before" timestamp for worker jobs, schedule more quickly (#11512) 2023-05-03 16:25:36 -04:00
labels.go feature: target profiles by labels (#16202) 2024-01-26 11:00:58 -05:00
labels_test.go feature: target profiles by labels (#16202) 2024-01-26 11:00:58 -05:00
locks.go Add mechanism to force read from primary DB, use it for puppet matching (#12396) 2023-06-19 13:55:15 -04: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 feature: target profiles by labels (#16202) 2024-01-26 11:00:58 -05:00
mdm_test.go feature: target profiles by labels (#16202) 2024-01-26 11:00:58 -05:00
microsoft_mdm.go fix: add "w" prefix to Windows OS update profile UUIDs (#16437) 2024-01-30 12:05:43 -05:00
microsoft_mdm_test.go feature: target profiles by labels (#16202) 2024-01-26 11:00:58 -05:00
migrations_test.go Add mechanism to force read from primary DB, use it for puppet matching (#12396) 2023-06-19 13:55:15 -04:00
mysql.go Move nanomdm dependency in monorepo (#16015) 2024-01-11 23:28:48 -03:00
mysql_test.go Custom email device-mapping: implement the CLI (fleetd + fleetctl) changes (#15763) 2023-12-21 11:22:59 -06:00
operating_system_vulnerabilities.go 4345 OS Vulnerabilities Backend (#16303) 2024-01-24 12:18:57 -07:00
operating_system_vulnerabilities_test.go 4345 OS Vulnerabilities Backend (#16303) 2024-01-24 12:18:57 -07:00
operating_systems.go Implement OS Version ID (#16463) 2024-01-31 10:14:24 -07:00
operating_systems_test.go Implement OS Version ID (#16463) 2024-01-31 10:14:24 -07: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 Added host_count_updated_at to policy API responses. (#15767) 2023-12-27 15:24:27 -06:00
policies_test.go On My device and Host details pages, failing policies are now listed first. (#16102) 2024-01-16 10:19:16 -06:00
queries.go Live query stats are cleared when query SQL is modified. (#15710) 2023-12-18 08:45:19 -06:00
queries_test.go Fixing TestQueries/Delete flaky tests. (#15838) 2023-12-27 15:22:18 -06:00
query_results.go Cleanup Query Results Cron (#15917) 2024-01-05 06:05:01 -07:00
query_results_test.go Cleanup Query Results Cron (#15917) 2024-01-05 06:05:01 -07:00
scep.go Move nanomdm dependency in monorepo (#16015) 2024-01-11 23:28:48 -03:00
scep_test.go add mocks + tests and move things around (#9574) 2023-01-31 11:46:01 -03:00
scheduled_queries.go Performance stats for live queries (#15440) 2023-12-13 14:46:59 -06:00
scheduled_queries_test.go Performance stats for live queries (#15440) 2023-12-13 14:46:59 -06:00
schema.sql Implement OS Version ID (#16463) 2024-01-31 10:14:24 -07:00
scripts.go fix treatment of sync scripts + prevent running expired scripts on fleet upgrade (#16567) 2024-02-02 17:57:46 -03:00
scripts_test.go fix treatment of sync scripts + prevent running expired scripts on fleet upgrade (#16567) 2024-02-02 17:57:46 -03: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 pre-calculate host counts for software titles (#15601) 2023-12-13 12:48:57 -03:00
software_test.go 15254 oval scan err (#15499) 2023-12-14 10:39:28 -07:00
software_titles.go filter for hosts_count > 0 in software title query (#16225) 2024-01-19 15:42:42 -03:00
software_titles_test.go filter for hosts_count > 0 in software title query (#16225) 2024-01-19 15:42:42 -03:00
statistics.go Move external dependency fleetdm/kolide-kit to monorepo (#15861) 2024-01-02 18:22:52 -03:00
statistics_test.go fix: use other field for checking vuln scanning status (#15720) 2023-12-21 12:38:21 -05:00
targets.go Add mechanism to force read from primary DB, use it for puppet matching (#12396) 2023-06-19 13:55:15 -04:00
targets_test.go Support matching a host in orbit enrollment using the serial number (#9612) 2023-02-28 12:55:04 -05:00
teams.go Enabled support and validation of 'after' parameter for several endpoints (#15047) 2023-11-09 13:18:29 -06:00
teams_test.go feature: target profiles by labels (#16202) 2024-01-26 11:00:58 -05:00
testing_utils.go Added a new synchronous live query endpoint: POST /api/v1/fleet/queries/:id/run (#15860) 2024-01-03 09:39:16 -06:00
unicode_test.go Remove skipLoadingExtras and includeCVEScores from GetHost and HostByIdentifier methods (#5874) 2022-05-25 11:30:03 -05:00
users.go Enabled support and validation of 'after' parameter for several endpoints (#15047) 2023-11-09 13:18:29 -06:00
users_test.go Add AvailableTeams to loginResponse and getUserResponse (#3585) 2022-01-13 13:57:44 -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