Skip to content
This repository was archived by the owner on Feb 13, 2025. It is now read-only.

Empty set depends #2027

Merged
merged 2 commits into from
Mar 16, 2017
Merged

Empty set depends #2027

merged 2 commits into from
Mar 16, 2017

Conversation

kylebrandt
Copy link
Member

No description provided.

@@ -630,7 +630,7 @@ func (c *Conf) loadAlert(s *parse.SectionNode) {
if err != nil {
c.error(err)
}
if len(depTags.Intersection(tags)) < 1 {
if len(depTags.Intersection(tags)) < 1 && len(depTags) != 0 {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd switch the order here.

@@ -614,7 +614,7 @@ func markDependenciesUnevaluated(events map[models.AlertKey]*models.Event, deps
continue
}
for _, dep := range deps {
if dep.Group.Overlaps(ak.Group()) {
if dep.Group.Overlaps(ak.Group()) || len(dep.Group) == 0 {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Switch conditions again.

@kylebrandt kylebrandt merged commit 709f2d2 into master Mar 16, 2017
@kylebrandt kylebrandt deleted the emptySetDepend branch March 28, 2017 13:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants