1118 Commits

Author SHA1 Message Date
raviks789
1f7015db00
ObjectSetTable: Fix incorrect member in count service sets 2024-12-11 10:01:32 +01:00
raviks789
6c766dff43 Allow cloning service sets in Director Branches 2024-11-19 13:34:14 +01:00
raviks789
7fd1468229 Fix CSRF validation for sorting in property tables 2024-11-07 12:57:40 +01:00
Eric Lippmann
ce64888b81 Fix const visibility 2024-10-22 15:36:03 +02:00
Eric Lippmann
00985429c5 Fix PSR-12 violations 2024-10-22 14:31:14 +02:00
raviks789
428a49f433 Remove gipfl/format package dependency
refs: #2847
2024-02-08 15:59:13 +01:00
raviks789
e48ddd2f35 Restore services of service set on restoring service set
All the services which were under the service set when it was deleted must be restored when it is restored from activity log.
2024-02-07 13:40:33 +01:00
Sukhwinder Dhillon
d879186f0e Fix wrong method param types and add var type hints 2024-02-05 16:05:24 +01:00
Sukhwinder Dhillon
cc3bfd5437 BranchHelper: Define method return types 2024-02-05 16:05:24 +01:00
Sukhwinder Dhillon
bb8076a09d var_export() expects #param 2 to be bool 2024-02-05 16:05:23 +01:00
Sukhwinder Dhillon
9f58dcf8d9 phpstan: Strict check function/class name-case and fix violations 2024-02-05 16:05:23 +01:00
Sukhwinder Dhillon
be6447874c Remove not in use class ReadOnlyFormAvpTable 2024-01-19 15:17:41 +01:00
Sukhwinder Dhillon
c25a66b484 Avoid inline css style 2024-01-19 15:17:41 +01:00
Sukhwinder Dhillon
4ef7f5664a ActionController::backend(): Add condition to check which backend should be used
- If both are available
2024-01-16 09:51:47 +01:00
Sukhwinder Dhillon
956cce84cb Cleanup code
- Remove superfluous methods/usages
- Simplify the code
2024-01-16 09:51:44 +01:00
Sukhwinder Dhillon
604667ca65 Relocate Backend classes 2024-01-15 16:25:02 +01:00
Sukhwinder Dhillon
9baa3c4341 Remove redudant class MonitorBackendMonitoring and adjuct code accordigly
- Use class `Monitoring` instead
- Remove not in use methods from `MonitorBackend` interface and from classes that implements this interface
- Add param types and return type hint to methods
2024-01-15 16:24:27 +01:00
Sukhwinder Dhillon
89134e0366 Remove obsolate class Backend and its usages
- Create the backend directly in ActionController::backend()
- Simplify the code
2024-01-15 16:24:25 +01:00
Tobias Tiederle
1c6090193d add support for icingadb as only icingaweb2 data backend 2023-12-04 10:12:54 +01:00
Thomas Gelf
fb1a23fb01 ObjectsTableSetMembers: fix uuid in link 2023-10-12 19:56:25 +02:00
Thomas Gelf
7267953e13 TemplateUsageTable: pass auth to constructor 2023-10-12 08:45:12 +02:00
Thomas Gelf
a2abbd326b TemplateController: pass auth 2023-10-12 08:43:58 +02:00
Thomas Gelf
48db90c7df ObjectsTable: require Auth
fixes #2808
2023-10-11 12:24:36 +02:00
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
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
raviks789
fcaa97e1b2 Remove dead class SingleObjectApiHandler 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
Thomas Gelf
388f743290 TemplateUsageTable: show header
fixes #2780
2023-07-30 20:39:21 +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
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
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
e98803a8e5 ObjectSetTable: search for services in branches
fixes #2738
2023-04-24 11:10:36 +02:00
Thomas Gelf
7d5d5b38ba Web/Form: fix dark mode for clone forms
fixes #2670
2023-03-07 14:30:56 +01:00
Thomas Gelf
bec49d1230 library: cleanup, drop import/export methods 2023-03-07 14:29:34 +01:00
Thomas Gelf
40254714b8 Permissions: refactor, fix monitoring module checks
fixes #2712
2023-02-23 11:51:53 +01:00
Thomas Gelf
ce10b7e699 IcingaServiceSetServiceTable: link with uuid...
...to services in sets

refs #2710
2023-02-23 11:51:34 +01:00
Thomas Gelf
c643959d06 PreferredBranchSupport: for directorbranches
fixes #2688
fixes #2689
2022-12-16 14:16:02 +01:00
Thomas Gelf
616d329be3 IcingaNotification: implement users_var
fixes #462
2022-12-01 12:03:45 +01:00
Thomas Gelf
ab952f89b0 ObjectSetTable: improve formatting
fixes #2648
2022-11-03 00:58:38 +01:00
raviks789
26e76c611e Reset Limit count and offset for $table in HostController::servicesAction
The limit in ObjectsTable::prepareQuery() limits the number of services shown in HostController::servicesAction.
But this limit is required for pagination in ServicesController. Hence, reset the limit when this query is used
in HostController::servicesAction().
2022-10-04 15:33:29 +02:00