5389 Commits

Author SHA1 Message Date
Johannes Meyer
fbb05266f3 Prepare version 1.11.1 v1.11.1 2024-02-07 14:17:06 +01:00
raviks789
aeed9c6759 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 14:17:06 +01:00
raviks789
e78b105f1e IcingaDependencyForm: Make parent host and parent service element values removeable 2024-02-07 14:17:06 +01:00
Ravi Kumar Kempapura Srinivasa
22b6a8d16f Support the rendering of service custom variable in Dependencies form 2024-02-07 14:17:06 +01:00
Sukhwinder Dhillon
5d6abb3bf9 phpstan: Scan all available modules 2024-02-07 14:17:06 +01:00
Sukhwinder Dhillon
f12c54ba01 Update phpstan-baseline 2024-02-07 14:17:06 +01:00
Sukhwinder Dhillon
2e254d8c75 Fix wrong method param types and add var type hints 2024-02-07 14:17:06 +01:00
Sukhwinder Dhillon
ae1262da1f Ini_set() #param 2 must be string (php < 8.1) 2024-02-07 14:17:06 +01:00
Sukhwinder Dhillon
6f005784ce RestApiClient: Remove curl's return type hint and wrong curl_error() param
Php >= 8 returns CurlHandle instead of resource, which confuses phpstan.
2024-02-07 14:17:06 +01:00
Sukhwinder Dhillon
b723c54022 BranchHelper: Define method return types 2024-02-07 14:17:06 +01:00
Sukhwinder Dhillon
f41444b493 IcingaObjectLegacyAssignments: Fix incorrect if condition 2024-02-07 14:17:06 +01:00
Sukhwinder Dhillon
2baabb4db2 var_export() expects #param 2 to be bool 2024-02-07 14:17:06 +01:00
Sukhwinder Dhillon
1ec6eedebf phpstan: Relax unmatched ignore errors for certain messages 2024-02-07 14:17:06 +01:00
Sukhwinder Dhillon
ef61835901 phpstan: Strict check function/class name-case and fix violations 2024-02-07 14:17:06 +01:00
Ravi Kumar Kempapura Srinivasa
519a958a38 Remove gipfl/format package dependency 2024-02-07 14:17:06 +01:00
Sukhwinder Dhillon
da9b2b0215 ImportsourceController: Remove unnecessary inline js for collapse 2024-02-07 14:17:06 +01:00
Sukhwinder Dhillon
3734a333ba Remove not in use class ReadOnlyFormAvpTable 2024-02-07 14:17:06 +01:00
Sukhwinder Dhillon
bbe2b892e0 Avoid inline css style 2024-02-07 14:17:06 +01:00
Sukhwinder Dhillon
3febeb42e5 Remove unnecessary and unused code 2024-02-07 14:17:06 +01:00
Sukhwinder Dhillon
94cc14c55c Remove unnecessary inline style 2024-02-07 14:17:06 +01:00
Thomas Gelf
09c9ec73af IcingaObjectGroup: no membership refresh w/o assign
fixes #2784
2024-02-07 14:17:06 +01:00
raviks789
9c6e788467 PHPStan: Exclude static analysis of tests 2024-02-07 14:17:06 +01:00
raviks789
e89123fb9f Set up mockery library for php unit test 2024-02-07 14:17:06 +01:00
raviks789
6e1f578eac Fix zone creation and deletion for tests 2024-02-07 14:17:06 +01:00
Johannes Meyer
e891447156 Change parent class of BaseTestCase to \Icinga\Test\BaseTestCase 2024-02-07 14:17:06 +01:00
raviks789
41245cb478 FormFieldSuggestionTest: Add tests for nullable command argument 2024-02-07 14:17:06 +01:00
raviks789
56f6349e36 Fix form field suggestions
Other available fields should be suggested when no check command has been
chosen for service template.
2024-02-07 14:17:06 +01:00
Sukhwinder Dhillon
e36b1849b1 IcingadbBackend: Remove isAvailable method and property
As it is only used internally now, it is no more required
2024-02-07 14:17:06 +01:00
Sukhwinder Dhillon
f007840b3e IcingadbBackend: Drop icingadb restriction check and only check for director restrictions
Monitoring does the same.
2024-02-07 14:17:06 +01:00
Sukhwinder Dhillon
d6e8924133 phpstan: Add icingadb module 2024-02-07 14:17:06 +01:00
Sukhwinder Dhillon
d6b33b3a49 Fix phpcs issues 2024-02-07 14:17:06 +01:00
Sukhwinder Dhillon
326ae0e101 ServiceController: Use given properties to get host/service name 2024-02-07 14:17:06 +01:00
Sukhwinder Dhillon
89e90833e3 ActionController::backend(): Add condition to check which backend should be used
- If both are available
2024-02-07 14:17:06 +01:00
Sukhwinder Dhillon
0386f5ca70 IcingadbBackend: Apply director restrictions properly 2024-02-07 14:17:06 +01:00
Sukhwinder Dhillon
9b343b6bb0 HostController: Move ServiceFinder::getRedirectionUrl() method code to findserviceAction()
- This helps to detect backend easily, and was only called in this method anyway.
- Add and use helping method getServicesReadOnlyPermission()
-
2024-02-07 14:17:06 +01:00
Sukhwinder Dhillon
426cc557d6 ServiceController: Remove redudant if condition 2024-02-07 14:17:06 +01:00
Sukhwinder Dhillon
7f8f1b9168 Icingadb (Host/Service)Actions: Fix permissions and code style 2024-02-07 14:17:06 +01:00
Sukhwinder Dhillon
3a6b92a938 configuration.php: Only provide monitoring/icingadb permissions/restrictions if module exists 2024-02-07 14:17:06 +01:00
Sukhwinder Dhillon
001c7c7e8c Introduce icingadb permissions/restrictions 2024-02-07 14:17:06 +01:00
Sukhwinder Dhillon
f208eee6d3 Backend: Remove unnecessary calls to isAvailable() 2024-02-07 14:17:06 +01:00
Sukhwinder Dhillon
082f95c641 IcingadbBackend: Always check if module is available 2024-02-07 14:17:06 +01:00
Sukhwinder Dhillon
a6ee316274 Monitoring/IcingadbBackend: Handle if $hostName or $serviceName is null 2024-02-07 14:17:06 +01:00
Sukhwinder Dhillon
abf94d61f5 Cleanup code
- Remove superfluous methods/usages
- Simplify the code
2024-02-07 14:17:06 +01:00
Sukhwinder Dhillon
3cd5f784ff BackendInterface: Add phpDocs 2024-02-07 14:17:06 +01:00
Sukhwinder Dhillon
70949f854c Relocate Backend classes 2024-02-07 14:17:06 +01:00
Sukhwinder Dhillon
17fcd05576 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-02-07 14:17:06 +01:00
Sukhwinder Dhillon
3c9b79a554 Remove obsolate class Backend and its usages
- Create the backend directly in ActionController::backend()
- Simplify the code
2024-02-07 14:17:06 +01:00
Tobias Tiederle
53df867f4b move classes into subfolder
fix some problems and mark TODO
2024-02-07 14:17:06 +01:00
Tobias Tiederle
35762ec2b5 add support for icingadb as only icingaweb2 data backend 2024-02-07 14:17:06 +01:00
Sukhwinder Dhillon
4edf4b43a9 Github Actions: Add checks for php 8.3 2023-12-01 10:56:12 +01:00