112 Commits

Author SHA1 Message Date
raviks789
409962251b Fix sync rule preview in case of boolean properties 2024-11-07 10:24:19 +01:00
Eric Lippmann
ce64888b81 Fix const visibility 2024-10-22 15:36:03 +02:00
Eric Lippmann
00985429c5 Fix PSR-12 violations 2024-10-22 14:31:14 +02: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
raviks789
3c7082cabc Modify IcingaObjectFilterHelper::filterByTemplate for director branches
Icinga objects must be filterable based on templates when a director branch is active.
2023-09-21 14:57:30 +02:00
raviks789
dec1951774 CustomVariableCache: Remove redundant destructor
Property `$db` is not declared for it to be unset
2023-09-21 09:00:55 +02:00
EmTeedee
6b7bff80de ${var} deprecated in favor of {$var}
See: https://www.php.net/manual/en/migration82.deprecated.php#migration82.deprecated.core.dollar-brace-interpolation
2023-07-19 10:44:40 +02:00
Thomas Gelf
9f76d7e605 BranchActivity: show related host for services
fixes #2736
2023-04-20 11:47:17 +02:00
Thomas Gelf
bbf85f052b app, lib: formatting, syntax 2023-02-23 12:00:20 +01:00
Thomas Gelf
40254714b8 Permissions: refactor, fix monitoring module checks
fixes #2712
2023-02-23 11:51:53 +01:00
Thomas Gelf
12aa7e07e2 BranchStore: quote binary values when cloning...
...branches, instead of letting prepared statements deal with this.

refs #2711
2023-02-23 11:51:34 +01:00
Thomas Gelf
b3e09978fa UuidLookup: fix for services created in sets...
...where the set exists in the branch only

fixes #2710
2023-02-23 11:51:34 +01:00
Thomas Gelf
c643959d06 PreferredBranchSupport: for directorbranches
fixes #2688
fixes #2689
2022-12-16 14:16:02 +01:00
Thomas Gelf
0db7240c96 Branch: do not use deprecated Hook class 2022-12-16 13:57:05 +01:00
Thomas Gelf
e42912d3e8 BranchedObject: set id first
This has an impact on related objects, like timeperiod ranges

fixes #2525
2022-10-26 11:04:58 +02:00
Thomas Gelf
f2eb06ae39 BranchStore: wipe branched tables, not real ones 2022-09-21 11:51:05 +02:00
Thomas Gelf
05de5b171b BranchMerger: log change author
fixes #2606
2022-09-21 08:50:45 +02:00
Thomas Gelf
79f8ca26ef Branch: allow access to description
fixes #2604
2022-09-21 07:51:25 +02:00
Thomas Gelf
2a5909917b BranchSupport, Inspection: allow Sets 2022-09-20 12:05:43 +02:00
Thomas Gelf
ae0992f196 UuidLookup: host_id VS host in branch 2022-09-20 11:54:10 +02:00
Thomas Gelf
e3e92cdb3a AppliedServiceSetLoader: change method visibility
...for fetchAppliedServiceSets()
2022-09-19 07:41:44 +02:00
Thomas Gelf
410913e512 UuidLookup: fix host/set related fallback 2022-09-15 11:45:32 +02:00
Thomas Gelf
1df495b41e UuidLookup: fix lookup for cloned branches 2022-09-09 14:30:51 +02:00
Thomas Gelf
98cfcafdcd BranchSupport: introduce new constants 2022-08-31 14:45:28 +02:00
Thomas Gelf
956708475e BranchSupport: new helper class 2022-08-31 14:45:28 +02:00
Thomas Gelf
b2afca2496 Sync: support branches 2022-08-31 14:45:28 +02:00
Thomas Gelf
1c30412abd DirectorActivityLog, others: constants, cleanup 2022-08-20 20:41:07 +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
9a0279b111 UuidLookup: do not enforce service objects
fixes #2487
fixes #2554
2022-06-24 10:37:09 +02:00
Thomas Gelf
95730fb0aa BranchActivity: require connection when creating...
...new objects
2022-02-09 14:46:42 +01:00
Thomas Gelf
767329443b BranchMerger: make comment optional 2022-02-08 08:59:23 +01:00
Thomas Gelf
bb567946d2 BranchMerger: no remark with empty comment 2022-02-08 08:58:34 +01:00
Thomas Gelf
8bcc20e004 ActivityLogTable: support remarks
fixes #2471
2022-02-08 08:58:34 +01:00
Thomas Gelf
9611381956 BranchMerger: trigger activity log entry when...
...deleting an object
2022-02-08 08:58:34 +01:00
Thomas Gelf
30f0d85158 UuidLookup: allow multi-key objects
Hint: we do not (yet) support templates in branches, but we need to deal
with related lookups
2022-02-06 13:19:17 +01:00
Thomas Gelf
a05300dc24 DbObject: trigger 404 where we get no UUID 2022-02-06 13:18:58 +01:00
Thomas Gelf
1cbb033911 ServiceController: load Set and Host before...
...the service, which get's loaded in the parent class

fixes #2452
fixes #2449
2021-12-23 10:25:59 +01:00
Thomas Gelf
a86c751c33 Cube, BranchedObject: formatting 2021-12-22 11:45:57 +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
257537d022 DbUtil: helper for pgsql binary resource handling 2021-12-06 22:11:31 +01:00
Thomas Gelf
215988c3ca library: some hints for PHP 8.1 2021-12-01 23:50:04 +01:00
Thomas Gelf
30c6e50e33 BranchMerger: remove obsolete method call 2021-10-18 13:35:57 +02:00
Thomas Gelf
2b62742362 UuidLookup: initial import 2021-10-05 23:33:30 +02:00
Thomas Gelf
649a5dbe5e BranchedObject: initial import 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