-
Notifications
You must be signed in to change notification settings - Fork 0
Event rule config enhancement #159
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
Conversation
c40476a
to
8e16e7e
Compare
1c9054f
to
7ab548f
Compare
25b4a12
to
163112c
Compare
97018d5
to
4b1380c
Compare
119c821
to
044a8a2
Compare
Should be done now. Did change nearly everything again, because the most of what was previously there was not usable and the plethora of other open pull requests referring to this one were either obsolete due to it anyway or now integrated here. Requires Icinga/ipl-html#151 @raviks789 Please have a look and test it. The tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is only a quick review. I will test the UI tomorrow.
Some new classes are missing PHPDoc and method return types.
application/forms/EventRuleConfigElements/NotificationConfigProvider.php
Outdated
Show resolved
Hide resolved
It now requires Icinga/ipl-html#153 |
application/forms/EventRuleConfigElements/EscalationConditions.php
Outdated
Show resolved
Hide resolved
Class The class |
Fixed. Though, now the shown filter shows escaped chars again. I'm not sure whether it's necessary to avoid this here. The object filters will change anyway and when they do, I doubt that such a simple text input will remain. So let's keep that for now. |
Now the database entry has the operator as a suffix, is that OK? |
In case the daemon accepts it, sure :P |
@oxzi, that should be fine as discussed offline, right? |
Well, based on the architectural change described in the "Custom variable support in Notifications" document, the event rules will not be evaluated in the Icinga Notifications daemon anymore, but will be moved to the source. Implementation started in Icinga/icinga-notifications#324 and Icinga/icingadb#998. Thus, I am a bit puzzled how this PR works with the upcoming changes, especially the intermediate representation mentioned in the docs.
I was unable to review +2,762 −2,829 changes in 34 files, but at least having a suffix is something which works for us 🙃 |
8a3f063
to
9d5c1c6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😅
Use a single form for event rule configuration.
Blocked by Icinga/icingaweb2#5190