grafana/pkg/services
Alexander Weaver b198559225
Alerting: Extend PUT rule-group route to write the entire rule group rather than top-level fields only (#53078)
* Wire up to full alert rule struct

* Extract group change detection logic to dedicated file

* GroupDiff -> GroupDelta for consistency

* Calculate deltas and handle backwards compatible requests

* Separate changes and insert/update/delete as needed

* Regenerate files

* Don't touch the DB if there are no changes

* Quota checking, delete unused file

* Mark modified records as provisioned

* Validation + a couple API layer tests

* Address linter errors

* Fix issue with UID assignment and rule creation

* Propagate top level group fields to all rules

* Tests for repeated updates and versioning

* Tests for quota and provenance checks

* Fix linter errors

* Regenerate

* Factor out some shared logic

* Drop unnecessary multiple nilchecks

* Use alternative strategy for rolling UIDs on inserted rules

* Fix tests, add back nilcheck, refresh UIDs during test

* Address feedback

* Add missing nil-check
2022-08-10 12:33:41 -05:00
..
accesscontrol Move SignedInUser to user service and RoleType and Roles to org (#53445) 2022-08-10 11:56:48 +02:00
alerting Handle ioutil deprecations (#53526) 2022-08-10 15:37:51 +02:00
annotations Move SignedInUser to user service and RoleType and Roles to org (#53445) 2022-08-10 11:56:48 +02:00
apikey Move SignedInUser to user service and RoleType and Roles to org (#53445) 2022-08-10 11:56:48 +02:00
auth Handle ioutil deprecations (#53526) 2022-08-10 15:37:51 +02:00
cleanup Alerting: Delete expired images from the database (#53236) 2022-08-09 15:28:36 +01:00
comments Move SignedInUser to user service and RoleType and Roles to org (#53445) 2022-08-10 11:56:48 +02:00
contexthandler Move SignedInUser to user service and RoleType and Roles to org (#53445) 2022-08-10 11:56:48 +02:00
correlations Correlations: Add UpdateCorrelation HTTP API (#52444) 2022-08-03 14:18:51 +01:00
dashboardimport Handle ioutil deprecations (#53526) 2022-08-10 15:37:51 +02:00
dashboards Move SignedInUser to user service and RoleType and Roles to org (#53445) 2022-08-10 11:56:48 +02:00
dashboardsnapshots Move SignedInUser to user service and RoleType and Roles to org (#53445) 2022-08-10 11:56:48 +02:00
dashboardversion chore/backend: move dashboard errors to dashboard service (#51593) 2022-06-30 09:31:54 -04:00
datasourceproxy backend/datasources: move datasources models into the datasources service package (#51267) 2022-06-27 12:23:15 -04:00
datasources Handle ioutil deprecations (#53526) 2022-08-10 15:37:51 +02:00
encryption Encryption: Fall back to AES-CFB on empty algorithm metadata (#53266) 2022-08-04 09:37:53 +02:00
export Handle ioutil deprecations (#53526) 2022-08-10 15:37:51 +02:00
featuremgmt Handle ioutil deprecations (#53526) 2022-08-10 15:37:51 +02:00
guardian Move SignedInUser to user service and RoleType and Roles to org (#53445) 2022-08-10 11:56:48 +02:00
hooks Migrate to Wire for dependency injection (#32289) 2021-08-25 15:11:22 +02:00
kmsproviders Encryption: Refactor secrets.Service initialization (#51091) 2022-07-07 09:48:25 +02:00
ldap Handle ioutil deprecations (#53526) 2022-08-10 15:37:51 +02:00
libraryelements Move SignedInUser to user service and RoleType and Roles to org (#53445) 2022-08-10 11:56:48 +02:00
librarypanels Move SignedInUser to user service and RoleType and Roles to org (#53445) 2022-08-10 11:56:48 +02:00
licensing RBAC: Make RBAC action names more consistent (#49730) 2022-06-02 13:14:48 +01:00
live Handle ioutil deprecations (#53526) 2022-08-10 15:37:51 +02:00
login Move SignedInUser to user service and RoleType and Roles to org (#53445) 2022-08-10 11:56:48 +02:00
multildap Split Create User (#50502) 2022-06-28 14:32:25 +02:00
ngalert Alerting: Extend PUT rule-group route to write the entire rule group rather than top-level fields only (#53078) 2022-08-10 12:33:41 -05:00
notifications Handle ioutil deprecations (#53526) 2022-08-10 15:37:51 +02:00
oauthtoken Move SignedInUser to user service and RoleType and Roles to org (#53445) 2022-08-10 11:56:48 +02:00
org Move SignedInUser to user service and RoleType and Roles to org (#53445) 2022-08-10 11:56:48 +02:00
playlist remove the sqlstore playlist methods (#53415) 2022-08-08 11:06:06 -05:00
plugindashboards Move SignedInUser to user service and RoleType and Roles to org (#53445) 2022-08-10 11:56:48 +02:00
pluginsettings Plugins: Add plugin settings DTO (#46283) 2022-03-18 20:49:13 +01:00
preference Move SignedInUser to user service and RoleType and Roles to org (#53445) 2022-08-10 11:56:48 +02:00
provisioning Handle ioutil deprecations (#53526) 2022-08-10 15:37:51 +02:00
publicdashboards Public Dashboards: Usage Insights (#52768) 2022-08-10 14:14:48 -03:00
query Move SignedInUser to user service and RoleType and Roles to org (#53445) 2022-08-10 11:56:48 +02:00
queryhistory Move SignedInUser to user service and RoleType and Roles to org (#53445) 2022-08-10 11:56:48 +02:00
quota Sync: Move ActiveTokenCount to a new service (#52991) 2022-07-29 16:30:46 +02:00
rendering Move SignedInUser to user service and RoleType and Roles to org (#53445) 2022-08-10 11:56:48 +02:00
screenshot Move SignedInUser to user service and RoleType and Roles to org (#53445) 2022-08-10 11:56:48 +02:00
search Move SignedInUser to user service and RoleType and Roles to org (#53445) 2022-08-10 11:56:48 +02:00
searchusers SAML: Do not SAML SLO if user is not SAML authenticated (#53418) 2022-08-10 10:21:33 +02:00
searchV2 Handle ioutil deprecations (#53526) 2022-08-10 15:37:51 +02:00
secrets Encryption: De-duplicate encryption code with extensible service (#52472) 2022-08-02 15:08:09 +02:00
serviceaccounts Move SignedInUser to user service and RoleType and Roles to org (#53445) 2022-08-10 11:56:48 +02:00
shorturls Move SignedInUser to user service and RoleType and Roles to org (#53445) 2022-08-10 11:56:48 +02:00
sqlstore Handle ioutil deprecations (#53526) 2022-08-10 15:37:51 +02:00
star Add delete user from other services/stores (#51912) 2022-07-15 18:06:44 +02:00
store Handle ioutil deprecations (#53526) 2022-08-10 15:37:51 +02:00
teamguardian Move SignedInUser to user service and RoleType and Roles to org (#53445) 2022-08-10 11:56:48 +02:00
thumbs Handle ioutil deprecations (#53526) 2022-08-10 15:37:51 +02:00
updatechecker Handle ioutil deprecations (#53526) 2022-08-10 15:37:51 +02:00
user Move SignedInUser to user service and RoleType and Roles to org (#53445) 2022-08-10 11:56:48 +02:00
userauth Chore: Split delete user method (#52216) 2022-07-19 16:01:05 +02:00
validations Migrate to Wire for dependency injection (#32289) 2021-08-25 15:11:22 +02:00