Commit Graph

3035 Commits

Author SHA1 Message Date
Thomas Gelf 84c299a7db Table/Object*: use UUIDs 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 1845b43314 ObjectsTable: we have UUIDs now, new column names 2021-10-05 23:33:30 +02:00
Thomas Gelf 73884536df ServiceActions: formatting 2021-10-05 23:33:30 +02:00
Thomas Gelf 8601f26f03 BranchSupportHook: drop linkToBranchedObject 2021-10-05 23:33:30 +02:00
Thomas Gelf b12d50a16a HostgroupRestriction: do not fail on hosts w/o ID 2021-10-05 23:33:30 +02:00
Thomas Gelf 70c0b8f247 BranchActivityTable: new columns, better query 2021-10-05 23:33:30 +02:00
Thomas Gelf 98a8050718 BranchStore: new column names, delete methods 2021-10-05 23:33:30 +02:00
Thomas Gelf e17535117e BranchModificationInspection: column names, uuid 2021-10-05 23:33:30 +02:00
Thomas Gelf dc52a54888 BranchMerger: use Activity instances 2021-10-05 23:33:30 +02:00
Thomas Gelf 7ad9cf6c6c BranchActivity: formatting 2021-10-05 23:33:30 +02:00
Thomas Gelf b22511e341 Branch: add assertBranch helper method 2021-10-05 23:33:30 +02:00
Thomas Gelf 59f6051623 Branch: use new ts_merge_request column 2021-10-05 23:33:30 +02:00
Thomas Gelf f7d100ea24 Branch: remove outdated classes 2021-10-05 23:33:30 +02:00
Thomas Gelf 5483093959 MergeError: support BranchActivity 2021-10-05 23:33:30 +02:00
Thomas Gelf 2b24e9bcf8 BranchedObjectHint: move, support BranchedObject 2021-10-05 23:33:30 +02:00
Thomas Gelf 2f1a47c34a PlainObjectPropertyDiff: diff calculation 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 c2d7b235a5 IcingaConfigDiff: replace duplicate code 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
Thomas Gelf 5494ab29bd BranchActivity: dedicated class 2021-10-05 23:33:30 +02:00
Thomas Gelf 2c27446c9f NotInBranchHint: dedicated class, used in our...
...BranchHelper
2021-10-05 23:33:30 +02:00
Thomas Gelf a1fb42878c BranchSettings: some generic settings and helpers 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 378ef5d686 ObjectsTable, Infra: fix method signature
fixes #2395
2021-09-23 07:32:35 +02:00
Thomas Gelf 83c12fefcf SingleServiceInfo: fix URL for single services
This affected clicking "modify" in the monitoring module
2021-09-09 16:25:28 +02:00
Thomas Gelf de4378cfd3 DbObjectTypeRegistry: support 'serviceset' 2021-09-09 16:17:42 +02:00
Johannes Meyer 82ae0dc52e Host|ServiceActions: Don't check object access if monitoring isn't active 2021-09-01 10:35:32 +02:00
Thomas Gelf 435b1f9b1d BranchModificationStore: centralize encoding rules 2021-08-26 10:18:06 +02:00
Thomas Gelf 6cc902f238 BranchesDashboard: do not fail with no dashlet 2021-08-25 16:24:54 +02:00
Thomas Gelf b898041caa DirectorObjectForm: use Branch, not UUID 2021-08-25 13:00:56 +02:00
Thomas Gelf 8a280619ad DbObjectStore: load by ID for int keys 2021-08-25 12:14:22 +02:00
Thomas Gelf 430f54837b DeployedConfigInfoHeader: do not re-deploy...
...when being in a branchDeployedConfigInfoHeader: do not re-deploy...

...when being in a branchDeployedConfigInfoHeader: do not re-deploy...

...when being in a branchDeployedConfigInfoHeader: do not re-deploy...

...when being in a branchDeployedConfigInfoHeader: do not re-deploy...

...when being in a branchDeployedConfigInfoHeader: do not re-deploy...

...when being in a branchDeployedConfigInfoHeader: do not re-deploy...

...when being in a branchDeployedConfigInfoHeader: do not re-deploy...

...when being in a branchDeployedConfigInfoHeader: do not re-deploy...

...when being in a branch
2021-08-25 11:38:29 +02:00
Thomas Gelf bdd9e2b1e5 IcingaCloneObjectForm: do not clone templates...
...in branches. Reason: fields
2021-08-25 11:28:51 +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 44b749f2bf BranchModificationStore: cast eventual objects 2021-08-24 18:47:13 +02:00
Thomas Gelf 23f1fae784 BranchModificationStore: fix serialization 2021-08-24 18:46:55 +02:00
Thomas Gelf 607f53fecc BranchesDashboard: prominent hint -> active branch 2021-08-24 16:33:16 +02:00
Thomas Gelf b321327634 Dashboard: provide space for Branch Hook dashlets 2021-08-24 16:13:22 +02:00
Thomas Gelf 15adce142f ObjectModificationBranchHint: variants, details 2021-08-23 09:01:03 +02:00
Thomas Gelf 290e34a8ca ObjectsTable: add branchUuid, fail-safe 2021-08-23 09:00:26 +02:00
Thomas Gelf 6ff5b0c8d7 ConfigHealthItemRenderer: ask branch for count 2021-08-23 08:58:02 +02:00
Thomas Gelf 085cec0eb7 BranchedObjectsHint: new hints for lists 2021-08-23 08:56:16 +02:00
Thomas Gelf 48ac87cff5 ObjectController: hook has been updated 2021-08-23 08:55:30 +02:00
Thomas Gelf d83a0aaba5 BranchHelper: use BranchStore 2021-08-23 08:54:34 +02:00
Thomas Gelf 04f3c6363e BranchSupportHook: smaller changes 2021-08-23 08:53:40 +02:00
Thomas Gelf 5002f7a6bf IcingaObjectModification: loop with an array 2021-08-23 08:53:22 +02:00
Thomas Gelf 2897415a1f BranchStore: centralized repository 2021-08-23 08:52:12 +02:00
Thomas Gelf c79045e9e2 Branch: add a bunch of properties and getters 2021-08-23 08:50:44 +02:00
Thomas Gelf 1470a134f4 Branch support: initial import 2021-08-16 11:43:09 +02:00
Thomas Gelf 38d17af92e DirectorObjectForm: remove unused property 2021-08-16 11:22:50 +02:00
Thomas Gelf 44a90afea2 DbSelectParenthesis: allow to defer Db Expr...
...stringification when required to apply parenthesis (-> union)
2021-08-16 10:51:57 +02:00
Thomas Gelf 7c553257a6 ObjectController: fail when loading twice 2021-08-16 07:12:06 +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 21dcadd143 Db: remove unused properties 2021-08-16 06:17:46 +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 40c2aaeb22 ObjectsTableService: fix typo
fixes #2357
2021-08-16 05:43:41 +02:00
Thomas Gelf c822f3b981 DatafieldCategoryTable: fix SQL error on search
fixes #2367
2021-08-16 05:40:23 +02:00
Thomas Gelf 093abfd733 DatafieldTable: fix grouping error on PostgreSQL
fixes #2310
2021-08-16 05:36:10 +02:00
Thomas Gelf f87eff8a21 PropetyModifierToInt: fail for non-strings
fixes #2372
2021-08-12 11:52:31 +02:00
Thomas Gelf 909fac0419 PropertyModifier: preserve null values
fixes #2371
2021-08-12 11:45:40 +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 7f16d648cc IcingaUser: add basket support
fixes #2328
2021-07-15 19:11:20 +02:00
Thomas Gelf 6badc53d61 DependencyChecker: new implemenation
This is now also able to give help for web 2.9.x

fixes #2354
fixes #2350
2021-07-13 09:50:17 +02:00
Thomas Gelf 44ca8890f2 ActionController: check view->compact
fixes #2141
2021-07-13 01:01:49 +02:00
Eric Lippmann 1a61cfc5c7 Use Icinga 2's generate-ticket API 2021-07-12 23:54:47 +02:00
Thomas Gelf eee4f7cf55 IcingaConfig: store config file relations in a...
...transaction: all or nothing

fixes #2351
2021-07-12 23:43:04 +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 f27390d503 ImportRunBasedPurgeStrategy: fixed combined keys
fixes #2339
2021-07-12 23:11:40 +02:00
Thomas Gelf bf32380d32 IcingaServiceSetServiceTable: show "deactivated"
...in RO users overview table

fixes #2344
2021-06-23 18:29:56 +02:00
Thomas Gelf 2538feaf42 ServiceSetServiceInfo: respect deactivation
fixes #2323
2021-06-23 18:25:14 +02:00
Thomas Gelf 234bb89454 QuickForm: typo 2021-06-01 21:29:21 +02:00
Thomas Gelf ac652f5966 Basket: allow Notification Apply Rules export
fixes #2335
2021-05-28 15:24:18 +02:00
Thomas Gelf 40544ac935 ObjectPreview: fix inline Service Template links...
...for Service Sets

fixes #2334
2021-05-28 10:48:29 +02:00
Thomas Gelf ec87cd0ec2 OverriddenVarsResolver: deal with root templates
fixes #2333
2021-05-28 10:39:29 +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 2c950e05ea IcingaConfigHelper: re-order reserved words 2021-05-20 15:20:21 +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 10ada10527 IcingaConfigHelper: improve readability 2021-05-20 10:28:07 +02:00
Thomas Gelf da1363d236 IcingaService: public hasBeenAssignedToHostTemplate 2021-05-20 10:24:27 +02:00
Thomas Gelf e5595431df PropertyModifierSimpleGroupBy: new modifier
fixes #2317
2021-04-23 17:38:52 +02:00
Thomas Gelf c5e25cdcc7 ScheduledDowntime: introduce a new permission...
...and a related name-based restriction

fixes #2086
2021-04-23 12:33:42 +02:00
Mattia Codato 9387ede99a Add hook deployment onCollect 2021-04-20 16:13:48 +02:00
Thomas Gelf a2016e99c0 IcingaObject: do not load resolved memberships...
...for unstored objects
2021-04-15 10:22:45 +02:00