Remove the bus from teamgroupsync (#29810)
* Add fake TeamSyncService * Change SyncTeams dispatch to direct method call * Remove SyncTeamsCommand struct * Move TeamSyncService to a separate package * Remove context from SyncTeams args * Add comments to teamsyncgroup package Co-authored-by: Emil Tullstedt <emil.tullstedt@grafana.com> * Replace TeamSyncService with TeamSyncFunc * Remove unnecessary error check * Add a test * Fix test input Co-authored-by: Emil Tullstedt <emil.tullstedt@grafana.com>
This commit is contained in:
co-authored by
Emil Tullstedt
parent
12211e4a8e
commit
551f96089b
@@ -122,8 +122,3 @@ type GetTeamsForLDAPGroupCommand struct {
|
||||
Groups []string
|
||||
Result []TeamOrgGroupDTO
|
||||
}
|
||||
|
||||
type SyncTeamsCommand struct {
|
||||
ExternalUser *ExternalUserInfo
|
||||
User *User
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user