66 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
bb8076a09d var_export() expects #param 2 to be bool 2024-02-05 16:05:23 +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
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
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
7f16d648cc IcingaUser: add basket support
fixes #2328
2021-07-15 19:11:20 +02:00
Thomas Gelf
ac652f5966 Basket: allow Notification Apply Rules export
fixes #2335
2021-05-28 15:24: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
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
Thomas Gelf
906f1b3616 BasketSnapshot: ignore missing objects
fixes #1940
2019-09-20 00:26:57 +02:00
Thomas Gelf
cc15cae34a Basket: allow to add external commands and...
...command templates
2019-05-27 17:27:18 +02:00
Thomas Gelf
5839945101 Basket: fix nesting error when modifying baskets 2019-05-27 13:40:27 +02:00
Thomas Gelf
738e4eeaf1 IcingaTimePeriod: support Basket (ExportInterface)
fixes #1735
2019-02-14 22:42:21 +01:00
Thomas Gelf
e961f0eb2a BasketUpload: ignore Datafields, they get special
...treatment
2019-02-14 21:57:10 +01:00
Thomas Gelf
640da36c62 IcingaDependency: allow for basket snapshots
fixes #1739
2019-02-14 21:54:11 +01:00
Thomas Gelf
90b31fc6ca BasketSnapshot: fix upload issue
fixes #1782
2019-02-12 11:28:28 +01:00
Thomas Gelf
6d46a62085 BasketSnapshot.php: cast objects to an array...
...when uploading a basket
2019-01-22 16:59:20 +01:00
Thomas Gelf
35318396e8 Basket: do not fail when setting "Custom Selection"
fixes #1733
2018-12-12 10:42:31 +01:00
Thomas Gelf
0c2e3fe1b1 Basket: fix various little issues
fixes #1691
2018-12-10 17:52:56 +01:00
Thomas Gelf
b67e0c0017 Basket: add UploadForm
fixes #1731
2018-12-10 15:36:59 +01:00
Thomas Gelf
7926d558ba DataList: load by name, fix basket 2018-11-26 00:11:35 +01:00
Thomas Gelf
264732ba98 Basket: fix adding single objects 2018-11-25 22:05:25 +01:00
Thomas Gelf
bb0422c327 Basket: related fixes 2018-11-15 11:14:14 +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
06f5db698f Basket: fix export for Basket and Notifications
fixes #1703
2018-11-14 11:17:44 +01:00