3404 Commits

Author SHA1 Message Date
raviks789
76509bb7c8 IcingaServiceSetServiceTable: Change table alias for director branches 2023-09-22 13:44:09 +02:00
raviks789
ca855c6ee7 TemplateUsageTable: Fix indrect object count
fixes #2806
2023-09-22 13:16:33 +02:00
Thomas Gelf
7c2a3f254b ObjectSetTable: fix on pgsql 2023-09-21 16:02:07 +02:00
Thomas Gelf
4d050834db IcingaConfig: render host templates to all...
...non-global zones, instead of the default global zone

refs #2410
2023-09-21 15:22:31 +02:00
raviks789
63a3e6a1ec Fix editing of multi-selected services with same name
Since the object names function as keys for the multi-selected objects array, this becomes a problem when
multiple services as the same name. Hence for the services the array keys must be a combination of service name
and the host name to which the service is related.
2023-09-21 14:59:42 +02:00
raviks789
dcd36877ea Make TemplateUsageTables and other tables compatible with director branches
`TemplateUsageTable`, `ApplyRulesTable`, `ObjectsTableSetmembers` and `TemplatesTable` are
made compatible with `director branches`.
2023-09-21 14:57:30 +02:00
raviks789
3c7082cabc Modify IcingaObjectFilterHelper::filterByTemplate for director branches
Icinga objects must be filterable based on templates when a director branch is active.
2023-09-21 14:57:30 +02:00
raviks789
e6f7d82c09 Add a imports column to the objects
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.
2023-09-21 14:57:30 +02:00
Ravi Kumar Kempapura Srinivasa
939f805378 Add setmembers summyary line to TemplateUsageTable
`'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.
2023-09-21 14:57:30 +02:00
Thomas Gelf
3199eb627b FormFieldSuggestion: fix wording 2023-09-21 13:01:10 +02:00
raviks789
228cbc8376 Dashboard: Suppress covariance error of count() method 2023-09-21 09:00:55 +02:00
raviks789
9cc04eb5c6 StartupLogRenderer: Use correct syntax to write to array $lines 2023-09-21 09:00:55 +02:00
raviks789
fcaa97e1b2 Remove dead class SingleObjectApiHandler 2023-09-21 09:00:55 +02:00
raviks789
dec1951774 CustomVariableCache: Remove redundant destructor
Property `$db` is not declared for it to be unset
2023-09-21 09:00:55 +02:00
raviks789
98f6768dcb Declare properties that are dynamically used
Dynamic properties are deprecated since PHP 8.2.
2023-09-21 09:00:55 +02:00
raviks789
00523d9b35 IcingaTemplateResolver: Remove unused dynamic property $table 2023-09-21 09:00:55 +02:00
Johannes Meyer
629297116b BaseTestCase: Use phpunit's new TestCase 2023-08-30 17:28:06 +02:00
Johannes Meyer
37c8056689 Fix phpcs errors 2023-08-30 17:28:06 +02:00
Johannes Meyer
aaf59945d9 Add php action workflow 2023-08-30 17:28:06 +02:00
Thomas Gelf
fc7bfe7db9 Datalist: fix snapshot diff
fixes #2791
2023-08-25 17:15:08 +02:00
Thomas Gelf
b19c01daef Sync: ignore null for policy = ignore
fixes #2657
2023-08-23 15:48:13 +02:00
Thomas Gelf
e94ad714fb Sync: drop obsolete/useless method 2023-08-22 10:32:44 +02:00
Thomas Gelf
8896e54d69 IcingaArguments: be unmodified when loaded from db
fixes #2660
2023-08-21 12:44:59 +02:00
Thomas Gelf
907d93ebe9 FormFieldSuggestion: propose macros from set_if
fixes #514
2023-08-20 13:11:19 +02:00
Thomas Gelf
7aa7f51929 IcingaObjectFieldForm: move back getFilterFields() 2023-08-20 13:11:12 +02:00
Thomas Gelf
d97bbc0526 FormFieldSuggestion: refactor, dedicated class 2023-08-20 13:11:02 +02:00
Thomas Gelf
479d964841 BasketSnapshotFieldResolver: provide fixOptional...
...DatalistReference()
2023-07-30 20:54:39 +02:00
Thomas Gelf
02d6ebb0af DirectorDatafield: prefer list uuid...
...on basket restore
2023-07-30 20:52:56 +02:00
Thomas Gelf
14604b64d6 GroupMembershipResolver: namespace is useless 2023-07-30 20:45:14 +02:00
Thomas Gelf
5371b57630 BasketSnapshotFieldResolver: return types 2023-07-30 20:42:59 +02:00
Thomas Gelf
388f743290 TemplateUsageTable: show header
fixes #2780
2023-07-30 20:39:21 +02:00
Thomas Gelf
8e4ebb79d7 AssignRenderer: show JSON parsing error source
refs #2667
2023-07-30 20:26:32 +02:00
Thomas Gelf
26a4a10536 DbObject: compare id/ints only when not null 2023-07-30 20:05:24 +02:00
Thomas Gelf
2a140a512b DataFilter: hide json-encoded special characters
...from our filter parser

fixes #2667
2023-07-30 19:46:38 +02:00
Thomas Gelf
d429c9e5cc IcingaObjectGroup: re-enable group membership...
...resolver

refs #2048
2023-07-30 17:31:23 +02:00
Thomas Gelf
7a29d7db87 DatafieldTable: search case insensitive
fixes #2359
2023-07-20 16:24:56 +02:00
raviks789
fb39b25602 Change the install script for Icinga for Windows
Remove the powershell module in Agents tab and change the install script for Icinga for windows.
2023-07-20 12:46:01 +02:00
EmTeedee
6b7bff80de ${var} deprecated in favor of {$var}
See: https://www.php.net/manual/en/migration82.deprecated.php#migration82.deprecated.core.dollar-brace-interpolation
2023-07-19 10:44:40 +02:00
Thomas Gelf
de1311928c IcingaConfig: render IfW fallback template
fixes #2776
2023-07-19 07:00:46 +02:00
Thomas Gelf
91b99d8e46 ObjectsTable: apply filters for non-branched views
fixes #2775
2023-07-18 11:11:41 +02:00
raviks789
b47478293f fetch $this->affectedHost->get('id') only if $this->affectedHost->get('id') is not null for service set 2023-06-29 17:12:14 +02:00
raviks789
df08e91bc9 Strikethrough deactivated services in applied service set 2023-06-29 15:26:54 +02:00
Thomas Gelf
abbf580696 ImportSourceCoreApi: fix listColumns
Prior to this fix, only object_name has been listed (while all properties
have been imported)

fixes #2763
2023-06-06 14:32:01 +02:00
Thomas Gelf
722499ea76 ImportRowModifier: filters, CIDR support
fixes #2756
fixes #2757
2023-05-25 15:44:56 +02:00
Thomas Gelf
868e0afe80 BasketDiff: return type is stdClass 2023-05-16 11:19:12 +02:00
Thomas Gelf
fb10bac7e9 Sync: fix loading existing templates
fixes #2217
fixes #2745
2023-05-11 15:07:28 +02:00
Thomas Gelf
623dd1cbc7 PropertyModifierSplit: check for null values
fixes #2739
2023-04-26 14:21:51 +02:00
Thomas Gelf
978d9bc51f PropertyModifierMap: fix duplicate line 2023-04-24 15:18:02 +02:00
Thomas Gelf
e98803a8e5 ObjectSetTable: search for services in branches
fixes #2738
2023-04-24 11:10:36 +02:00
wp-perc
9d6a41571a PropertyModifierMap: allow custom fallback value
fixes #2735
2023-04-21 18:05:20 +02:00