fleet/server/datastore/mysql
Victor Lyuboslavsky 3991619244
Added ListOptions validation to fleet/software endpoint. (#14838)
#14554 

For the following endpoints:
/api/v1/fleet/software
/api/v1/fleet/software/count
- added validation on `page`, `per_page`, `order_key`, `order_direction`
-- invalid values will now return 400 HTTP status code

# Checklist for submitter

If some of the following don't apply, delete the relevant line.

- [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] Manual QA for all new/changed functionality
2023-11-01 09:56:27 -05:00
..
migrations Feat windows msmdm (#14837) 2023-11-01 11:13:12 -03:00
activities.go Add mechanism to force read from primary DB, use it for puppet matching (#12396) 2023-06-19 13:55:15 -04:00
activities_test.go add attribute to GET /activities endpoint with pagination metadata (#9279) 2023-01-18 12:57:11 +00:00
aggregated_stats.go Combine Schedules and Queries: API changes (#12778) 2023-07-24 20:17:20 -04:00
aggregated_stats_test.go Combine Schedules and Queries: API changes (#12778) 2023-07-24 20:17:20 -04:00
app_configs.go maintenance merge of main into feature branch (#14393) 2023-10-09 14:28:35 -07:00
app_configs_test.go maintenance merge of main into feature branch (#14393) 2023-10-09 14:28:35 -07:00
apple_mdm.go Feat windows msmdm (#14837) 2023-11-01 11:13:12 -03:00
apple_mdm_test.go Feat windows msmdm (#14837) 2023-11-01 11:13:12 -03: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 Add mechanism to force read from primary DB, use it for puppet matching (#12396) 2023-06-19 13:55:15 -04: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 Feat windows msmdm (#14837) 2023-11-01 11:13:12 -03:00
hosts_test.go Feat windows msmdm (#14837) 2023-11-01 11:13:12 -03:00
invites.go Add mechanism to force read from primary DB, use it for puppet matching (#12396) 2023-06-19 13:55:15 -04: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 maintenance merge of main into feature branch (#14393) 2023-10-09 14:28:35 -07:00
labels_test.go maintenance merge of main into feature branch (#14393) 2023-10-09 14:28:35 -07: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 Feat windows msmdm (#14837) 2023-11-01 11:13:12 -03:00
mdm_test.go Feat windows msmdm (#14837) 2023-11-01 11:13:12 -03:00
microsoft_mdm.go Feat windows msmdm (#14837) 2023-11-01 11:13:12 -03:00
microsoft_mdm_test.go Feat windows msmdm (#14837) 2023-11-01 11:13:12 -03: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 chore: remove refs to deprecated io/ioutil (#14485) 2023-10-27 15:28:54 -03:00
mysql_test.go Add mechanism to force read from primary DB, use it for puppet matching (#12396) 2023-06-19 13:55:15 -04:00
operating_system_vulnerabilities.go Add mechanism to force read from primary DB, use it for puppet matching (#12396) 2023-06-19 13:55:15 -04:00
operating_system_vulnerabilities_test.go Add mechanism to force read from primary DB, use it for puppet matching (#12396) 2023-06-19 13:55:15 -04:00
operating_systems.go Add mechanism to force read from primary DB, use it for puppet matching (#12396) 2023-06-19 13:55:15 -04:00
operating_systems_test.go Add mechanism to force read from primary DB, use it for puppet matching (#12396) 2023-06-19 13:55:15 -04:00
packs.go upgrade Go version to 1.21.1 (#13877) 2023-09-13 15:59:35 -03:00
packs_test.go Prevent empty logging_type when creating and editing queries (#14575) 2023-10-16 19:33:39 -03: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 feat: reset yes/no count when query changes (#14776) 2023-10-31 12:29:09 -04:00
policies_test.go feat: reset yes/no count when query changes (#14776) 2023-10-31 12:29:09 -04:00
queries.go Add optimizations for query reports at scale (#14710) 2023-10-25 19:20:27 -03:00
queries_test.go Prevent empty logging_type when creating and editing queries (#14575) 2023-10-16 19:33:39 -03:00
query_results.go Add optimizations for query reports at scale (#14710) 2023-10-25 19:20:27 -03:00
query_results_test.go Add optimizations for query reports at scale (#14710) 2023-10-25 19:20:27 -03:00
scep.go add mocks + tests and move things around (#9574) 2023-01-31 11:46:01 -03:00
scep_test.go add mocks + tests and move things around (#9574) 2023-01-31 11:46:01 -03:00
scheduled_queries.go Combine Schedules and Queries: API changes (#12778) 2023-07-24 20:17:20 -04:00
scheduled_queries_test.go Prevent empty logging_type when creating and editing queries (#14575) 2023-10-16 19:33:39 -03:00
schema.sql Feat windows msmdm (#14837) 2023-11-01 11:13:12 -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
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 Added ListOptions validation to fleet/software endpoint. (#14838) 2023-11-01 09:56:27 -05:00
software_test.go Added ListOptions validation to fleet/software endpoint. (#14838) 2023-11-01 09:56:27 -05:00
statistics.go Add mechanism to force read from primary DB, use it for puppet matching (#12396) 2023-06-19 13:55:15 -04:00
statistics_test.go Add mechanism to force read from primary DB, use it for puppet matching (#12396) 2023-06-19 13:55:15 -04: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 Combine Schedules and Queries: API changes (#12778) 2023-07-24 20:17:20 -04:00
teams_test.go Combine Schedules and Queries: API changes (#12778) 2023-07-24 20:17:20 -04:00
testing_utils.go chore: remove refs to deprecated io/ioutil (#14485) 2023-10-27 15:28:54 -03:00
unicode_test.go Remove skipLoadingExtras and includeCVEScores from GetHost and HostByIdentifier methods (#5874) 2022-05-25 11:30:03 -05:00
users.go Add mechanism to force read from primary DB, use it for puppet matching (#12396) 2023-06-19 13:55:15 -04: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 Add certificate management for Microsoft MDM (WSTEP) (#12543) 2023-06-29 19:31:53 -03:00