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
be8c1101f2
travis: use phpcs 3.5.2
2019-11-28 07:13:22 +01:00
Thomas Gelf
b475aa841e
IcingaConfigHelper: granular macro-rendering
...
fixes #685
fixes #1272
fixes #1482
2018-06-04 18:18:32 +02:00
Thomas Gelf
8c432285e7
Various: stick with default exceptions...
...
...IDE hints are annoying
2018-05-29 21:31:43 +02:00
Thomas Gelf
a033e411c6
Sync: preserve _override_servicevars
...
fixes #1307
2018-05-04 22:14:07 +02:00
Thomas Gelf
22eb5911f0
CustomVariables: readability, IDE hints
2018-02-25 17:58:11 +01:00
Thomas Gelf
53242894a8
CustomVariables: extend overrides to allow...
...
...overrides from multiple templates to be merged
fixes #813
2017-09-12 12:19:05 +02:00
Thomas Gelf
118dddf93a
Caches: add Benchmark, some IDE hints for CVar
2017-07-31 16:12:56 +02:00
Thomas Gelf
15e87a15bb
CustomVariables: fix and test numeric key rendering
...
fixes #996
2017-07-14 13:21:42 +02:00
Thomas Gelf
180fc2ccfa
Datafield: on rename ask whether to also rename vars
...
fixes #818
2017-07-14 13:21:42 +02:00
Thomas Gelf
25395656ce
CustomVariable: fix rendering for keys starting...
...
...with numbers
fixes #792
2017-02-15 12:50:27 +01:00
Thomas Gelf
b7a10d296c
phpcs: mostly new PSR-2 SpacingAfter/Before checks
2017-01-13 20:54:52 +01:00
Thomas Gelf
962e545a79
CustomVariable: add new helper methods
...
toJson, checksum, render - will be used later on
2016-12-06 08:35:27 +01:00
Thomas Gelf
db61528748
CustomVariable: fix issues with PHP bug #43200
...
fixes #13271
2016-11-21 22:44:31 +01:00
Thomas Gelf
a6928a8bc1
CustomVariable: render expressions in Arrays...
...
...and introduce a new abstract method
2016-11-14 10:17:52 +01:00
Thomas Gelf
5168f5e887
CustomVariables: beatify v1.x unsupported vars
2016-11-04 19:51:02 +01:00
Markus Frosch
df299fe314
CustomVariables(Legacy): Ignore ARGn vars in toLegacyConfigString
...
refs #12919
2016-11-03 13:41:44 +01:00
Markus Frosch
1592894fd7
CustomVariable*(Legacy): Add toLegacyConfigString
...
refs #12919
2016-11-03 13:41:44 +01:00
Markus Frosch
7916e0c0c6
CustomVariable: Fix getType to output a useable value
2016-11-03 13:41:44 +01:00
Thomas Gelf
ee0def7d2b
Lots of files: make IDE users happy
2016-11-01 18:28:36 +01:00
Thomas Gelf
6bb74966d5
CustomVariables: add _set table to delete/countAll
2016-10-25 23:12:23 +00:00
Thomas Gelf
b7eaab715b
Make explicit calls to renderStringWithVariables
2016-10-22 05:48:09 +00:00
Corentin Ardeois
ddcfb09f58
Handle expressions only for apply objects
...
Expressions will be handled only if the object is an ApplyRule.
Only properties and custom variables are replaced.
refs #11976
2016-10-22 00:15:09 +00:00
Thomas Gelf
71b3459540
DirectorDatafieldForm: allow to wipe all related...
...
...custom variables when removing a field
fixes #12916
2016-10-13 14:02:51 +00: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
2c071e215d
CustomVariableNumber: tolerant float comparison
2016-10-06 16:19:08 +00:00
Thomas Gelf
c859055221
CustomVariables: unset var if set to plain null
...
...but still allow for Null variables
2016-10-05 17:20:25 +00:00
Thomas Gelf
efd0b50052
CustomVariable: reset 'deleted' when re-setting...
...
...a value
2016-09-08 22:40:07 +00:00
Thomas Gelf
defb8c50c2
CustomVariables: improve readability
2016-09-08 13:55:13 +00:00
Thomas Gelf
31b716a7db
CustomVariableDictionary: implement isset
2016-09-08 13:18:55 +00:00
Thomas Gelf
4e083d7d40
CustomVariables: use array notation for keys...
...
...with special characters
2016-07-22 18:09:02 +02:00
Thomas Gelf
f288ddaf95
CustomVariables: allow to instantiate from cache
2016-06-30 10:42:52 +02:00
Thomas Gelf
757de240ed
CustomVariables: sort variables when rendering
...
Order was formerly database-dependent
2016-05-25 15:29:39 +02:00
Thomas Gelf
ef50386cd7
CustomVariables: fix modification handling
...
Used to fail when stored and modified multiple consecutive times.
2016-03-08 21:28:54 +01:00
Thomas Gelf
4bc5afb2f8
library/Director: fix PSR2 complaints
2016-02-26 11:58:37 +01:00
Thomas Gelf
2bac3c682f
CustomVariables: do not count deleted vars
2016-02-25 19:40:06 +01:00
Thomas Gelf
d6d25bd306
CustomVariable(Boolean|Null|Number): provide JSON
2016-02-23 10:15:39 +01:00
Thomas Gelf
99608310c5
CustomVariables: set modified from outside
2016-02-23 10:14:42 +01:00
Thomas Gelf
190b3efb98
CustomVariableNumber: add a hint for floats
2016-02-23 09:09:47 +01:00
Thomas Gelf
ad9f232e7b
CustomVariableNumber: faster diff on type mismatch
2016-02-23 09:02:51 +01:00
Thomas Gelf
2ba404c2c7
CustomVariable: more care when cloning
2016-02-23 00:24:38 +01:00
Thomas Gelf
1527873755
CustomVariableNull: faster diff
2016-02-22 11:13:16 +01:00
Thomas Gelf
b59df53ebc
CustomVariableArray: implement magic __clone
2016-02-22 11:09:36 +01:00
Thomas Gelf
c090665594
CustomVariables: improved "set modified" handling
2016-02-22 11:04:01 +01:00
Thomas Gelf
febd44a318
CustomVariables: clone values on set...
...
...just to be on the safe side
2016-02-22 10:59:30 +01:00
Thomas Gelf
e3d38f718f
CustomVariableDictionary: better sorting for diffs
2016-02-22 10:44:26 +01:00
Thomas Gelf
4803e11b49
CustomVariables: fix internal isset magic
2015-12-10 12:20:23 +01:00
Thomas Gelf
bff5d328c2
CustomVariable: fix boolean condition
2015-11-09 18:29:19 +01:00
Thomas Gelf
df3b23834c
CustomVariableNumber: do not let locales influence...
...
...float rendering
2015-11-06 09:33:42 +01:00