mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Docs: Deprecating packages_api and removing it from our pipelines (#54473)
This commit is contained in:
@@ -401,7 +401,8 @@ func (c Condition) IsValid() bool {
|
||||
// There are several exceptions:
|
||||
// 1. Following fields are not patched and therefore will be ignored: AlertRule.ID, AlertRule.OrgID, AlertRule.Updated, AlertRule.Version, AlertRule.UID, AlertRule.DashboardUID, AlertRule.PanelID, AlertRule.Annotations and AlertRule.Labels
|
||||
// 2. There are fields that are patched together:
|
||||
// - AlertRule.Condition and AlertRule.Data
|
||||
// - AlertRule.Condition and AlertRule.Data
|
||||
//
|
||||
// If either of the pair is specified, neither is patched.
|
||||
func PatchPartialAlertRule(existingRule *AlertRule, ruleToPatch *AlertRule) {
|
||||
if ruleToPatch.Title == "" {
|
||||
|
||||
Reference in New Issue
Block a user