fleet/server/datastore/mysql
Tomas Touceda eee539cccc
Issue 3707 clean targets on delete (#3739)
* wip

* Delete targets when deleting teams, hosts, and labels

* Add changes file

* Fix error message

* Remove unused teamsTable

* Cleanup new pack

* Clean new packs at end of test
2022-01-19 10:28:08 -03:00
..
migrations Remove cleanups and fk for host ids (#3607) 2022-01-12 14:07:51 -03:00
activities_test.go Improve performance of the Go test suite (#2060) 2021-09-20 14:09:38 -04:00
activities.go Create errors with ctxerr, add the call to store them in redis (#2786) 2021-11-15 09:11:38 -05:00
aggregated_stats_test.go UI feature: Frontend of performance impact bubbles (#2589) 2021-10-22 16:05:49 -04:00
aggregated_stats.go Add fixes for running tests with mysql:8 and add mysql to test-go job matrix (#3627) 2022-01-11 22:44:37 -03:00
app_configs_test.go Improve performance of the Go test suite (#2060) 2021-09-20 14:09:38 -04:00
app_configs.go Create errors with ctxerr, add the call to store them in redis (#2786) 2021-11-15 09:11:38 -05:00
campaigns_test.go Improve performance of the Go test suite (#2060) 2021-09-20 14:09:38 -04:00
campaigns.go Create errors with ctxerr, add the call to store them in redis (#2786) 2021-11-15 09:11:38 -05:00
carves_test.go Improve performance of the Go test suite (#2060) 2021-09-20 14:09:38 -04:00
carves.go Move carves endpoints to new endpoint pattern (#3148) 2021-12-01 15:45:29 -05:00
config.go Add support for MySQL read replicas (#1786) 2021-09-01 15:50:52 -04:00
delete_test.go Further optimize host select with policies (#3013) 2021-11-18 14:36:35 -03:00
delete.go Create errors with ctxerr, add the call to store them in redis (#2786) 2021-11-15 09:11:38 -05:00
email_changes_test.go Improve performance of the Go test suite (#2060) 2021-09-20 14:09:38 -04:00
email_changes.go Create errors with ctxerr, add the call to store them in redis (#2786) 2021-11-15 09:11:38 -05:00
errors.go Improved Datastore usage of osquery hosts requests (#3601) 2022-01-17 22:52:09 -03:00
fulltext_test.go Fix target search behavior with - and + symbols (#2067) 2019-07-03 10:47:43 -07:00
fulltext.go Fix SearchHosts to match for one-char and two-chars queries (#2590) 2021-10-21 17:46:21 -03:00
hosts_test.go Issue 3707 clean targets on delete (#3739) 2022-01-19 10:28:08 -03:00
hosts.go Issue 3707 clean targets on delete (#3739) 2022-01-19 10:28:08 -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
invites.go Create errors with ctxerr, add the call to store them in redis (#2786) 2021-11-15 09:11:38 -05:00
labels_test.go Issue 3707 clean targets on delete (#3739) 2022-01-19 10:28:08 -03:00
labels.go Issue 3707 clean targets on delete (#3739) 2022-01-19 10:28:08 -03:00
locks_test.go Add fixes for running tests with mysql:8 and add mysql to test-go job matrix (#3627) 2022-01-11 22:44:37 -03:00
locks.go Add the fleetctl debug {errors,db-locks} sub-commands (#3168) 2021-12-06 09:26:01 -05:00
migrations_test.go Do not exit on serve/prepare if there are unknown migrations (#3262) 2021-12-08 19:50:00 -03:00
mysql_test.go Fix regex matching email in host search (#3539) 2021-12-31 09:16:25 -08:00
mysql.go Issue 3707 clean targets on delete (#3739) 2022-01-19 10:28:08 -03:00
packs_test.go Improved Datastore usage of osquery hosts requests (#3601) 2022-01-17 22:52:09 -03:00
packs.go Optimize requests on packs page (#3327) 2021-12-13 21:50:24 -08:00
password_reset_test.go Improve performance of the Go test suite (#2060) 2021-09-20 14:09:38 -04:00
password_reset.go Create errors with ctxerr, add the call to store them in redis (#2786) 2021-11-15 09:11:38 -05:00
policies_test.go Global policies automation webhooks (#3378) 2021-12-23 18:26:55 -03:00
policies.go Refactor async host processing to avoid redis SCAN keys (for policies) (#3657) 2022-01-18 09:56:43 -05:00
queries_test.go Add author_email to payload of queries (Get/List) (#2798) 2021-11-08 09:06:56 -05:00
queries.go Detect not found errors for queries and policies (#3595) 2022-01-12 10:04:16 -03:00
scheduled_queries_test.go Improved Datastore usage of osquery hosts requests (#3601) 2022-01-17 22:52:09 -03:00
scheduled_queries.go Improved Datastore usage of osquery hosts requests (#3601) 2022-01-17 22:52:09 -03:00
schema.sql Remove cleanups and fk for host ids (#3607) 2022-01-12 14:07:51 -03:00
sessions_test.go Improve performance of the Go test suite (#2060) 2021-09-20 14:09:38 -04:00
sessions.go Create errors with ctxerr, add the call to store them in redis (#2786) 2021-11-15 09:11:38 -05:00
software_test.go Improved Datastore usage of osquery hosts requests (#3601) 2022-01-17 22:52:09 -03:00
software.go Improved Datastore usage of osquery hosts requests (#3601) 2022-01-17 22:52:09 -03:00
statistics_test.go Fix usage stats to send missing numLabels field (#3606) 2022-01-13 11:11:13 -06:00
statistics.go Fix usage stats to send missing numLabels field (#3606) 2022-01-13 11:11:13 -06:00
targets_test.go Add COALESCEs on all host_seen_times JOINs (#3147) 2021-12-01 09:05:23 -03:00
targets.go Add COALESCEs on all host_seen_times JOINs (#3147) 2021-12-01 09:05:23 -03:00
teams_test.go Issue 3707 clean targets on delete (#3739) 2022-01-19 10:28:08 -03:00
teams.go Issue 3707 clean targets on delete (#3739) 2022-01-19 10:28:08 -03:00
testing_utils.go Add fixes for running tests with mysql:8 and add mysql to test-go job matrix (#3627) 2022-01-11 22:44:37 -03:00
unicode_test.go Further optimize host select with policies (#3013) 2021-11-18 14:36:35 -03:00
users_test.go Add AvailableTeams to loginResponse and getUserResponse (#3585) 2022-01-13 13:57:44 -06:00
users.go Update anonymous usage statistics to record Fleet feature adoption (#3056) 2021-12-06 14:39:00 -06:00