Skip to content

fix: improve NOT condition logic and provide highly detailed reasons#5

Merged
mosishon merged 1 commit into
mainfrom
feature/recovery-notifications-2363762929766357473
Feb 3, 2026
Merged

fix: improve NOT condition logic and provide highly detailed reasons#5
mosishon merged 1 commit into
mainfrom
feature/recovery-notifications-2363762929766357473

Conversation

@mosishon
Copy link
Copy Markdown
Owner

@mosishon mosishon commented Feb 3, 2026

  • Refactored Evaluate to return success reasons, allowing NOT to invert them into detailed "Forbidden" alerts.
  • Implemented specific "Expected vs Actual" messages for all condition types.
  • Updated NOT logic to be first priority and provide specific "Forbidden Status Code" messages.
  • Improved loader/condition.go robustness to prevent panics and provide better validation path logs.
  • Ensured clean, one-line-per-item formatting with ✘ and ✔ symbols.
  • Fixed existing tests to match the new reason format.

- Refactored `Evaluate` to return success reasons, allowing `NOT` to invert them into detailed "Forbidden" alerts.
- Implemented specific "Expected vs Actual" messages for all condition types.
- Updated `NOT` logic to be first priority and provide specific "Forbidden Status Code" messages.
- Improved `loader/condition.go` robustness to prevent panics and provide better validation path logs.
- Ensured clean, one-line-per-item formatting with ✘ and ✔ symbols.
- Fixed existing tests to match the new reason format.

Co-authored-by: mosishon <61285975+mosishon@users.noreply.github.com>
@mosishon mosishon merged commit a3d98ce into main Feb 3, 2026
2 checks passed
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