Skip to content

Code enhancements for future use v2#199

Merged
julianbrost merged 2 commits intomainfrom
future-use-preparation-v2
Jun 5, 2024
Merged

Code enhancements for future use v2#199
julianbrost merged 2 commits intomainfrom
future-use-preparation-v2

Conversation

@yhabteab
Copy link
Copy Markdown
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
Comment thread internal/rule/rule.go Outdated
Comment thread internal/incident/incident.go Outdated
@yhabteab yhabteab force-pushed the future-use-preparation-v2 branch from 349c994 to 1b4f501 Compare May 28, 2024 11:48
@yhabteab yhabteab requested a review from julianbrost May 28, 2024 11:48
@yhabteab yhabteab force-pushed the future-use-preparation-v2 branch from 1b4f501 to c27c33d Compare June 4, 2024 07:20
@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
@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