Commit Graph

221 Commits

Author SHA1 Message Date
raviks789 d946b0d316
ImportSourceRestApi: Fix strlen deprecation 2024-10-22 16:47:06 +02:00
Eric Lippmann 00985429c5 Fix `PSR-12` violations 2024-10-22 14:31:14 +02: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 bb8076a09d `var_export()` expects #param 2 to be bool 2024-02-05 16:05:23 +01:00
Sukhwinder Dhillon 9f58dcf8d9 phpstan: Strict check `function/class` name-case and fix violations 2024-02-05 16:05:23 +01:00
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 abbf580696 ImportSourceCoreApi: fix listColumns
Prior to this fix, only object_name has been listed (while all properties
have been imported)

fixes #2763
2023-06-06 14:32:01 +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 b91cbd97b4 SyncUtils: give NULL on nested intermediate NULL
fixes #2474
fixes #2584
2022-11-03 08:07:07 +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 66de47b10b DbObjectTypeRegistry: move logic from IcingaObject 2021-08-04 13:18:30 +02:00
Thomas Gelf f27390d503 ImportRunBasedPurgeStrategy: fixed combined keys
fixes #2339
2021-07-12 23:11:40 +02:00
Thomas Gelf a8d25b70ee Sync: introduce a 'disable' purge action
fixes #2285
2021-03-11 23:00:52 +01:00
Thomas Gelf b725a07197 ImportSourceRestApi: use storedPassword field
fixes #1897
2020-11-28 17:55:32 +01:00
Thomas Gelf 67e72387ee ImportSourceRestApi: some cleanup 2020-11-28 17:55:19 +01:00
Thomas Gelf 9d6e23a845 ImportSourceRestApi: ignore empty custom headers
fixes #2232
2020-11-28 17:21:21 +01:00
Thomas Gelf 685e42d325 ImportSourceRestApi: fix description 2020-11-02 09:18:40 +01:00
Thomas Gelf 456832e7d1 css, various places: use Hint class 2020-10-26 18:50:13 +01:00
Thomas Gelf 66b30140ea DirectorObject: new import source
fixes #2198
2020-10-09 16:27:38 +02:00
Thomas Gelf 36141c5f98 Import: validated encoding on DB error
MySQL gives useless error messages for invalid UTF8 characters and
confuses users with an 'Invalid datetime format' message.

Once storing imported data fails, the original data will now be scanned
for invalid UTF-8 characters. If such are found, a dedicated exception
with more details is thrown. Otherwise the original exception will be
forwarded

fixes #2143
2020-07-10 17:16:08 +02:00
Markus Frosch 50521bdecb ImportSourceRestApi: Add header and deeper extract_property
Allows a user to add additional headers, e.g. by setting a specific `Accept` or any authentication header.

Also `extract_property` now has a logic for deeper keys like "result.objects", "key.deeper_key.very_deep"
2020-06-06 19:17:02 +02:00
Thomas Gelf 391edf5f19 ImportSourceLdap: use paged result
fixes #2019
2020-03-09 10:19:14 +01:00
Thomas Gelf c12a6baeea Sync: implement update-only policy
fixes #2059
2020-01-17 09:01:25 +01:00
Thomas Gelf f0b96674c9 Import: distinct fetch from store in benchmark 2020-01-10 12:36:13 +01:00
Thomas Gelf be8c1101f2 travis: use phpcs 3.5.2 2019-11-28 07:13:22 +01:00
Thomas Gelf 606d71501e Use ipl, try to keep dipl compatibility 2019-09-11 23:02:39 +02:00
Thomas Gelf e1565c9990 Revert "Merge branch 'next'"
This reverts commit f45f925e5e, reversing
changes made to 90c07943e4.

This was too early, need to check for incubator
2019-09-06 09:54:03 +02:00
Thomas Gelf 17f8ef1dd0 Use ipl, try to keep dipl compatibility 2019-09-06 09:48:11 +02: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 ad9b624e92 ImportSourceRestApi: allow to override url 2019-04-05 08:14:58 +02:00
Thomas Gelf ed352ed8cc ImportSourceRestApi: respect SSL + Proxy settings 2019-04-04 15:18:59 +02:00
Thomas Gelf ba3ce7cd17 ImportSourceRestApi: new generic Import Source
fixes #1818
2019-04-04 13:22:39 +02:00
Thomas Gelf b1d3bc9b4d Sync, IcingaObjectGroups: avoid generic Exceptions 2019-01-10 12:10:53 +01:00
Markus Frosch 58c0689005 Import: Improve exception info during storing rows 2018-12-14 09:58:55 +01:00
Thomas Gelf a3a2b5425b SyncRule: cleanup, remove magic method access 2018-11-24 10:17:18 +01:00