Commit Graph

169 Commits

Author SHA1 Message Date
Thomas Gelf 77c4997b88 Various: explicit loading with ID where required
...cleanup, comments
2018-10-15 15:03:57 +02:00
Thomas Gelf 75a0797438 SyncUtils: prefer InvalidArgumentException 2018-10-08 06:35:36 +02:00
Thomas Gelf b77bdcbcf4 ImportRunBasedPurgeStrategy: fetch chunked rows
refs #1556
2018-07-04 15:18:43 +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 fb3dc92b36 ImportRunBasedPurgeStrategy: performance boost...
...for some older MariaDB/MySQL versions
2018-04-27 15:58:13 +02:00
Thomas Gelf 47c7c1b5f2 SyncUtils: fix wrong phpdoc 2018-02-20 12:58:07 +01:00
Thomas Gelf 0056a90414 SyncUtils: allow property names ending with a dot 2018-01-26 13:49:16 +01:00
Thomas Gelf 765b08f597 Import: apply modifiers only when fetching data 2018-01-26 13:01:39 +01: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
Thomas Gelf d1e116a5a1 ipl: rename to dipl
fixes #1217
2017-10-09 15:23:27 +02:00
Jesse Reppin 4d37ee001f ImportSourceLdap: fix typo
fix typo in ImportSourceLdap form Properties
2017-10-09 10:56:34 +02:00
Thomas Gelf e76665741e ImportSourceSql: cache query column list
fixes #1071
2017-09-11 15:30:00 +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 a943b0c70f ImportSourceHook: use new static factory 2017-08-16 11:18:13 +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 f91dd5fa0e PropertyModifierCombine: implementation, tests...
...and related changes with some documentation

fixes #922
2017-05-03 10:39:49 +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 1b57171583 SyncUtils: allow special varnames, add tests
fixes #839
2017-03-09 10:57:37 +01:00
Thomas Gelf 4963b5fe54 SyncUtils: fix PHP 5.3 compatibility 2017-03-09 10:56:14 +01: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
Thomas Gelf fae2a57ed5 Import: fix some type hints and comments 2016-12-30 10:20:24 +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
Thomas Gelf cbf1a30a26 Kickstart: import notification commands
fixes #12028
2016-10-30 12:35:12 +00:00
Markus Frosch 5199dc7826 Sync: Tell the user which object caused an Exception 2016-10-27 15:47:02 +02:00
Thomas Gelf e9a570e96d Sync: fix sync & purge for datalistEntry objects 2016-10-05 17:45:25 +00:00
Thomas Gelf b8b047a1e4 ImportSourceCoreApi: allow to import user groups
fixes #11511
2016-08-24 14:15:40 +00:00
Thomas Gelf f12e4b2033 ImportSource: provide applyModifiers helper method 2016-07-20 14:25:18 +02:00
Thomas Gelf 29564ab742 ImportSource: take over duplicated transform logic 2016-07-20 14:19:20 +02:00
Thomas Gelf eca707bb9d SyncUtils: use missing exception class 2016-07-20 13:44:01 +02:00
Thomas Gelf 38bf19eb92 ImportSource: take over modifier loading logic 2016-07-20 13:40:43 +02:00
Thomas Gelf 225e9beec6 ImportRowModifier: reduce instantiated objects 2016-07-20 12:59:02 +02:00
Thomas Gelf e58c31ab63 ImportRunBasedPurgeStrategy: do not fetch no rows 2016-07-19 06:18:52 +02:00