fleet/server/datastore/mysql
Lucas Manuel Rodriguez 964f85b174
Amend policy creation and spec (for proprietary query), and add update APIs (#2890)
* Amend policy creation (proprietary query), add update APIs

* Fix Datastore.SavePolicy bug (and add tests)

* Add integration tests for new policy APIs

* Add author email

* Add activities

* Push breaking changes for return policy fields

* WIP

* Add integration test for host policies

* Make more improvements to policy representation

* Improve upgrade code (from PR review comments)

* PR changes

* Revert activities for policies

* Use *uint instead of uint for queryID, use fleet.PolicyPayload

* Filter out other schemas

* New policy flow (#2922)

* created new policy flow -- no API connection

* added api props

* fixed prop name

* lint fixes

* removed unused modal; fixed style

* name, desc icons; created global components

* lint fixes

* ignoring certain files and lines for prettier

* Update frontend/pages/policies/PolicyPage/PolicyPage.tsx

* Make policy names unique across deployment

* Amend upgrade script

* Fix migration for unique names

* Do not deduplicate but instead rename policies

Co-authored-by: Martavis Parker <47053705+martavis@users.noreply.github.com>
2021-11-24 14:16:42 -03:00
..
migrations Amend policy creation and spec (for proprietary query), and add update APIs (#2890) 2021-11-24 14:16:42 -03:00
activities.go Create errors with ctxerr, add the call to store them in redis (#2786) 2021-11-15 09:11:38 -05:00
activities_test.go Improve performance of the Go test suite (#2060) 2021-09-20 14:09:38 -04:00
aggregated_stats.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
app_configs.go Create errors with ctxerr, add the call to store them in redis (#2786) 2021-11-15 09:11:38 -05:00
app_configs_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
campaigns_test.go Improve performance of the Go test suite (#2060) 2021-09-20 14:09:38 -04:00
carves.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
config.go Add support for MySQL read replicas (#1786) 2021-09-01 15:50:52 -04:00
delete.go Create errors with ctxerr, add the call to store them in redis (#2786) 2021-11-15 09:11:38 -05:00
delete_test.go Further optimize host select with policies (#3013) 2021-11-18 14:36:35 -03: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
email_changes_test.go Improve performance of the Go test suite (#2060) 2021-09-20 14:09:38 -04:00
errors.go Amend policy creation and spec (for proprietary query), and add update APIs (#2890) 2021-11-24 14:16:42 -03:00
fulltext.go Fix SearchHosts to match for one-char and two-chars queries (#2590) 2021-10-21 17:46:21 -03:00
fulltext_test.go Fix target search behavior with - and + symbols (#2067) 2019-07-03 10:47:43 -07:00
hosts.go Amend policy creation and spec (for proprietary query), and add update APIs (#2890) 2021-11-24 14:16:42 -03:00
hosts_test.go Amend policy creation and spec (for proprietary query), and add update APIs (#2890) 2021-11-24 14:16:42 -03:00
invites.go Create errors with ctxerr, add the call to store them in redis (#2786) 2021-11-15 09:11:38 -05: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
labels.go Implement fleetctl updates rotate (#2831) 2021-11-15 10:01:48 -08:00
labels_test.go Further optimize host select with policies (#3013) 2021-11-18 14:36:35 -03:00
locks.go Create errors with ctxerr, add the call to store them in redis (#2786) 2021-11-15 09:11:38 -05:00
locks_test.go Use the context in the Datastore layer. (#2030) 2021-09-14 10:44:02 -04:00
migrations_test.go Add fleetctl debug migrations command to get missing migrations (#2967) 2021-11-22 14:06:12 -03:00
mysql.go Add fleetctl debug migrations command to get missing migrations (#2967) 2021-11-22 14:06:12 -03:00
mysql_test.go Add fleetctl debug migrations command to get missing migrations (#2967) 2021-11-22 14:06:12 -03:00
packs.go Create errors with ctxerr, add the call to store them in redis (#2786) 2021-11-15 09:11:38 -05:00
packs_test.go Return all scheduled queries and their stats on the host fetch API (#2855) 2021-11-12 08:18:25 -03: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
password_reset_test.go Improve performance of the Go test suite (#2060) 2021-09-20 14:09:38 -04:00
policies.go Amend policy creation and spec (for proprietary query), and add update APIs (#2890) 2021-11-24 14:16:42 -03:00
policies_test.go Amend policy creation and spec (for proprietary query), and add update APIs (#2890) 2021-11-24 14:16:42 -03:00
queries.go Amend policy creation and spec (for proprietary query), and add update APIs (#2890) 2021-11-24 14:16:42 -03:00
queries_test.go Add author_email to payload of queries (Get/List) (#2798) 2021-11-08 09:06:56 -05:00
scheduled_queries.go Create errors with ctxerr, add the call to store them in redis (#2786) 2021-11-15 09:11:38 -05:00
scheduled_queries_test.go Further optimize host select with policies (#3013) 2021-11-18 14:36:35 -03:00
schema.sql Amend policy creation and spec (for proprietary query), and add update APIs (#2890) 2021-11-24 14:16:42 -03:00
sessions.go Create errors with ctxerr, add the call to store them in redis (#2786) 2021-11-15 09:11:38 -05:00
sessions_test.go Improve performance of the Go test suite (#2060) 2021-09-20 14:09:38 -04:00
software.go Remove host counts from software (#3082) 2021-11-23 15:50:51 -03:00
software_test.go Remove host counts from software (#3082) 2021-11-23 15:50:51 -03:00
statistics.go Create errors with ctxerr, add the call to store them in redis (#2786) 2021-11-15 09:11:38 -05:00
statistics_test.go Add policy updated at (#2246) 2021-09-27 16:27:38 -03:00
targets.go Add tests for hosts dynamic where clause (#2882) 2021-11-15 09:55:27 -05:00
targets_test.go Add tests for hosts dynamic where clause (#2882) 2021-11-15 09:55:27 -05:00
teams.go Remove five-row limit for teams search (#3021) 2021-11-22 09:30:55 -06:00
teams_test.go Improve performance of the Go test suite (#2060) 2021-09-20 14:09:38 -04:00
testing_utils.go Remove deprecated app_configs table (#2884) 2021-11-15 09:34:51 -05:00
unicode_test.go Further optimize host select with policies (#3013) 2021-11-18 14:36:35 -03:00
users.go Create errors with ctxerr, add the call to store them in redis (#2786) 2021-11-15 09:11:38 -05:00
users_test.go Create errors with ctxerr, add the call to store them in redis (#2786) 2021-11-15 09:11:38 -05:00