raviks789
409962251b
Fix sync rule preview in case of boolean properties
2024-11-07 10:24:19 +01:00
raviks789
c3fd4118d9
IcingaObjectMultiRelations: Set property modified
to false when loaded from DB
2024-11-07 09:45:13 +01:00
raviks789
6291179bcc
DirectorDatalist: Match column types to join tables in postgres by explicit type casting
2024-11-07 09:41:27 +01:00
raviks789
d946b0d316
ImportSourceRestApi: Fix strlen deprecation
2024-10-22 16:47:06 +02: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
Eric Lippmann
28261d8a7f
Fix PhpStan complaining about arithmetic operations between string and int
2024-10-22 14:19:55 +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
Ravi Kumar Kempapura Srinivasa
1b74177d6d
Support the rendering of service custom variable in Dependencies form
2024-02-07 11:59:52 +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
3fc16910f7
Ini_set()
#param 2 must be string (php < 8.1)
2024-02-05 16:05:24 +01:00
Sukhwinder Dhillon
2acfdecb8d
RestApiClient: Remove curl's return type hint and wrong curl_error() param
...
Php >= 8 returns CurlHandle instead of resource, which confuses phpstan.
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
c9e78ba7d5
IcingaObjectLegacyAssignments: Fix incorrect if condition
2024-02-05 16:05:23 +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
Thomas Gelf
6e57e6dc98
IcingaObjectGroup: no membership refresh w/o assign
...
fixes #2784
2024-01-19 12:29:18 +01:00
raviks789
0ea0a8fd83
Fix zone creation and deletion for tests
2024-01-16 15:27:27 +01:00
Johannes Meyer
58e2a8fca6
Change parent class of BaseTestCase to \Icinga\Test\BaseTestCase
2024-01-16 14:33:49 +01:00
raviks789
c0e870d543
Fix form field suggestions
...
Other available fields should be suggested when no check command has been
chosen for service template.
2024-01-16 12:38:19 +01:00
Sukhwinder Dhillon
a850ff13d7
IcingadbBackend: Remove isAvailable method and property
...
As it is only used internally now, it is no more required
2024-01-16 10:27:10 +01:00
Sukhwinder Dhillon
2461724271
IcingadbBackend: Drop icingadb restriction check and only check for director restrictions
...
Monitoring does the same.
2024-01-16 09:51:47 +01:00
Sukhwinder Dhillon
d30a56a385
Fix phpcs issues
2024-01-16 09:51:47 +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
f52d05de31
IcingadbBackend: Apply director restrictions properly
2024-01-16 09:51:47 +01:00
Sukhwinder Dhillon
8a489bcc46
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-01-16 09:51:47 +01:00
Sukhwinder Dhillon
26f8769d28
Icingadb (Host/Service)Actions: Fix permissions and code style
2024-01-16 09:51:47 +01:00
Sukhwinder Dhillon
a272b0d242
Introduce icingadb permissions/restrictions
2024-01-16 09:51:47 +01:00
Sukhwinder Dhillon
db7181c29e
Backend: Remove unnecessary calls to isAvailable()
2024-01-16 09:51:47 +01:00
Sukhwinder Dhillon
eeaf87741a
IcingadbBackend: Always check if module is available
2024-01-16 09:51:47 +01:00
Sukhwinder Dhillon
677f5dc72a
Monitoring/IcingadbBackend: Handle if $hostName or $serviceName is null
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
8ea8a62ef4
BackendInterface: Add phpDocs
2024-01-15 16:25:05 +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
b28b36f815
move classes into subfolder
...
fix some problems and mark TODO
2023-12-04 10:12:54 +01:00
Tobias Tiederle
1c6090193d
add support for icingadb as only icingaweb2 data backend
2023-12-04 10:12:54 +01:00
Christian Schramm
aa31b37fd1
Fix db type error, when hostgroup is accidentially interpreted as integer
...
fixes #2821
2023-10-19 15:46:52 +02: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
Thomas Gelf
6178265a12
HostgroupRestriction: pass fitting table alias
...
fixes #2164
fixes #2809
2023-10-11 11:37:21 +02:00
Thomas Gelf
d02e430008
Sync: conditional membership sync
...
fixes #2812
2023-10-11 10:01:14 +02:00
Thomas Gelf
dcf03dc0d5
IcingaArguments: accept DSL
...
fixes #2811
2023-10-10 13:54:49 +02:00
Thomas Gelf
742013673e
PropertyModifierJsonDecode: explicitly fail for...
...
...non-string inputs
fixes #2810
2023-10-10 11:11:23 +02:00