82 Commits

Author SHA1 Message Date
raviks789
6be8cd49af Basket::setObjects: Reset $chosenObjects property only if the given objects is empty 2024-11-07 11:14:36 +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
d879186f0e Fix wrong method param types and add var type hints 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
Sukhwinder Dhillon
8a489bcc46 HostController: Move ServiceFinder::getRedirectionUrl() method code to findserviceAction()
- This helps to detect backend easily, and was only called in this method anyway.
- Add and use helping method getServicesReadOnlyPermission()
-
2024-01-16 09:51:47 +01:00
Sukhwinder Dhillon
956cce84cb Cleanup code
- Remove superfluous methods/usages
- Simplify the code
2024-01-16 09:51:44 +01:00
Sukhwinder Dhillon
9baa3c4341 Remove redudant class MonitorBackendMonitoring and adjuct code accordigly
- Use class `Monitoring` instead
- Remove not in use methods from `MonitorBackend` interface and from classes that implements this interface
- Add param types and return type hint to methods
2024-01-15 16:24:27 +01:00
Thomas Gelf
fc7bfe7db9 Datalist: fix snapshot diff
fixes #2791
2023-08-25 17:15:08 +02:00
Thomas Gelf
479d964841 BasketSnapshotFieldResolver: provide fixOptional...
...DatalistReference()
2023-07-30 20:54:39 +02:00
Thomas Gelf
5371b57630 BasketSnapshotFieldResolver: return types 2023-07-30 20:42:59 +02:00
Thomas Gelf
868e0afe80 BasketDiff: return type is stdClass 2023-05-16 11:19:12 +02:00
Thomas Gelf
c3936f63bb BasketSnapshot: remove obsolete flag 2023-03-12 10:45:16 +01:00
Thomas Gelf
25bca75e9b BasketSnapshot: throw for outdated flag 2023-03-12 10:45:16 +01:00
Thomas Gelf
749ab6a356 BasketSnapshotFieldResolver: dedicated exception..
...for invalid baskets, referencing missing fields
2023-03-11 09:34:52 +01:00
Thomas Gelf
045f4ec941 ObjectImporter, BasketDiff: fallback for baskets...
...with UUID, and no matching entry. Will adjust UUIDs for matching objects
2023-03-07 17:52:59 +01:00
Thomas Gelf
5a732170af Basket: support UUIDs
fixes #2716
2023-03-07 15:13:16 +01:00
Thomas Gelf
bec49d1230 library: cleanup, drop import/export methods 2023-03-07 14:29:34 +01:00
Thomas Gelf
c42fc4498a BasketDiff: normalize all base objects 2023-03-07 13:41:18 +01:00
Thomas Gelf
df10d6a924 CompareBasketObject::sortListBy() -> support array 2023-03-07 13:38:40 +01:00
Thomas Gelf
70a822f270 BasketDiff: new implementation
fixes #2715
2023-03-07 12:15:59 +01:00
Thomas Gelf
c24961f209 ObjectImporter: new centralized importer
fixes #2714
2023-03-07 12:11:44 +01:00
Thomas Gelf
b4839f6855 CompareBasketObject: objects should stay objects 2023-03-07 11:54:32 +01:00
Thomas Gelf
1d787ccb47 BasketSnapshotFieldResolver: give UNKNOWN, not NEW
This occurs on field removal too
2023-03-07 11:53:10 +01:00
Thomas Gelf
d3625e807d Basket: drop protectedFormerChosenObjects 2023-03-07 11:51:25 +01:00
Thomas Gelf
f1add44beb Basket: introduce constants 2023-03-07 11:41:14 +01:00
Thomas Gelf
40254714b8 Permissions: refactor, fix monitoring module checks
fixes #2712
2023-02-23 11:51:53 +01:00
Thomas Gelf
ad5dfc8496 BasketSnapshot: simplify error handling
We have no IcingaObject here, they're all stdClass instances
2022-10-25 11:10:05 +02:00
Thomas Gelf
9892039b0e BasketSnapshot: show object-related details...
...in case an error occurs at encoding time

fixes #2646
2022-10-25 10:46:50 +02:00
Thomas Gelf
867138abe3 AppliedServiceInfo: fetch UUID object
fixes #2615
2022-09-30 12:15:33 +02:00
Thomas Gelf
b6ed832a03 AppliedServiceSetServiceInfo: provide the UUID
fixes #2619
2022-09-30 11:44:18 +02:00
Thomas Gelf
b4c05738ae ServiceFinder: optional Auth
Hint: not required on CLI
2022-07-11 10:06:48 +02:00
Thomas Gelf
4a4e540700 ServiceInfo: ship UUID 2022-07-11 10:05:22 +02:00
Thomas Gelf
56f81b91bb Exporter: centralize export logic
fixes #2549
2022-06-24 12:52:35 +02:00
Thomas Gelf
984e931954 BasketSnapshot: support datafield categories
fixes #2256
2022-02-16 23:14:38 +01: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
7f16d648cc IcingaUser: add basket support
fixes #2328
2021-07-15 19:11:20 +02:00
Thomas Gelf
2538feaf42 ServiceSetServiceInfo: respect deactivation
fixes #2323
2021-06-23 18:25:14 +02:00
Thomas Gelf
ac652f5966 Basket: allow Notification Apply Rules export
fixes #2335
2021-05-28 15:24:18 +02:00
Thomas Gelf
7a9e7d163d ObjectPurgeHelper: remove comments 2021-04-15 08:44:18 +02:00
Thomas Gelf
93222099ad BacketCommand: allow to purge objects on restore
fixes #2201
2021-04-15 08:30:32 +02:00
Thomas Gelf
234e68db31 Lookup: explain various kinds of Services 2021-01-18 17:52:01 +01:00
Thomas Gelf
3325512824 ServiceFinder: new static find() method 2021-01-18 16:03:24 +01:00
Thomas Gelf
6960407825 ServiceInfo: provide requiresOverrides() 2021-01-18 16:03:04 +01:00
Thomas Gelf
e4e96206b4 ServiceFinder: replace HostServiceRedirector 2021-01-16 15:04:29 +01:00
Thomas Gelf
cb6bd03292 CompareBasketObject: fix usort method 2020-11-30 13:30:24 +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
80f9ea29b5 BasketForm: allow Notification Templates 2020-04-09 14:59:52 +02:00
Thomas Gelf
be8c1101f2 travis: use phpcs 3.5.2 2019-11-28 07:13:22 +01:00
Thomas Gelf
75b78c5ddb BasketSnapshot: do not double-filter
fixes #1854
2019-09-20 00:44:54 +02:00