Commit Graph

888 Commits

Author SHA1 Message Date
Thomas Gelf 57c4dda117 Objects/*, CVs, others: unify setBeingLoadedFromDb 2021-10-05 23:33:30 +02:00
Thomas Gelf 835d01cdec IcingaObject: disabled = null is not a thing 2021-10-05 23:33:30 +02:00
Thomas Gelf 5aba966a4b IcingaCommandArgument: use a combined key 2021-10-05 23:33:30 +02:00
Thomas Gelf 792ff03a6d Objects: add uuid column 2021-10-05 23:33:30 +02:00
Thomas Gelf 65bbaa9f98 IcingaObject: custom vars, also load them only...
...when we got an id
2021-10-05 23:33:30 +02:00
Thomas Gelf 182d1b519b IcingaObject: do not load groups when we have...
...no id. With branches this is now possible
2021-10-05 23:33:30 +02:00
Thomas Gelf 1a5df745e3 IcingaObject: add some type-hints 2021-10-05 23:33:30 +02:00
Thomas Gelf a29efe478c IcingaArguments: remove Argument set to null 2021-10-05 23:33:30 +02:00
Ravi Kumar Kempapura Srinivasa 90b5f6fdac Convert $imports keys to string explicitly
The keys of $imports in IcingaObjectImports must be converted to string explicitly or else it establishes incorrect parent-child relation
in icinga_host_inheritance table in case the key is integer value and there is an host object with id = key(integer) icinga_host table.
This results in undefined offset while triggering sync rule.
2021-10-01 10:47:54 +02:00
Ravi Kumar Kempapura Srinivasa 6289bf065f Pass $resolved as False for arguments to toPlainObject()
IcingaArguments passes the $resolved through to the individual argument in the toPlainObject. There lies the error,
simply pass false - because the argument itself cannot have any parents and therefore cannot be resolved
2021-10-01 10:47:12 +02:00
Thomas Gelf f0deb11e7f IcingaObject: no empty vars for unmodified plain 2021-08-16 06:33:34 +02:00
Thomas Gelf 1d5b00a675 IcingaObject: unify DB boolean value converter
Hint: fixes booleans for "plain unmodified" objects
2021-08-16 06:33:23 +02:00
Thomas Gelf 77fca39ff3 IcingaObject: getAppliedGroups with id=null 2021-08-16 06:21:50 +02:00
Thomas Gelf 66de47b10b DbObjectTypeRegistry: move logic from IcingaObject 2021-08-04 13:18:30 +02:00
Thomas Gelf 7f16d648cc IcingaUser: add basket support
fixes #2328
2021-07-15 19:11:20 +02:00
Sebastian Gumprich fed74eb33d IcingaObject: alias scheduled_downtime
Fixes an error when trying to create scheduled_downtime via api

fixes #1879
2021-07-12 23:25:42 +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 7de5b03877 IcingaObject: readability, style 2021-05-20 15:11:12 +02:00
Thomas Gelf 80965053cf IcingaDependency: isApplyForArrayClone(), cleanup 2021-05-20 11:48:17 +02:00
Thomas Gelf da1363d236 IcingaService: public hasBeenAssignedToHostTemplate 2021-05-20 10:24:27 +02:00
Thomas Gelf a2016e99c0 IcingaObject: do not load resolved memberships...
...for unstored objects
2021-04-15 10:22:45 +02:00
Thomas Gelf c709c00fbd ObjectApplyMatches: fetch allied host groups
fixes #2313
2021-04-14 09:03:35 +02:00
Thomas Gelf 302c9b645d DirectorDatafield: fix changed method name
fixes #2278
2021-03-19 13:24:58 +01:00
Thomas Gelf a8d25b70ee Sync: introduce a 'disable' purge action
fixes #2285
2021-03-11 23:00:52 +01:00
Thomas Gelf 21a284abbc OverriddenVarsResolver: refine api 2021-01-19 01:47:31 +01:00
Thomas Gelf 6687524d2f IcingaObject/Imports: better error message wording
fixes #2224
2021-01-11 17:32:59 +01:00
Thomas Gelf c12cf5ddb3 PropertyModifierHook: provide the property name
fixes #2241
2020-12-02 17:59:15 +01:00
Thomas Gelf 12a818216c IcingaNotification: separate times.begin/end
fixes #2193
2020-11-30 08:11:25 +01:00
Thomas Gelf c273a20ce4 KickstartHelper: eventually remove external commands
fixes #985
2020-11-30 08:01:53 +01:00
Thomas Gelf a761485b96 CompareBasketObject: new helper for basket diffs
...with lot's of workarounds for foreign baskets

fixes #2223
2020-11-24 04:36:48 +01:00
Thomas Gelf db03208c5b IcingaDependency: fix for Array-style parent hosts
fixes #2088
2020-11-02 11:30:28 +01:00
Thomas Gelf b75aac7323 PropertyModifierHook: allow to clone rows
fixes #2060
2020-01-17 11:32:04 +01:00
Thomas Gelf 2ef30f5f12 various: formatting, cleanup 2020-01-10 12:33:54 +01:00
Thomas Gelf a7c21743b9 ImportSource: loaded modifiers should be an Array
fixes #2053
2020-01-09 14:15:50 +01:00
Thomas Gelf 668012ac64 ImportSource: allow an imported object with no...
...modifiers to remove existing ones
2020-01-09 14:14:34 +01:00
Thomas Gelf e59bbc1a4d ImportSource: increment modifier counter on import
This fix has no impact on the restored data, but avoids useless
re-creation of the very same property modifiers on restore (in case
there is more than one)
2020-01-09 14:08:52 +01:00
Thomas Gelf 0c2ba62c0b DirectorDatalistEntry: fix Exception namespace
This removes an unused dependency on ext-http

refs #2054
2020-01-09 09:05:27 +01:00
Thomas Gelf 3e98d828e5 OverriddenVarsResolver: externalize lookup logic
This now also takes into account properties overridden on intermediate
Host templates
2019-12-04 12:36:47 +01:00
Mantis Development 596e352761 use sprintf() for InvalidArgumentException 2019-11-28 23:40:43 +01:00
Thomas Gelf be8c1101f2 travis: use phpcs 3.5.2 2019-11-28 07:13:22 +01:00
Thomas Gelf 50315d8714 ImportSource: fix cloning
fixes #2005
fixes #1997
2019-11-05 16:50:56 +01:00
Thomas Gelf 3996efc3cf IcingaNotification: render service_name
fixes #2006
2019-10-31 15:27:37 +01:00
Thomas Gelf 5dab744b81 Health: do not complain about new jobs...
...that have never been triggered and are not due right now

fixes #1994
2019-10-16 14:49:04 +02:00
Valentina Da Rold 2d73aad9d1 Add PHPDoc to getCategory function 2019-10-02 09:47:51 +02:00
Valentina Da Rold 062b290ca8 Add category name to datafield and hooks 2019-10-01 18:15:02 +02:00
Valentina Da Rold 0fbe693544 Use category_name as id in DirectorDatafieldCategory 2019-10-01 16:57:35 +02:00
Valentina Da Rold 50c477acce Create DirectorDatafieldCategory for DirectorDatafield 2019-10-01 15:33:42 +02:00
Thomas Gelf ab8c8b041d IcingaNotification: render host_id as host_name
Does not affect apply rules, just those who enforce host_id via sync
2019-09-27 15:10:31 +02:00
Thomas Gelf 95d68aefeb IcingaService: enforce zone for apply rules
fixes #1621
fixes #1634
2019-09-25 14:36:45 +02:00
Thomas Gelf a540a716c2 ImportSource: raise limits when running
fixes #1954
2019-09-25 13:09:57 +02:00