fleet/server/fleet
Lucas Manuel Rodriguez fd99fd4121
Add optimizations for query reports at scale (#14710)
#7766

- ~[ ] 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.
- ~[ ] Documented any API changes (docs/Using-Fleet/REST-API.md or
docs/Contributing/API-for-contributors.md)~
- ~[ ] Documented any permissions changes (docs/Using
Fleet/manage-access.md)~
- ~[ ] Input data is properly validated, `SELECT *` is avoided, SQL
injection is prevented (using placeholders for values in statements)~
- ~[ ] Added support on fleet's osquery simulator `cmd/osquery-perf` for
new osquery data ingestion features.~
- [X] Added/updated tests
- [X] Manual QA for all new/changed functionality
  - ~For Orbit and Fleet Desktop changes:~
- ~[ ] Manual QA must be performed in the three main OSs, macOS, Windows
and Linux.~
- ~[ ] Auto-update manual QA, from released version of component to new
version (see [tools/tuf/test](../tools/tuf/test/README.md)).~

---------

Co-authored-by: Jahziel Villasana-Espinoza <jahziel@fleetdm.com>
2023-10-25 19:20:27 -03:00
..
policytest Migrate team-related endpoints to new pattern (#3740) 2022-01-19 10:52:14 -05:00
activities.go Feat: saved scripts (#14409) 2023-10-10 19:00:45 -03:00
agent_options.go Add labels to the fleetd extensions feature (#14008) 2023-09-22 11:09:09 -03:00
agent_options_test.go Add labels to the fleetd extensions feature (#14008) 2023-09-22 11:09:09 -03:00
app.go Merge branch 'main' into 7766-main-merge 2023-10-11 12:56:52 -07:00
app_test.go maintenance merge of main into feature branch (#14393) 2023-10-09 14:28:35 -07:00
apple_mdm.go Preserve pending status for DEP-assigned hosts that are deleted in Fleet (#14073) 2023-09-22 16:50:43 -05:00
apple_mdm_test.go Update MDM profile verification (#13138) 2023-08-07 09:46:03 -05:00
authz.go Remove old mdm_command action (do we really need it?) (#11222) 2023-04-18 07:53:33 -03:00
campaigns.go Reduce size of DistributedQueryResult to improve live query performance (#11882) 2023-05-25 08:11:53 -03:00
capabilities.go allow clients to report errors back to the server (#13478) 2023-08-24 13:04:27 -03:00
capabilities_test.go fix panic if concurrent requests write capabilities (#13278) 2023-08-10 19:49:07 -03:00
carves.go report errors that can occur during file carving (#8972) 2022-12-09 13:21:30 -03:00
cron_schedules.go Allow "not_before" timestamp for worker jobs, schedule more quickly (#11512) 2023-05-03 16:25:36 -04:00
datastore.go Add optimizations for query reports at scale (#14710) 2023-10-25 19:20:27 -03:00
db.go Add the fleetctl debug {errors,db-locks} sub-commands (#3168) 2021-12-06 09:26:01 -05:00
device.go add dark and light background logo colors and show them on mdm migrat… (#12681) 2023-07-13 19:35:25 +01:00
emails.go Do not return empty SSO and SMTP settings for non-global-admins (#12180) 2023-06-07 16:06:36 -03:00
errors.go Add fleetctl run-script command (#13622) 2023-09-05 14:14:09 -05:00
errors_test.go allow clients to report errors back to the server (#13478) 2023-08-24 13:04:27 -03:00
fleetctl.go Remove kolide types and packages from backend (#974) 2021-06-06 15:07:29 -07:00
gen_activity_doc.go Add docs for script execution (#13807) 2023-09-12 18:31:04 -04:00
geoip.go Produce hosts' CSV report based on requested columns (#5656) 2022-05-10 14:25:53 -04:00
global_schedule.go Remove unneeded interfaces (#1779) 2021-08-24 18:49:56 -03:00
hostresponse.go /api/_version_/fleet/hosts to return bad request instead of server error when passing invalid mdm_enrollment_status (#11242) 2023-04-19 18:43:15 -03:00
hosts.go Add integration tests for host disk encryption details (#14636) 2023-10-19 09:23:42 -05:00
hosts_test.go maintenance merge of main into feature branch (#14393) 2023-10-09 14:28:35 -07:00
installer.go add a new tool to upload installers to blob storage (#6661) 2022-07-14 16:11:52 -03:00
integrations.go Validate team and appconfig payloads, with dry-run and force modes (#7731) 2022-09-19 13:53:44 -04:00
invites.go Add update invite API (#2837) 2021-11-11 17:33:06 -03:00
jobs.go Allow "not_before" timestamp for worker jobs, schedule more quickly (#11512) 2023-05-03 16:25:36 -04:00
labels.go Add label information to host summary response (#5573) 2022-05-10 10:32:55 -05:00
live_query_store.go Remove kolide types and packages from backend (#974) 2021-06-06 15:07:29 -07:00
logging.go Remove kolide types and packages from backend (#974) 2021-06-06 15:07:29 -07:00
mdm.go maintenance merge of main into feature branch (#14393) 2023-10-09 14:28:35 -07:00
mdm_test.go implement bootstrap packages during DEP enrollment (#11052) 2023-04-07 17:31:02 -03:00
meta.go add attribute to GET /activities endpoint with pagination metadata (#9279) 2023-01-18 12:57:11 +00:00
microsoft_mdm.go Adding error logging for SOAP faults. Relaxing enrollment request checks (#13876) 2023-09-14 14:29:12 -03:00
network_interfaces.go Remove kolide types and packages from backend (#974) 2021-06-06 15:07:29 -07:00
nudge.go Prevent clearing macos updates settings when applying/modifying a team without those settings (#12160) 2023-06-06 14:31:33 -04:00
operating_systems.go Don't analyze non-windows OS using the MSRC scanner (#12421) 2023-06-21 14:19:55 -04:00
operating_systems_test.go Don't analyze non-windows OS using the MSRC scanner (#12421) 2023-06-21 14:19:55 -04:00
orbit.go maintenance merge of main into feature branch (#14393) 2023-10-09 14:28:35 -07:00
orbit_test.go Fix extension delivery bug fix Windows extension paths to .ext.ext (#13986) 2023-09-22 05:17:27 -03:00
osquery.go Save Query Results to DB (#14335) 2023-10-10 09:44:03 -03:00
packs.go Fix permissions on GitOps user for searching hosts or count targets (#11448) 2023-05-01 12:57:28 -03:00
packs_test.go Fix incorrect integer conversion (#10188) 2023-02-28 18:01:25 -08:00
policies.go Add validation for policy specs (#13294) 2023-08-21 10:22:07 -06:00
policies_test.go Add validation for policy specs (#13294) 2023-08-21 10:22:07 -06:00
queries.go Prevent empty logging_type when creating and editing queries (#14575) 2023-10-16 19:33:39 -03:00
queries_test.go Save Query Results to DB (#14335) 2023-10-10 09:44:03 -03:00
query_results.go Remove kolide types and packages from backend (#974) 2021-06-06 15:07:29 -07:00
redis_pool.go Use a redis cluster-friendly store for rate limit (#2577) 2021-10-19 16:24:13 -04:00
scheduled_queries.go Prevent empty logging_type when creating and editing queries (#14575) 2023-10-16 19:33:39 -03:00
scripts.go Feat: saved scripts (#14409) 2023-10-10 19:00:45 -03:00
scripts_test.go Feat: saved scripts (#14409) 2023-10-10 19:00:45 -03:00
service.go Bring MDM hotfixes to main (#14494) 2023-10-13 08:49:11 -03:00
sessions.go Change role of existing users only if SSO attributes are present in the SAMLResponse (#11966) 2023-05-30 17:49:59 -03:00
sessions_test.go Change role of existing users only if SSO attributes are present in the SAMLResponse (#11966) 2023-05-30 17:49:59 -03:00
software.go Fix software ingestion when fields are larger than supported (#13741) 2023-09-06 17:32:11 -03:00
software_test.go Fix software ingestion when fields are larger than supported (#13741) 2023-09-06 17:32:11 -03:00
statistics.go step 1 double the freq from once a week to once every 3days (#11769) 2023-06-01 09:40:42 -04:00
targets.go Update live query selector logic (OR -> AND) (#9559) 2023-01-30 18:35:56 -03:00
targets_test.go Optimize requests on packs page (#3327) 2021-12-13 21:50:24 -08:00
teams.go Feat: saved scripts (#14409) 2023-10-10 19:00:45 -03:00
teams_test.go New gitops role (#10850) 2023-04-12 16:11:04 -03:00
traits.go Add support for downloading a list of hosts in CSV format (#4596) 2022-03-15 15:14:42 -04:00
translator.go Remove unneeded interfaces (#1779) 2021-08-24 18:49:56 -03:00
user_roles.go Remove unneeded interfaces (#1779) 2021-08-24 18:49:56 -03:00
users.go 7766 backmerge main (#14324) 2023-10-05 11:39:48 -06:00
users_test.go If user is a global/team observer/observer+, 'teams' endpoints should not include secrets (#12216) 2023-06-08 17:30:34 -04:00
utils.go Flag when the Apple BM terms have expired (#9091) 2023-01-06 17:44:20 -03:00
vulnerabilities.go Add version_resolved_in to software API (#13939) 2023-09-18 16:53:32 -06:00
windows_mdm.go maintenance merge of main into feature branch (#14393) 2023-10-09 14:28:35 -07:00
windows_updates.go Feature 7076: Ingest installed windows updates (#7138) 2022-08-26 14:55:03 -04:00
windows_updates_tests.go Feature 7076: Ingest installed windows updates (#7138) 2022-08-26 14:55:03 -04:00