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

Code enhancements for future use v2 #199

Merged
merged 2 commits into from
Jun 5, 2024
Merged

Conversation

yhabteab
Copy link
Member

This PR is a follow-up to/basically the same as #198 and proposes the following changes.

  • 7c42f14 Implements the zapcore.ObjectMarshaler interface also for the rule.Rule type and have adjusted many of its usages already.
  • 349c994 Introduces a new method Eval() for the rule.Rule and rule.Escalation types, which will be responsible for evaluating their respective filters/conditions, and the caller will not have to check beforehand whether a particular rule/escalation has a condition/filter that needs to be evaluated.

@yhabteab yhabteab added the enhancement New feature or request label May 23, 2024
@yhabteab yhabteab requested a review from julianbrost May 23, 2024 12:07
@cla-bot cla-bot bot added the cla/signed CLA is signed by all contributors of a PR label May 23, 2024
@julianbrost julianbrost requested a review from oxzi May 27, 2024 08:27
oxzi
oxzi previously approved these changes May 28, 2024
internal/rule/rule.go Outdated Show resolved Hide resolved
internal/incident/incident.go Outdated Show resolved Hide resolved
@julianbrost julianbrost dismissed their stale review June 5, 2024 12:33

The requested changes were addressed.

@julianbrost julianbrost merged commit 62e47fb into main Jun 5, 2024
12 checks passed
@julianbrost julianbrost deleted the future-use-preparation-v2 branch June 5, 2024 12:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla/signed CLA is signed by all contributors of a PR enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants