-
Notifications
You must be signed in to change notification settings - Fork 204
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
Add setmembers
summyary line to TemplateUsageTable
#2378
Conversation
service_set_id is null
condition to objects in ServiceTemplateU…service_set_id is null
condition to objects in ServiceTemplateUsageTable.php
d4c2985
to
84682a8
Compare
service_set_id is null
condition to objects in ServiceTemplateUsageTable.phpservice_set_id is null
condition to objects in ObjectTableService.php
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.
Hi @raviks789,
showing Services belonging to Service Sets in the "Single Services" list is not a fix for the problem you encountered. The problem is, that the "Usage summary" table doesn't provide a row for Service Templates used by Services in a Set.
ServiceTemplateUsageTable already shows a related (commented) section. However, this has been never been implemented. The following pieces are missing:
- a route/table showing you such services in a filtered way, together with der Service Set
- an extension to
TemplateUsageTable
, allowing inheriting classes to tweak the underlying query
Best,
Thomas
NB: forget what I wrote about 'objects' => $this->getSummaryLine('object', 'o.service_set_id IS NULL'), To add Service Set members, use: 'setmembers' => $this->getSummaryLine('object', 'o.service_set_id IS NOT NULL'), Then it should look as follows: To then complete the task, a quick attempt could be adding the possibility to filter the Service Set list by "used service template". |
service_set_id is null
condition to objects in ObjectTableService.phpsetmembers
summyary line to TemplateUsageTable
071ec41
to
1e86760
Compare
Cannot be merged yet:
|
15ba1f8
to
8f53620
Compare
4f354fe
to
6f27ffe
Compare
ee9a35f
to
b65b9d3
Compare
`'setmembers' => $this->getSummaryLine('object', 'o.service_set_id IS NOT NULL AND o.host_id IS NOT NULL'),` is added to TemplateUsageTable and `objects` is set to ` $this->getSummaryLine('object', 'o.service_set_id IS NULL')`. Subsequently, ObjectTableSetMembers is added which is used in `setmembersAction` in `TemplateController`. `ObjectTableSetMembers` uses service set name or service name as search columns.
The host or service objects require retrieve the imports column. This makes it possible to filter them based on templates when a director branch is active.
…ches Icinga objects must be filterable based on templates when a director branch is active.
… branches` `TemplateUsageTable`, `ApplyRulesTable`, `ObjectsTableSetmembers` and `TemplatesTable` are made compatible with `director branches`.
c15bd84
to
6b419b3
Compare
Merged, thank you! Disclaimer: I didn't test it at all ;-) |
Services under service set is shown under
setmembers
ofTemplateUsageTable
. And objects shows only services which do not belong to service set. This must solve the inconsistent number of objects problem.ref/IP/33703