982 Commits

Author SHA1 Message Date
Johannes Meyer
9919b65fc5 DirectorDatafield: Properly cache category in getCategory()
Makes `getCategoryName()` work.
2024-11-19 13:15:34 +01:00
moreamazingnick
fd7babe81e fixes #2393 clusterzone check is not a plugincheck 2024-11-07 15:28:51 +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
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
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
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
Thomas Gelf
6e57e6dc98 IcingaObjectGroup: no membership refresh w/o assign
fixes #2784
2024-01-19 12:29:18 +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
dcf03dc0d5 IcingaArguments: accept DSL
fixes #2811
2023-10-10 13:54:49 +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
00523d9b35 IcingaTemplateResolver: Remove unused dynamic property $table 2023-09-21 09:00:55 +02:00
Thomas Gelf
fc7bfe7db9 Datalist: fix snapshot diff
fixes #2791
2023-08-25 17:15:08 +02:00
Thomas Gelf
8896e54d69 IcingaArguments: be unmodified when loaded from db
fixes #2660
2023-08-21 12:44:59 +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
d429c9e5cc IcingaObjectGroup: re-enable group membership...
...resolver

refs #2048
2023-07-30 17:31:23 +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
722499ea76 ImportRowModifier: filters, CIDR support
fixes #2756
fixes #2757
2023-05-25 15:44:56 +02:00
Thomas Gelf
fb10bac7e9 Sync: fix loading existing templates
fixes #2217
fixes #2745
2023-05-11 15:07:28 +02:00
Thomas Gelf
48af679cf0 IcingaObjectGroup: membership calculation...
...is now being triggered only when assign_filter exists / has been
changed

fixes #2048
2023-04-21 16:03:58 +02:00
Thomas Gelf
b55df21c21 DirectorDatafield: cleanup, types 2023-03-08 17:03:10 +01:00
Thomas Gelf
915f57db99 DirectorDatafield: ignore uuid and originalId...
...on diff
2023-03-08 14:16:14 +01:00
Thomas Gelf
b7e887b251 schema: add UUIDs for datalist and datafield
fixes #2696
2023-03-07 19:31:55 +01:00
Thomas Gelf
bec49d1230 library: cleanup, drop import/export methods 2023-03-07 14:29:34 +01:00
Thomas Gelf
c07758b5d9 IcingaServiceSet: virtual services property...
...should be handled. We can now store a set with it's services
2023-03-07 14:03:09 +01:00
Thomas Gelf
628f24d3d3 SyncRule: alternative setter for properties 2023-03-07 11:49:13 +01:00
Thomas Gelf
5029a30a62 SyncRule: drop obsolete originalId 2023-03-07 11:47:40 +01:00
Thomas Gelf
3893455388 SyncRule: we have a boolean property 2023-03-07 11:45:52 +01:00
Thomas Gelf
637a304f47 IcingaTemplateChoice: fix hasBeenModified...
...this used to be true, once properties have been set
2023-03-07 11:43:41 +01:00
Thomas Gelf
d6bec9bfe1 IcingaObject: cast interval properties to int
They might be strings when shipped from DB or older Baskets
2023-03-07 11:18:24 +01:00
Thomas Gelf
2ade848f4d DbObject: provide boolean properties...
...as IcingaObject did, move convertion logic to DbDataFormatter
2023-03-07 11:16:22 +01:00
Thomas Gelf
881eba7298 IcingaNotification: deal with missing vars 2022-12-28 11:04:13 +01:00
Thomas Gelf
400bf8c0b0 DirectorJob: check for null
Fixes issue with merged PR on PHP 8.1

refs #2680
2022-12-08 13:43:25 +01:00
Christian Maile
4619f8af9b fix wrong type casting 2022-12-08 06:34:19 +01:00
Thomas Gelf
ef010f961b IcingaDependencies: allow unknown service...
...with a given specific host

fixes #2669
2022-12-05 12:58:57 +01:00
Thomas Gelf
616d329be3 IcingaNotification: implement users_var
fixes #462
2022-12-01 12:03:45 +01:00
Thomas Gelf
79db37f093 IcingaDependency: improve (cheated) type hint 2022-11-17 11:47:15 +01:00
Thomas Gelf
ef29ffd2af DirectorDeploymentLog: allow missing config 2022-11-16 11:18:22 +01:00
Thomas Gelf
51380a9e0b IcingaServiceSet: respect indivicual template zone
fixes #1589
fixes #2356
2022-11-15 17:28:33 +01:00
Thomas Gelf
b04f6b7e98 IcingaNotification: improve error message
One more improved exception

refs #2142
2022-11-03 00:23:50 +01:00
Thomas Gelf
63d76abf81 IcingaObject: improve error message
Complain about missing object_type, if assign-related properties cannot be
set because of that reason

refs #2142
2022-11-03 00:20:30 +01:00
Thomas Gelf
e42912d3e8 BranchedObject: set id first
This has an impact on related objects, like timeperiod ranges

fixes #2525
2022-10-26 11:04:58 +02:00
Thomas Gelf
2196426ff5 IcingaObject: fix default value for preserve 2022-10-07 10:25:23 +02:00
Thomas Gelf
6f0c7aa2a3 IcingaObject: allow to replace with plain object 2022-10-07 10:12:00 +02:00