Eric Lippmann
00985429c5
Fix `PSR-12` violations
2024-10-22 14:31:14 +02:00
Sukhwinder Dhillon
bb8076a09d
`var_export()` expects #param 2 to be bool
2024-02-05 16:05:23 +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
6786cc768f
Director: some fixes for PHP v8.1
...
refs #2435
2021-11-24 11:56:18 +01:00
Thomas Gelf
57c4dda117
Objects/*, CVs, others: unify setBeingLoadedFromDb
2021-10-05 23:33:30 +02:00
Thomas Gelf
b1d3bc9b4d
Sync, IcingaObjectGroups: avoid generic Exceptions
2019-01-10 12:10:53 +01:00
Markus Frosch
f1dbeca77c
legacy/IcingaHost: Render assigned hostgroups into host object
2018-09-05 12:35:40 +02:00
Alexy Mikhailichenko
cde61e122b
Typo in IcingaObjectGroups.php
...
"doesn't exists" -> "doesn't exist"
2018-08-10 08:39:35 +02:00
Thomas Gelf
c5375c968b
IcingaObjectGroups: add missing Exception use
2018-03-28 17:50:41 +02:00
Thomas Gelf
19e51e15e4
IcingaObject: special treatment for groups
...
refs #1146
2017-08-31 22:42:25 +02:00
Thomas Gelf
b7a10d296c
phpcs: mostly new PSR-2 SpacingAfter/Before checks
2017-01-13 20:54:52 +01:00
Markus Frosch
1e70cface0
IcingaObject(Legacy): Render directly added groups
...
refs #12919
2016-11-03 13:41:44 +01:00
Markus Frosch
2b227a356b
IcingaObjectGroups: Respect PrefetchCache
2016-10-31 17:21:21 +01:00
Thomas Gelf
6f12663756
PrefetchCache: lot's of improvements
...
This commit enables the prefetch cache per default when rendering configs
and adds the following features:
* prefetch all kinds of Icinga object inheritance (imports)
* prefetch group memberships
* prefetch custom variables
* render vars with the same checksum only once
Roughly measured performance boost with a large real-life config, renders three
times faster as it did before. Might be even more for those suffering from high
latencies when accessing their DB remotely and/or on a slow storage.
fixes #12876
2016-10-09 12:41:06 +00:00
Thomas Gelf
1f5f34cea5
IcingaObjectGroups,Imports: add some manual GC...
...
...to work around PHP issues
2016-06-30 09:34:27 +02:00
Thomas Gelf
1c79807500
IcingaObjectGroups: keep id when cloning groups
...
Before this fix we lost autoincrement ids on clone, resulting in
ill-constructed queries on deletion
fixes #11508
2016-05-20 08:47:07 +02:00
Thomas Gelf
3be31ee247
IcingaObjectGroups: do not join object table
2016-03-20 14:45:50 +01:00
Thomas Gelf
092bb8c3f6
IcingaObjectGroups: simplify setting groups
2016-03-05 10:46:12 +01:00
Thomas Gelf
4bc5afb2f8
library/Director: fix PSR2 complaints
2016-02-26 11:58:37 +01:00
Thomas Gelf
f2f748738e
IcingaObjectGroups: provide autocreate and ignore...
...
...failure options for objects assigned to missing groups by name
2016-02-19 15:36:56 +01:00
Thomas Gelf
9f7e97d80a
IcingaObjectGroups: history-related modifications
2015-08-28 17:12:46 +02:00
Alexander Fuhr
decfcfd67b
IcingaObjectGroups: Set right return type for store()
2015-06-30 10:46:53 +02:00
Alexander Fuhr
33ea3a9b34
IcingaObjectGroups: Fix typo in set() method
2015-06-24 14:57:04 +02:00
Thomas Gelf
f8bd943181
Group membership: more magic
2015-06-24 11:25:22 +02:00
Alexander Fuhr
ef537160f7
IcingaObjectGroups: Fix empty groups rendering
...
fixes #9432
2015-06-17 12:30:59 +02:00
Alexander Fuhr
616892984d
Groups: Add generic Groups support
...
resolves #9427
2015-06-16 17:58:47 +02:00