grafana/pkg/services
idafurjes c061b66d5f
Chore: Split delete user method (#52216)
* Remove user from preferences, stars, orguser, team member

* Fix lint

* Add Delete user from org and dashboard acl

* Delete user from user auth

* Add DeleteUser to quota

* Add test files and adjust user auth store

* Rename package in wire for user auth

* Import Quota Service interface in other services

* do the same in tests

* fix lint tests

* Fix tests

* Add some tests

* Rename InsertUser and DeleteUser to InsertOrgUser and DeleteOrgUser

* Rename DeleteUser to DeleteByUser in quota

* changing a method name in few additional places

* Fix in other places

* Fix lint

* Fix tests

* Chore: Split Delete User method

* Add fakes for userauth

* Add mock for access control Delete User permossion, use interface

* Use interface for ream guardian

* Add simple fake for dashboard acl

* Add go routines, clean up, use interfaces

* fix lint

* Update pkg/services/user/userimpl/user_test.go

Co-authored-by: Sofia Papagiannaki <1632407+papagian@users.noreply.github.com>

* Update pkg/services/user/userimpl/user_test.go

Co-authored-by: Sofia Papagiannaki <1632407+papagian@users.noreply.github.com>

* Update pkg/services/user/userimpl/user_test.go

Co-authored-by: Sofia Papagiannaki <1632407+papagian@users.noreply.github.com>

* Add wrapper for not service account error

* fix indentation

* Use fmt for error wrapper

Co-authored-by: Sofia Papagiannaki <1632407+papagian@users.noreply.github.com>
2022-07-19 16:01:05 +02:00
..
accesscontrol Chore: Split delete user method (#52216) 2022-07-19 16:01:05 +02:00
alerting Renderer: Add sanitize API (#50936) 2022-07-07 15:32:18 +04:00
annotations Chore : Replace dashboardid with dashboardUID in annotation API (#48481) 2022-05-02 11:35:36 +02:00
auth Split Create User (#50502) 2022-06-28 14:32:25 +02:00
cleanup backend/dashboardsnapshot service: move models (#50898) 2022-06-17 09:09:01 -04:00
comments backend/services: Move GetDashboard from sqlstore to dashboard service (#48971) 2022-05-17 14:52:22 -04:00
contexthandler Fix: Choose Lookup params per auth module (#395) (#52312) 2022-07-15 10:21:09 +01:00
dashboardimport Add delete user from other services/stores (#51912) 2022-07-15 18:06:44 +02:00
dashboards Chore: Split delete user method (#52216) 2022-07-19 16:01:05 +02:00
dashboardsnapshots chore/backend: move dashboard errors to dashboard service (#51593) 2022-06-30 09:31:54 -04: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 Datasources: Allow configuration of the TTL (#52161) 2022-07-15 10:48:52 +01:00
encryption Encryption: Add support for decrypting ciphertexts with algorithm metadata (#49312) 2022-05-20 17:11:51 +02:00
export Export: include section count in status updates (#52368) 2022-07-18 11:03:08 -04:00
featuremgmt Traces: Remove serviceMap feature flag (#52375) 2022-07-19 08:00:58 +01:00
guardian Rename Acl to ACL (#52342) 2022-07-18 15:14:58 +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 LDAP: Improve errors and documentation (#52111) 2022-07-12 11:11:09 -04:00
libraryelements Rename Acl to ACL (#52342) 2022-07-18 15:14:58 +02:00
librarypanels Rename Acl to ACL (#52342) 2022-07-18 15:14:58 +02:00
licensing RBAC: Make RBAC action names more consistent (#49730) 2022-06-02 13:14:48 +01:00
live sync routing tree with latest changes in Gin (#51541) 2022-06-29 19:05:57 +03:00
login Add delete user from other services/stores (#51912) 2022-07-15 18:06:44 +02:00
multildap Split Create User (#50502) 2022-06-28 14:32:25 +02:00
ngalert Alerting: Split Scheduler and AlertRouter tests (#52416) 2022-07-19 09:32:54 -04:00
notifications Alerting: Fix Teams notifier not failing on 200 response with error (#52254) 2022-07-14 13:15:18 -04:00
oauthtoken backend/datasources: move datasources models into the datasources service package (#51267) 2022-06-27 12:23:15 -04:00
org Chore: Split delete user method (#52216) 2022-07-19 16:01:05 +02:00
playlist Chore: Introduce playlist service (#52252) 2022-07-18 05:26:35 -04:00
plugindashboards Chore: Make test tracer noop and return no errors (#50797) 2022-06-15 12:40:41 +02:00
pluginsettings Plugins: Add plugin settings DTO (#46283) 2022-03-18 20:49:13 +01:00
preference Add delete user from other services/stores (#51912) 2022-07-15 18:06:44 +02:00
provisioning Alerting: Update DbStore to use disabled orgs from the config (#52156) 2022-07-15 14:13:30 -04:00
publicdashboards public dashboards: move into into its own service (#51358) 2022-07-06 17:51:44 -06:00
query Datasource: Propagate datasource secret decryption errors to the frontend (#52068) 2022-07-13 09:27:03 -04:00
queryhistory Split Create User (#50502) 2022-06-28 14:32:25 +02:00
quota Storage: limit the number of uploaded files (#50796) 2022-07-18 15:24:39 +04:00
rendering Sanitization: fix log message (#52401) 2022-07-18 06:46:57 -07:00
screenshot Alerting: Better metrics and renamed BrowserScreenshotService (#51564) 2022-06-30 17:47:23 +01:00
search Search (SQL): support dashboardUID query parameter (#50121) 2022-06-02 12:56:01 -07:00
searchusers Access control: Using RBAC to filter users in list view that you have read access to (#47963) 2022-05-13 09:26:34 +02:00
searchV2 Search: pass the 'explain' flag from the UI and debug paging issues (#51847) 2022-07-08 15:28:21 -04:00
secrets Encryption: Expose secrets migrations through HTTP API (#51707) 2022-07-18 08:57:58 +02:00
serviceaccounts API: Add service account routes to the swagger (#52398) 2022-07-19 12:52:51 +03:00
shorturls ShortURL: Use new Error type (#50859) 2022-06-15 15:11:36 +02:00
sqlstore add logs to debug failing migration (#52447) 2022-07-19 09:34:49 -04:00
star Add delete user from other services/stores (#51912) 2022-07-15 18:06:44 +02:00
store Storage: Remove storageLocalUpload flag (#52413) 2022-07-18 10:44:42 -07:00
teamguardian Chore: Split delete user method (#52216) 2022-07-19 16:01:05 +02:00
thumbs chore/backend: move dashboard errors to dashboard service (#51593) 2022-06-30 09:31:54 -04:00
updatechecker Logging: Unify logging fakes (#48822) 2022-05-06 17:44:22 +02:00
user Chore: Split delete user method (#52216) 2022-07-19 16:01:05 +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