Skip to content

Conversation

sbcd90
Copy link
Collaborator

@sbcd90 sbcd90 commented Jun 10, 2025

Description

fix correlation engine trigger even if no rules are present

Related Issues

Resolves #[Issue number to be closed when this PR is merged]

Check List

  • New functionality includes testing.
  • New functionality has been documented.
  • API changes companion pull request created.
  • Commits are signed per the DCO using --signoff.
  • Public documentation issue/PR created.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

eirsep
eirsep previously approved these changes Jun 10, 2025
Copy link
Member

@eirsep eirsep left a comment

Choose a reason for hiding this comment

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

ci is failing
change lgtm
can you add a test coverage for your fix

engechas
engechas previously approved these changes Jun 12, 2025
@sbcd90 sbcd90 dismissed stale reviews from eirsep and engechas via 308ca6b June 20, 2025 03:46
Signed-off-by: Subhobrata Dey <[email protected]>

fix integ tests

Signed-off-by: Subhobrata Dey <[email protected]>

fix integ tests

Signed-off-by: Subhobrata Dey <[email protected]>
@eirsep
Copy link
Member

eirsep commented Jun 20, 2025

Why are we not checking in first line if not (rule index exists and autocorrelation disabled) just return 200?
I wrote a test on this PR to see if correlation index is created inspite of no rules and disabled autocorrealtions; and it gets created while i was expecting no disk writes would happen

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.

3 participants