121 Commits

Author SHA1 Message Date
Thomas Gelf
d02e430008 Sync: conditional membership sync
fixes #2812
2023-10-11 10:01:14 +02:00
Thomas Gelf
b19c01daef Sync: ignore null for policy = ignore
fixes #2657
2023-08-23 15:48:13 +02:00
Thomas Gelf
e94ad714fb Sync: drop obsolete/useless method 2023-08-22 10:32:44 +02:00
Thomas Gelf
fb10bac7e9 Sync: fix loading existing templates
fixes #2217
fixes #2745
2023-05-11 15:07:28 +02:00
Thomas Gelf
21bb6c5676 Sync: always store stats w/o (branch) store
fixes #2633
2022-11-03 10:22:38 +01:00
Thomas Gelf
693b8fe317 Sync: fix purge for objects with uppercase chars
fixes #2627
2022-11-02 21:12:40 +01:00
Thomas Gelf
91ca8065e3 Sync: fix purge and invalid sync history
fixes #2632
fixes #2627
2022-10-07 12:23:47 +02:00
Thomas Gelf
afc7efe4d5 Sync: do not set null if overridden
refs #2623
2022-10-07 10:18:39 +02:00
Thomas Gelf
9a2c0162d2 Sync: respect null properties on merge
fixes #2623
2022-10-07 10:16:37 +02:00
Thomas Gelf
f447457c40 Sync: load object w/o branch support the old way
fixes #2618
2022-10-06 13:08:48 +02:00
Thomas Gelf
60bdef6752 Sync: create objects with original key...
...and not with the lower-cased comparison key

fixes #2608
2022-09-22 17:37:26 +02:00
Thomas Gelf
dd85c2ee35 Sync: compare keys in a case-insensitive way
fixes #2598
2022-08-31 16:36:31 +02:00
Thomas Gelf
ae45844bac Sync: fix typo, remove useless cast 2022-08-31 14:45:28 +02:00
Thomas Gelf
b2afca2496 Sync: support branches 2022-08-31 14:45:28 +02:00
Thomas Gelf
047b14ccbf Sync: preserve Host api_key in override mode
fixes #2590
2022-08-19 10:57:05 +02:00
Thomas Gelf
82656de2c2 Director: some PHP 8.1-related changes 2021-11-28 11:13:08 +01:00
Thomas Gelf
a8d25b70ee Sync: introduce a 'disable' purge action
fixes #2285
2021-03-11 23:00:52 +01:00
Thomas Gelf
c12a6baeea Sync: implement update-only policy
fixes #2059
2020-01-17 09:01:25 +01:00
Thomas Gelf
6bf1c30c2f Sync: use string keys for object_name 2019-05-22 17:06:24 +02:00
Markus Frosch
a30a28a7a1 Sync: Purge TemplateRepository cache before sync 2019-04-17 10:47:43 +02:00
Thomas Gelf
b1d3bc9b4d Sync, IcingaObjectGroups: avoid generic Exceptions 2019-01-10 12:10:53 +01:00
Thomas Gelf
a3a2b5425b SyncRule: cleanup, remove magic method access 2018-11-24 10:17:18 +01:00
Thomas Gelf
cf6e4536ea Util: drop bin2hex/hex2bin helpers
We dropped support for PHP 5.3, this is no longer required
2018-10-30 15:32:17 +01:00
Thomas Gelf
77c4997b88 Various: explicit loading with ID where required
...cleanup, comments
2018-10-15 15:03:57 +02:00
Thomas Gelf
29bcfff07f Sync: fix properties for IcingaObject instances 2018-05-25 13:29:32 +02:00
Thomas Gelf
bd80862153 Sync: cleanup, improve array handling, split logic
This should for example fix sync for multiple group memberships
2018-05-25 13:29:32 +02:00
Thomas Gelf
d8b1207254 Sync: it's not yet possible to let single...
...objects fail

refs #1048
2018-05-22 12:17:22 +02:00
Markus Frosch
49afcd5855 Sync: Only prefetch relations for IcingaObject
So DatalistEntry can be synced

fixes #1048
2018-05-22 11:08:03 +02:00
Thomas Gelf
a033e411c6 Sync: preserve _override_servicevars
fixes #1307
2018-05-04 22:14:07 +02:00
Markus Frosch
3b812fab7d Sync: Make sure to prefetch relations for objects
This can avoid a lot of queries for zones, commands, timeperiods.
2018-04-27 16:05:39 +02:00
Markus Frosch
c4a95fd64e Sync: Implement Benchmark for the Sync process
Note: This disables redirect-on-success for the forms, so you can see
the benchmark result.
2018-04-27 16:05:39 +02:00
Thomas Gelf
9e193dbc6b Sync: do not deal with 'disabled' for objects...
...without such properties (e.g. Sets)
2017-10-13 11:41:59 +02:00
Thomas Gelf
8f7e9e9ecd Sync: do not touch 'disabled' on merge unless...
...it has been defined as a Sync Property

fixes #1223
2017-10-10 16:32:57 +02:00
Thomas Gelf
996918aafa MemoryLimit: dedicated class, tests
fixes #1220
2017-10-10 14:35:32 +02:00
Markus Frosch
e9546f68bf Sync: Respect the fields used in filter_expression of the SyncRule
So that you can filter by fields not used in properties, or in property filters.

fixes #1130
refs #876
2017-08-30 16:40:12 +02:00
Thomas Gelf
07834361d0 Sync: try to get deferred group membership...
...resolver straight

fixes #1038
2017-08-22 00:05:08 +02:00
Thomas Gelf
179054b239 Sync: better IDE hints 2017-08-21 21:53:19 +02:00
Thomas Gelf
7fd94fb5bd Jobs, Kickstart: raise limits, try to work...
...around GC bugs

refs #1056
2017-08-04 11:31:43 +02:00
Thomas Gelf
496be4fbc8 Sync: respect 'replace' policy on vars...
...with rule policy being set to 'merge'

fixes #864
2017-08-03 10:51:13 +02:00
Peter Backes
ad825f9c58 Sync: Allow syncing lists of template imports
fixes #946
2017-07-14 13:21:42 +02:00
Thomas Gelf
0e759fb2f6 Sync: do not fail on non-IcingaObject, fix typo
refs #832
2017-07-14 13:21:42 +02:00
Thomas Gelf
5ae7997f9d Sync: tune membership resolver
Also fixes error on host creation

refs #832
2017-07-14 13:21:42 +02:00
Thomas Gelf
6de258730b Sync: fix issues with PHP 5.3
Problem has been introduced with f885d90

fixes #906
2017-04-26 15:31:24 +02:00
Thomas Gelf
f885d90a0a Sync: also fetch columns used in filters only
Filters might otherwise in some circumstances not work as expected

fixes #876
2017-03-28 18:03:53 +02:00
Thomas Gelf
b7a10d296c phpcs: mostly new PSR-2 SpacingAfter/Before checks 2017-01-13 20:54:52 +01:00
Thomas Gelf
9e771f2d5a Fix phpcs complaints 2017-01-13 19:47:54 +01:00
Markus Frosch
8b5689545c Sync(Rule): Allow to sync services of a ServiceSet
This extends the destination key pattern for Sync.

refs #12891
2016-11-11 11:06:01 +01:00
Markus Frosch
1a02543321 Sync: Use PrefetchCache 2016-10-31 17:21:21 +01:00
Markus Frosch
b04e5f401f Sync: Allow importing / syncing templates
Purging a used template will obviously fail.

refs #11778
2016-10-31 10:55:21 +01:00
Markus Frosch
5199dc7826 Sync: Tell the user which object caused an Exception 2016-10-27 15:47:02 +02:00