fleet/server/service/async
Victor Lyuboslavsky dbf53cae6a
Policies are now unique for (team_id, name). (#16501)
#13643 

Updating the `policies` table to use a checksum column for uniqueness.
The checksum is computed with team_id (which may be null) and name. This
change is modeled on the checksum in the software table.

# 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] Changes file added for user-visible changes in `changes/` or
`orbit/changes/`.
See [Changes
files](https://fleetdm.com/docs/contributing/committing-changes#changes-files)
for more information.
- [x] Added/updated tests
- [x] If database migrations are included, checked table schema to
confirm autoupdate
- 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:41:32 -06:00
..
async.go Support async saving of scheduled query statistics (#7012) 2022-08-10 10:01:05 -04:00
async_bench_test.go Implement async processing of hosts for label queries (#2288) 2021-11-01 14:13:16 -04:00
async_host_seen.go Support per-task configuration for async host processing configuration (#5700) 2022-05-16 09:44:50 -04:00
async_host_seen_test.go Enable errcheck linter for golangci-lint (#8899) 2022-12-05 16:50:49 -06:00
async_label.go Support per-task configuration for async host processing configuration (#5700) 2022-05-16 09:44:50 -04:00
async_label_test.go Enable errcheck linter for golangci-lint (#8899) 2022-12-05 16:50:49 -06:00
async_policy.go Prevent thundering herd when applying large number of policies on large number of hosts (#13552) 2023-08-31 10:58:50 -03:00
async_policy_test.go Policies are now unique for (team_id, name). (#16501) 2024-02-02 17:41:32 -06:00
async_scheduled_query_stats.go Combine Schedules and Queries: API changes (#12778) 2023-07-24 20:17:20 -04:00
async_scheduled_query_stats_test.go Changed query performance statistics to uint64 to match osquery reports. (#15505) 2023-12-11 11:29:17 -06:00
async_test.go upgrade Go version to 1.21.1 (#13877) 2023-09-13 15:59:35 -03:00
collect.go Enable errcheck linter for golangci-lint (#8899) 2022-12-05 16:50:49 -06:00
collect_test.go Set authz checked when rate limiting device endpoints (#6702) 2022-07-18 14:22:49 -03:00
doc.go Support async saving of hosts' last seen time (#5640) 2022-05-10 11:29:17 -04:00