-
Notifications
You must be signed in to change notification settings - Fork 203
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
Enrich custom variable lists in monitoring and icingadb details #2445
Enrich custom variable lists in monitoring and icingadb details #2445
Conversation
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.
I really like the motivation behind this feature request and the possibilities this hook provides.
Problems spotted in this pull request: field resolution cannot be solved by joining field names with variable names. It's perfectly legal to configure the very same field multiple times, with different labels, different settings/rules and in different categories. Fields might also be provided via Hook.
This means that walking the template tree in the right order, dealing with fields with filters and fields overriding fields at template level are part of this task.
To avoid duplicate logic, you could leverage IcingaObjectFieldLoader, as it is doing exactly this. I'd suggest to run & populate it, then get the form elements and pick their labels and values. If you need to restructure that class please let me know, I'm sure I can help you saving some time with that task.
3b39f2a
to
9c9aad0
Compare
I've made use of |
9c9aad0
to
6f66fc9
Compare
Please don't merge yet, or give me a hint when you plan to do so. I'm currently playing with an idea to extend this to data exports. (So that your hidden option for strings also works in json and csv exports) |
6f66fc9
to
17a3516
Compare
Nope. Changed my mind. Nothing to do here. You can merge, if you are fine with the changes. |
17a3516
to
9ec08cf
Compare
Hi @nilmerg, I discussed this thoroughly with @lippserd, there are some problems with this Hook. The variable rendering part is fine, the way variables are iterated is the problem. We already agreed on a slightly different implementation, with only some smaller details left for clarification. We also had a customer interested in pushing the finalization of this, it was part of a deal with a vSphereDB-related feature. Unfortunately, this hasn't been accepted from our side for unknown reasons, so I have to skip this right now. We'll find a solution, don't worry - but not today. In the meantime, thank you for your effort! Cheers, |
8044a55
to
5cd39bb
Compare
c4ef920
to
a814739
Compare
a814739
to
30805fc
Compare
Makes `getCategoryName()` work.
…d to integer for postgres database
…_id to integer for postgres database
The service could be directly created, or applied through an apply rule or could be an inherited service or a service applied through service set.
It can be a directly created service or an applied service or an inherited service or service applied through service set.
30805fc
to
dbacfa2
Compare
resolves #2239
requires Icinga/icingaweb2#4614 or Icinga/icingadb-web#467