fleet/server/datastore/mysql
Roberto Dip e4cd25f4aa
fix a bug causing features to be false (#8240)
Related to https://github.com/fleetdm/fleet/issues/8010 and https://github.com/fleetdm/fleet/issues/8013 this prevents a bug that happens when:

1. A team doesn't have a `config.features` key in the JSON stored in the table or `config` is `NULL`
2. The team is edited from the UI

All `config.features` will default to `false`, which can be a problem if your global settings are `true` for both (which is the default)
2022-10-14 19:27:37 -03:00
..
migrations new timestamp for HostDisplayName migration (#8224) 2022-10-14 15:59:58 +02:00
activities_test.go Improve performance of the Go test suite (#2060) 2021-09-20 14:09:38 -04:00
activities.go Issue 3173 debug status processlist (#4009) 2022-02-03 14:56:22 -03:00
aggregated_stats_test.go Replace uses of ansi quotes (") in SQL statements (#4726) 2022-04-11 11:47:50 -07:00
aggregated_stats.go Issue 3173 debug status processlist (#4009) 2022-02-03 14:56:22 -03:00
app_configs_test.go Keep created_at timestamp of existing enroll secrets (#8062) 2022-10-05 08:35:36 -04:00
app_configs.go Keep created_at timestamp of existing enroll secrets (#8062) 2022-10-05 08:35:36 -04:00
apple_mdm.go Add Apple MDM functionality (#7940) 2022-10-05 19:53:54 -03:00
campaigns_test.go Improve performance of the Go test suite (#2060) 2021-09-20 14:09:38 -04:00
campaigns.go Issue 3173 debug status processlist (#4009) 2022-02-03 14:56:22 -03:00
carves_test.go Improve performance of the Go test suite (#2060) 2021-09-20 14:09:38 -04:00
carves.go Issue 3173 debug status processlist (#4009) 2022-02-03 14:56:22 -03:00
config.go Fix double quote usage in sql query (#6707) 2022-07-20 10:10:03 -06:00
delete_test.go Remove skipLoadingExtras and includeCVEScores from GetHost and HostByIdentifier methods (#5874) 2022-05-25 11:30:03 -05:00
delete.go Issue 3173 debug status processlist (#4009) 2022-02-03 14:56:22 -03: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 Using '@' in target search causes 422 error response (#5148) 2022-04-19 09:28:49 -04:00
fulltext.go Using '@' in target search causes 422 error response (#5148) 2022-04-19 09:28:49 -04:00
hosts_test.go token rotation for fleet desktop (#7779) 2022-10-10 17:15:35 -03:00
hosts.go token rotation for fleet desktop (#7779) 2022-10-10 17:15:35 -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 Issue 3173 debug status processlist (#4009) 2022-02-03 14:56:22 -03:00
jobs.go Queue jobs for Jira integration when enabled and new vulnerabilities are found. (#4975) 2022-04-11 16:42:16 -04:00
labels_test.go Add issues count to GET /labels/{id}/hosts response (#7381) 2022-09-02 09:13:53 -05:00
labels.go Add new missing value to existing status URL parameter at the GET /hosts endpoint (#7916) 2022-10-10 07:45:39 -04:00
locks_test.go Add team targets to pack spec (#4272) 2022-02-21 09:18:58 -07:00
locks.go Issue 3173 debug status processlist (#4009) 2022-02-03 14:56:22 -03:00
migrations_test.go Fix double quote usage in sql query (#6707) 2022-07-20 10:10:03 -06:00
mysql_test.go 7135 host display name (#7873) 2022-10-08 08:57:46 -04:00
mysql.go Fix undetected missing migrations (#8228) 2022-10-14 13:26:04 -03:00
operating_systems_test.go Handle errors for duplicate os records (#7294) 2022-08-22 14:34:00 -05:00
operating_systems.go Enhance API endpoints with host operating systems info (#7154) 2022-08-12 14:23:25 -05:00
packs_test.go Add team targets to pack spec (#4272) 2022-02-21 09:18:58 -07:00
packs.go Add team targets to pack spec (#4272) 2022-02-21 09:18:58 -07:00
password_reset_test.go Improve performance of the Go test suite (#2060) 2021-09-20 14:09:38 -04:00
password_reset.go Migrate special-case endpoints to new pattern (#4511) 2022-03-08 11:27:38 -05:00
policies_test.go Add usage statistics to measure policy violations (#8199) 2022-10-14 13:55:37 -05:00
policies.go Add usage statistics to measure policy violations (#8199) 2022-10-14 13:55:37 -05:00
queries_test.go Improve live query UX (#5749) 2022-06-10 13:29:45 -05:00
queries.go Improve live query UX (#5749) 2022-06-10 13:29:45 -05:00
scheduled_queries_test.go Support async saving of scheduled query statistics (#7012) 2022-08-10 10:01:05 -04:00
scheduled_queries.go Support async saving of scheduled query statistics (#7012) 2022-08-10 10:01:05 -04:00
schema.sql new timestamp for HostDisplayName migration (#8224) 2022-10-14 15:59:58 +02:00
sessions_test.go Add read replica testing helpers and fix non-sso login bug (#4908) 2022-04-04 16:52:05 -07:00
sessions.go Add read replica testing helpers and fix non-sso login bug (#4908) 2022-04-04 16:52:05 -07:00
software_test.go 7135 host display name (#7873) 2022-10-08 08:57:46 -04:00
software.go 7135 host display name (#7873) 2022-10-08 08:57:46 -04:00
statistics_test.go Add usage statistics to measure policy violations (#8199) 2022-10-14 13:55:37 -05:00
statistics.go Add usage statistics to measure policy violations (#8199) 2022-10-14 13:55:37 -05:00
targets_test.go Improve live query UX (#5749) 2022-06-10 13:29:45 -05:00
targets.go Improve live query UX (#5749) 2022-06-10 13:29:45 -05:00
teams_test.go fix a bug causing features to be false (#8240) 2022-10-14 19:27:37 -03:00
teams.go fix a bug causing features to be false (#8240) 2022-10-14 19:27:37 -03:00
testing_utils.go Fix double quote usage in sql query (#6707) 2022-07-20 10:10:03 -06:00
unicode_test.go Remove skipLoadingExtras and includeCVEScores from GetHost and HostByIdentifier methods (#5874) 2022-05-25 11:30:03 -05:00
users_test.go Add AvailableTeams to loginResponse and getUserResponse (#3585) 2022-01-13 13:57:44 -06:00
users.go Add weekly active users count in anonymous usage stats (#6317) 2022-06-22 15:20:57 -04:00
windows_updates_test.go Feature 7076: Ingest installed windows updates (#7138) 2022-08-26 14:55:03 -04:00
windows_updates.go Feature 7076: Ingest installed windows updates (#7138) 2022-08-26 14:55:03 -04:00