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

fix: fix some issues with global evaluation and namespaces #149

Merged
merged 1 commit into from
May 5, 2024

Conversation

vthib
Copy link
Owner

@vthib vthib commented May 5, 2024

Fix two bugs related to no-scan eval and global rules:

  • if all namespaces end up disabled (global rules do not match), clean the results before returning.
  • if a rule is in a disabled namespace, its result must still be saved in the "previous_results" vec so that rules dependency can be properly evaluated for future rules, that may not be disabled themselves.

Fix two bugs related to no-scan eval and global rules:

- if all namespaces end up disabled (global rules do not match), clean
  the results before returning.
- if a rule is in a disabled namespace, its result must still be saved
  in the "previous_results" vec so that rules dependency can be properly
  evaluated for future rules, that may not be disabled themselves.
@vthib vthib merged commit 400ecfd into master May 5, 2024
17 checks passed
@vthib vthib deleted the fix-global-rules-bug branch May 5, 2024 13:10
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.

1 participant