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
Thomas Gelf
66de47b10b
DbObjectTypeRegistry: move logic from IcingaObject
2021-08-04 13:18:30 +02:00
Thomas Gelf
be9fcfc3c2
DataArrayHelper: readability
2021-08-04 08:21:58 +02:00
Thomas Gelf
348c2d9de4
DataArrayHelper: new helper class
2021-08-03 15:33:09 +02:00
Thomas Gelf
6152b5d1de
SerializableValue: new helper class
2021-08-03 11:45:13 +02:00
Thomas Gelf
f7e9c145eb
Data\Json: "reproducible" JSON
2021-08-03 11:30:48 +02:00
Thomas Gelf
2cff396fe4
DbDataFormatter: new helper class
...
Trying to reduce logic in IcingaObject
2021-05-20 16:21:46 +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
Thomas Gelf
15b52a323c
AssignFilterHelper: fix error message
2020-02-12 14:52:03 +01:00
Thomas Gelf
2ef30f5f12
various: formatting, cleanup
2020-01-10 12:33:54 +01:00
Thomas Gelf
2e29188020
DbObject: logId should show autoinc id in case...
...
...nothing else is present
2019-09-20 03:39:12 +02:00
Thomas Gelf
a93d743e8c
DbObjectWithSettings: also call setter if just...
...
...a setter and no getter exists
2019-09-19 23:27:53 +02:00
Thomas Gelf
10be27c9a3
DbObject: provide methods checking for getters...
...
...and setters
2019-09-19 23:27:06 +02:00
Thomas Gelf
1e893e1bc7
DbObject: make key name obvious when setting...
...
...an invalid property
2019-09-16 10:45:14 +02:00
Thomas Gelf
f9ee098f06
ArrayCustomVariablesFilter: accept lists with...
...
..."Array" target data type
fixes #1241
2019-06-11 11:39:54 +02:00
Markus Frosch
4037e22709
Implement AssignFilterHelper to improve apply/assign matching
...
* is set / is not set - fixes #1483 fixes #1387
* case-insensitive matching when using wildcards '*'
like match() in Icinga 2
2019-05-06 14:19:29 +02:00
Thomas Gelf
b644a7c6a7
IcingaObject, ..WithSettings: fix Basket-related..
...
...problems
2018-11-26 00:12:13 +01:00
Thomas Gelf
6377ed61cc
DbObject: remove binary column magic
...
Binary columns must be configured explicitly, binary keys are now also
possible
fixes #1702
2018-11-14 12:24:31 +01:00
Thomas Gelf
75787911b5
DbObject: fix insert with unprotected autoinc...
...
...for PostgreSQL
2018-10-15 15:03:57 +02:00
Thomas Gelf
affcc54ba3
DbObject: allow specific objects to change their
...
...autoinc ID
2018-10-15 15:03:57 +02:00
Thomas Gelf
6adc0f7632
DbObjectWithSettings: make sure new ones are...
...
...sorted
2018-10-15 15:03:57 +02:00
Thomas Gelf
ad46ff9fb0
DbObject: cleanup, phpdoc
2018-10-04 06:49:19 +02:00
Markus Frosch
0911910856
DbObject: Don't allow empty id for multi-column objects
...
This avoids that the user can actually create duplicate objects in the
database. (E.g. for service templates)
2018-09-05 11:41:49 +02:00