grafana/pkg/cmd/grafana-cli/commands
idafurjes fab6c38c95
Chore: Split get user by ID (#52442)
* 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>

* Split get user by ID

* Use new method in api

* Add tests

* Aplly emthod in auth info service

* Fix lint and some tests

* Fix get user by ID

* Fix lint
Remove unused fakes

* Use split get user id in admin users

* Use GetbyID in cli commands

* Clean up after merge

* Remove commented out code

* Clena up imports

* add back )

* Fix wire generation for runner after merge with main

Co-authored-by: Sofia Papagiannaki <1632407+papagian@users.noreply.github.com>
2022-08-02 16:58:05 +02:00
..
commandstest Backend: Rename variables for style conformance (#29097) 2020-11-17 17:09:14 +01:00
datamigrations backend/datasources: move datasources models into the datasources service package (#51267) 2022-06-27 12:23:15 -04:00
secretsmigrations Encryption: Expose secrets migrations through HTTP API (#51707) 2022-07-18 08:57:58 +02:00
cli.go move main.go logic out of commands (#38555) 2021-08-26 15:42:22 +02:00
commands.go Chore: Split get user by ID (#52442) 2022-08-02 16:58:05 +02:00
install_command.go CLI: Allow relative symlinks in zip archives when installing plugins (#50537) 2022-06-15 14:38:59 +02:00
listremote_command.go Plugins: Move plugin installing + uninstalling logic from CLI to plugins package (#33274) 2021-04-26 16:13:40 +02:00
listversions_command.go grafana-cli: Upgrade to urfave/cli v2 (#22402) 2020-02-26 12:27:31 +01:00
ls_command_test.go Tests: Batch of GoConvey to Testify conversions (#27008) 2020-08-14 14:43:25 +02:00
ls_command.go Backend: Rename variables for style conformance (#29097) 2020-11-17 17:09:14 +01:00
remove_command.go grafana-cli: Upgrade to urfave/cli v2 (#22402) 2020-02-26 12:27:31 +01:00
reset_password_command.go Chore: Split get user by ID (#52442) 2022-08-02 16:58:05 +02:00
upgrade_all_command_test.go Chore: Disable scopelint for tests (#25923) 2020-06-30 11:05:47 +02:00
upgrade_all_command.go CLI: Allow relative symlinks in zip archives when installing plugins (#50537) 2022-06-15 14:38:59 +02:00
upgrade_command.go CLI: Allow relative symlinks in zip archives when installing plugins (#50537) 2022-06-15 14:38:59 +02:00