idafurjes
6c43eb0b4d
Split Create User ( #50502 )
...
* Split Create User
* Use new create user and User from package user
* Add service to wire
* Making create user work
* Replace user from user pkg
* One more
* Move Insert to orguser Service/Store
* Remove unnecessary conversion
* Cleaunp
* Fix Get User and add fakes
* Fixing get org id for user logic, adding fakes and other adjustments
* Add some tests for ourguser service and store
* Fix insert org logic
* Add comment about deprecation
* Fix after merge with main
* Move orguser service/store to org service/store
* Remove orguser from wire
* Unimplement new Create user and use User from pkg user
* Fix wire generation
* Fix lint
* Fix lint - use only User and CrateUserCommand from user pkg
* Remove User and CreateUserCommand from models
* Fix lint 2
2022-06-28 14:32:25 +02:00
Ieva and Sofia Papagiannaki
7c800421d3
RBAC: change migration logic ( #50187 )
...
* change migration logic
* linting
* linting
* fix an issue with the migration logic
* make tests runnable against other DBs
Co-authored-by: Sofia Papagiannaki <1632407+papagian@users.noreply.github.com >
Co-authored-by: Sofia Papagiannaki <1632407+papagian@users.noreply.github.com >
2022-06-06 13:51:07 +02:00
3250bf6b2b
AccessControl: Add migration for seeding managed inherited permissions ( #49337 )
...
* AccessControl: Add migration for seeding managed inherited permissions
Co-authored-by: Karl Persson <kalle.persson@grafana.com >
* AccessControl: move to single file
* AccessControl: Add tests for managed permission migration
Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com >
* AccessControl: Ensure no duplicate insertion
Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com >
* Remove commented code
Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com >
* Add code migration constant
Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com >
* Ensure DB is clean between tests
Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com >
* Update pkg/services/sqlstore/migrations/accesscontrol/managed_permission_migrator.go
Co-authored-by: Karl Persson <kalle.persson@grafana.com >
Co-authored-by: Gabriel MABILLE <gamab@users.noreply.github.com >
2022-05-23 16:50:10 +02:00
Vardan Torosyan
a0553de8dd
Rename FGAC to RBAC in the codebase ( #48051 )
2022-04-21 14:31:02 +02:00
Gabriel MABILLE
53e7f8405f
AccessControl: Permission Migrator, clean unused arguments ( #46937 )
2022-03-25 14:04:10 +01:00
d718ee1918
SQLStore: Prevent concurrent migrations ( #44101 )
...
* SQLStore: Prevent concurrent migrations
* Hide behind a feature toggle
* Configurable locking attempt timeout
* Update docs/sources/administration/configuration.md
Co-authored-by: Igor Suleymanov <radiohead@users.noreply.github.com >
Co-authored-by: achatterjee-grafana <70489351+achatterjee-grafana@users.noreply.github.com >
2022-02-15 18:54:27 +02:00
bc24fdcf8d
AccessControl: Team membership migration ( #44065 )
...
Co-authored-by: ievaVasiljeva <ieva.vasiljeva@grafana.com >
Co-authored-by: Jguer <joao.guerreiro@grafana.com >
2022-02-01 14:57:26 +01:00