Chore: Replace Command dispatches by explicit calls (#32131)

* Clean up GetProvisionedDashboardDataByIdQuery

* Clean up SaveProvisionedDashboardCommand

* Clean up & fix AddTeamMemberCommand usages

* Clean up & fix UpdateUserPermissionsCommand usages

* Lint imports
This commit is contained in:
Joan López de la Franca Beltran
2021-03-19 09:14:14 +01:00
committed by GitHub
parent f8d5388758
commit 5c07df9f4b
9 changed files with 38 additions and 85 deletions

View File

@@ -355,13 +355,6 @@ type DashboardProvisioning struct {
Updated int64
}
type SaveProvisionedDashboardCommand struct {
DashboardCmd *SaveDashboardCommand
DashboardProvisioning *DashboardProvisioning
Result *Dashboard
}
type DeleteDashboardCommand struct {
Id int64
OrgId int64
@@ -418,11 +411,6 @@ type GetDashboardSlugByIdQuery struct {
Result string
}
type GetProvisionedDashboardDataByIdQuery struct {
DashboardId int64
Result *DashboardProvisioning
}
type GetDashboardsBySlugQuery struct {
OrgId int64
Slug string

View File

@@ -87,11 +87,6 @@ type ChangeUserPasswordCommand struct {
UserId int64 `json:"-"`
}
type UpdateUserPermissionsCommand struct {
IsGrafanaAdmin bool
UserId int64 `json:"-"`
}
type DisableUserCommand struct {
UserId int64
IsDisabled bool