Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants