mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Fix linting: remove commented code (#28208)
This commit is contained in:
parent
4acbcd7053
commit
4ab90f9397
@ -93,16 +93,6 @@ func (c Conditions) IsValid() bool {
|
||||
|
||||
// LoadAlertConditions returns a Conditions object for the given alertDefintionId.
|
||||
func (ng *AlertNG) LoadAlertConditions(dashboardID int64, panelID int64, conditionRefID string, signedInUser *models.SignedInUser, skipCache bool) (*Conditions, error) {
|
||||
//func (ng *AlertNG) LoadAlertConditions(alertDefinitionID int64, signedInUser *models.SignedInUser, skipCache bool) (*Conditions, error) {
|
||||
/*
|
||||
getAlertByIDQuery := models.GetAlertByIdQuery{Id: alertDefinitionID}
|
||||
if err := bus.Dispatch(&getAlertByIDQuery); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
dashboardID := getAlertByIDQuery.Result.DashboardId
|
||||
panelID := getAlertByIDQuery.Result.PanelId
|
||||
*/
|
||||
|
||||
// get queries from the dashboard (because GEL expressions cannot be stored in alerts so far)
|
||||
getDashboardQuery := models.GetDashboardQuery{Id: dashboardID}
|
||||
if err := bus.Dispatch(&getDashboardQuery); err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user