Commit Graph

164 Commits

Author SHA1 Message Date
Thomas Gelf 7c8edfd467 Exporter: unserialize JSON-encoded Basket objects
New baskets provide a Dictionary
2023-03-07 11:39:11 +01:00
Thomas Gelf cc211fbdfb Exporter: support booleans for DbObjects 2023-03-07 11:38:47 +01:00
Thomas Gelf 21d913e232 Exporter: services should be an array 2023-03-07 11:20:07 +01:00
Thomas Gelf 903f2c825f DbObject: introduce loadOptional
This prevents useless queries (e.g. exists() && load())
2023-03-07 11:17:37 +01:00
Thomas Gelf 2ade848f4d DbObject: provide boolean properties...
...as IcingaObject did, move convertion logic to DbDataFormatter
2023-03-07 11:16:22 +01:00
Thomas Gelf 470137b5c2 Exporter: don't export UUIDs for non-Icinga objects
fixes #2644
2022-10-25 10:59:16 +02:00
Thomas Gelf bfda96f569 DbConnection: deprecate/replace quoteBinary()
Proxies to newer code as a fix, related calls should be substituded
in the long run

fixes #2630
2022-10-18 16:53:06 +02:00
Thomas Gelf deb5b97ea0 DbObjectStore: treat UUID result for PostgreSQL
fixes #2636
2022-10-13 10:58:32 +02:00
Thomas Gelf 82269775f4 DbObject: improve "hasBeenModified" logic 2022-10-07 11:20:32 +02:00
Thomas Gelf 82fbd5359e DbObjectStore: sort by array index, not uuid 2022-10-07 10:12:00 +02:00
Thomas Gelf 773a135220 DbObject: grant access to default properties 2022-10-07 10:12:00 +02:00
Johannes Meyer 3055552728 IcingaObjectQuery: Use `$connection->renderFilter` instead of `whereToSql`
`whereToSql` did support timestamp handling in comparison, though this
class couldn't have made use of it since it had to use a query which
overrides the `isTimestamp` function.
2022-09-21 09:04:29 +02:00
Thomas Gelf 4d8e3f6db7 ServiceSetQueryBuilder: new query builder 2022-09-20 12:19:21 +02:00
Thomas Gelf b2afca2496 Sync: support branches 2022-08-31 14:45:28 +02:00
Thomas Gelf fae9783ff9 HostServiceLoader: less logic in Exporter 2022-08-03 10:23:39 +02:00
Thomas Gelf 9015993b05 Exporter: catch improbable error condition 2022-08-03 09:10:00 +02:00
Thomas Gelf 079e6e6514 ImportExportDeniedProperties: extract logic 2022-08-03 09:01:09 +02:00
Thomas Gelf 74ea9adbf2 Exporter: better variable name 2022-08-03 08:54:15 +02:00
Thomas Gelf 5686629e27 Exporter: export services, not tables 2022-07-28 15:14:03 +02:00
Thomas Gelf fca804e74e ObjectCommand: --all-services
fixes #2571
2022-07-21 07:49:12 +02:00
Thomas Gelf 431d0cfe75 ObjectCommand: add --resolve-services 2022-07-20 16:42:26 +02:00
Thomas Gelf 0d68ee0fda PropertyMangler: new static helper 2022-07-20 09:04:38 +02:00
Thomas Gelf cb355f9b90 Exporter: support property filters
refs #2568
2022-07-20 08:13:25 +02:00
Thomas Gelf c586b2c194 ObjectCommand, Exporter: hosts with services
fixes #2565
2022-07-18 11:35:46 +02:00
Thomas Gelf 0796635132 DbHelpers, Connection: improve escapeBinary logic
hex-style for MySQL too, support array values
2022-07-01 08:39:12 +02:00
Thomas Gelf 56f81b91bb Exporter: centralize export logic
fixes #2549
2022-06-24 12:52:35 +02:00
Thomas Gelf ccd6f4266a DbObject: exists() must check for UUID column
fixes #2475
2022-02-24 16:38:48 +01:00
Thomas Gelf a05300dc24 DbObject: trigger 404 where we get no UUID 2022-02-06 13:18:58 +01:00
Johannes Meyer 420dfcbdbf Avoid passing non-string args to `ctype_*()` functions 2022-01-14 11:31:55 +01:00
Thomas Gelf 87a16f11fa DbObject: fix Command Argument creation
fixes #2453
2022-01-09 21:36:40 +01:00
Thomas Gelf 2e01e181aa DbObject: exists should return false...
...in case there is no related uuid

refs #2434
2021-12-23 10:30:58 +01:00
Thomas Gelf c7cba433ed DbObject: indentation 2021-12-21 14:18:56 +01:00
Thomas Gelf 376344257c DbObjectStore: inject into DbObject for related...
...objects in a branch
2021-12-17 12:51:24 +01:00
Thomas Gelf f35ded85fb ArrayCustomVariablesFilter: check for type (PHP81) 2021-12-13 13:35:16 +01:00
Thomas Gelf 215988c3ca library: some hints for PHP 8.1 2021-12-01 23:50:04 +01:00
Thomas Gelf 75e414006d DbObject: UUID on insert is required
fixes #2407
2021-10-08 15:23:17 +02:00
Thomas Gelf 8ec56ff16e DbObject: allow to set loaded properties 2021-10-05 23:33:30 +02:00
Thomas Gelf 2994403aa8 DbObject: allow arrays in fromDbRow, handle errors 2021-10-05 23:33:30 +02:00
Thomas Gelf f0d63ad23b DbObject: add UUID support 2021-10-05 23:33:30 +02:00
Thomas Gelf 8560abfaa7 DbObjectStore: refactor, drop load() for now 2021-10-05 23:33:30 +02:00
Thomas Gelf ce13200832 DbObjectTypeRegistry: new helper methods 2021-10-05 23:33:30 +02:00
Thomas Gelf 654f845e4e Json: implement decodeOptional() for null support 2021-10-05 23:33:30 +02:00
Thomas Gelf de4378cfd3 DbObjectTypeRegistry: support 'serviceset' 2021-09-09 16:17:42 +02:00
Thomas Gelf 8a280619ad DbObjectStore: load by ID for int keys 2021-08-25 12:14:22 +02:00
Thomas Gelf dfdec95358 IcingaObjectModification: allow to pass db
fixes an issue with related objects on create
2021-08-25 00:54:30 +02:00
Thomas Gelf 1470a134f4 Branch support: initial import 2021-08-16 11:43:09 +02:00
Thomas Gelf 5de3a6a497 Db: clean up methods related to binary PG data 2021-08-16 06:14:34 +02:00
Thomas Gelf 62a31c7858 DbObject: some cleanup 2021-08-16 06:02:36 +02:00
Thomas Gelf a0253250c1 DbObject: allow to setBeingLoadedFromDb 2021-08-16 06:02:15 +02:00
Thomas Gelf 6678a9a8f9 HostGroupMembershipResolverTest: replace new dummy 2021-08-04 15:06:34 +02:00