Fix linting: remove commented code (#28208)

shortlinks
Sofia Papagiannaki 5 years ago committed by GitHub
parent 4acbcd7053
commit 4ab90f9397
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      pkg/services/ngalert/eval.go

@ -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…
Cancel
Save