Commit Graph

3215 Commits

Author SHA1 Message Date
Thomas Gelf b7e887b251 schema: add UUIDs for datalist and datafield
fixes #2696
2023-03-07 19:31:55 +01:00
Thomas Gelf 6c611a5db4 DbObject: use original UUID in where
This allows to change a UUID
2023-03-07 18:22:59 +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 7d5d5b38ba Web/Form: fix dark mode for clone forms
fixes #2670
2023-03-07 14:30:56 +01:00
Thomas Gelf bec49d1230 library: cleanup, drop import/export methods 2023-03-07 14:29:34 +01:00
Thomas Gelf c07758b5d9 IcingaServiceSet: virtual services property...
...should be handled. We can now store a set with it's services
2023-03-07 14:03:09 +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 628f24d3d3 SyncRule: alternative setter for properties 2023-03-07 11:49:13 +01:00
Thomas Gelf 5029a30a62 SyncRule: drop obsolete originalId 2023-03-07 11:47:40 +01:00
Thomas Gelf 3893455388 SyncRule: we have a boolean property 2023-03-07 11:45:52 +01:00
Thomas Gelf 637a304f47 IcingaTemplateChoice: fix hasBeenModified...
...this used to be true, once properties have been set
2023-03-07 11:43:41 +01:00
Thomas Gelf f1add44beb Basket: introduce constants 2023-03-07 11:41:14 +01:00
Thomas Gelf 7c8edfd467 Exporter: unserialize JSON-encoded Basket objects
New baskets provide a Dictionary
2023-03-07 11:39:11 +01:00
Thomas Gelf cc211fbdfb Exporter: support booleans for DbObjects 2023-03-07 11:38:47 +01:00
Thomas Gelf 21d913e232 Exporter: services should be an array 2023-03-07 11:20:07 +01:00
Thomas Gelf d6bec9bfe1 IcingaObject: cast interval properties to int
They might be strings when shipped from DB or older Baskets
2023-03-07 11:18:24 +01:00
Thomas Gelf 903f2c825f DbObject: introduce loadOptional
This prevents useless queries (e.g. exists() && load())
2023-03-07 11:17:37 +01:00
Thomas Gelf 2ade848f4d DbObject: provide boolean properties...
...as IcingaObject did, move convertion logic to DbDataFormatter
2023-03-07 11:16:22 +01: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 51a7b68803 PropertyModifierRegexReplace: w/o match allow null
fixes #2705
2023-02-23 11:51:34 +01:00
Thomas Gelf ce10b7e699 IcingaServiceSetServiceTable: link with uuid...
...to services in sets

refs #2710
2023-02-23 11:51:34 +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 4e41e7f2d8 Revert "Monitoring: no monitoring module, no Host/Service"
This reverts commit d905318589.
2023-02-22 11:34:57 +01:00
Thomas Gelf d905318589 Monitoring: no monitoring module, no Host/Service
...and no error

fixes #2533
fixes #2563
2022-12-29 16:30:14 +01:00
Thomas Gelf 881eba7298 IcingaNotification: deal with missing vars 2022-12-28 11:04:13 +01:00
Thomas Gelf ccc3e510a6 BranchSupportHook: typo 2022-12-28 11:02:17 +01:00
Thomas Gelf 0e6a574372 BranchesDashboard: comma hurts older PHP versions 2022-12-22 17:11:50 +01:00
Thomas Gelf 2ecca2aeba TemplateTree: sort by name
fixes #2691
2022-12-20 14:13:32 +01:00
Thomas Gelf e63870add2 BranchesDashboard: show main branch hint only...
...to users with a preferred branch
2022-12-16 14:39:37 +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 400bf8c0b0 DirectorJob: check for null
Fixes issue with merged PR on PHP 8.1

refs #2680
2022-12-08 13:43:25 +01:00
Christian Maile 4619f8af9b fix wrong type casting 2022-12-08 06:34:19 +01:00
Thomas Gelf ef010f961b IcingaDependencies: allow unknown service...
...with a given specific host

fixes #2669
2022-12-05 12:58:57 +01:00
Thomas Gelf 616d329be3 IcingaNotification: implement users_var
fixes #462
2022-12-01 12:03:45 +01:00
Thomas Gelf 79db37f093 IcingaDependency: improve (cheated) type hint 2022-11-17 11:47:15 +01:00
Thomas Gelf ef29ffd2af DirectorDeploymentLog: allow missing config 2022-11-16 11:18:22 +01:00
Thomas Gelf 51380a9e0b IcingaServiceSet: respect indivicual template zone
fixes #1589
fixes #2356
2022-11-15 17:28:33 +01:00
Thomas Gelf 21bb6c5676 Sync: always store stats w/o (branch) store
fixes #2633
2022-11-03 10:22:38 +01:00
Thomas Gelf b91cbd97b4 SyncUtils: give NULL on nested intermediate NULL
fixes #2474
fixes #2584
2022-11-03 08:07:07 +01:00
Thomas Gelf ab952f89b0 ObjectSetTable: improve formatting
fixes #2648
2022-11-03 00:58:38 +01:00
Thomas Gelf b04f6b7e98 IcingaNotification: improve error message
One more improved exception

refs #2142
2022-11-03 00:23:50 +01:00
Thomas Gelf 63d76abf81 IcingaObject: improve error message
Complain about missing object_type, if assign-related properties cannot be
set because of that reason

refs #2142
2022-11-03 00:20:30 +01:00
Thomas Gelf 693b8fe317 Sync: fix purge for objects with uppercase chars
fixes #2627
2022-11-02 21:12:40 +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 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 470137b5c2 Exporter: don't export UUIDs for non-Icinga objects
fixes #2644
2022-10-25 10:59:16 +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 bfda96f569 DbConnection: deprecate/replace quoteBinary()
Proxies to newer code as a fix, related calls should be substituded
in the long run

fixes #2630
2022-10-18 16:53:06 +02:00
Thomas Gelf deb5b97ea0 DbObjectStore: treat UUID result for PostgreSQL
fixes #2636
2022-10-13 10:58:32 +02:00
Thomas Gelf 91ca8065e3 Sync: fix purge and invalid sync history
fixes #2632
fixes #2627
2022-10-07 12:23:47 +02:00
Thomas Gelf 82269775f4 DbObject: improve "hasBeenModified" logic 2022-10-07 11:20:32 +02:00
Thomas Gelf 2196426ff5 IcingaObject: fix default value for preserve 2022-10-07 10:25:23 +02:00
Thomas Gelf afc7efe4d5 Sync: do not set null if overridden
refs #2623
2022-10-07 10:18:39 +02:00
Thomas Gelf 9a2c0162d2 Sync: respect null properties on merge
fixes #2623
2022-10-07 10:16:37 +02:00
Thomas Gelf 82fbd5359e DbObjectStore: sort by array index, not uuid 2022-10-07 10:12:00 +02:00
Thomas Gelf 773a135220 DbObject: grant access to default properties 2022-10-07 10:12:00 +02:00
Thomas Gelf 6f0c7aa2a3 IcingaObject: allow to replace with plain object 2022-10-07 10:12:00 +02:00
Thomas Gelf f447457c40 Sync: load object w/o branch support the old way
fixes #2618
2022-10-06 13:08:48 +02:00
Thomas Gelf 3c2815d2e9 CoreApi: fix version comparison logic
fixes #2629
2022-10-05 11:14:37 +02:00
raviks789 26e76c611e Reset Limit count and offset for `$table` in HostController::servicesAction
The limit in ObjectsTable::prepareQuery() limits the number of services shown in HostController::servicesAction.
But this limit is required for pagination in ServicesController. Hence, reset the limit when this query is used
in HostController::servicesAction().
2022-10-04 15:33:29 +02:00
Thomas Gelf 560e0e6520 CustomVariables: do not render deleted ones
fixes #2622
2022-09-30 13:47:05 +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
Ravi Kumar Kempapura Srinivasa 2d5d0db77c DirectorJob: fix restoring from snapshot
fixes #2528
2022-09-30 11:40:02 +02:00
Thomas Gelf 54c838666c Job, Import, Sync: fix restore w/o ID 2022-09-30 11:32:16 +02:00
Thomas Gelf 60bdef6752 Sync: create objects with original key...
...and not with the lower-cased comparison key

fixes #2608
2022-09-22 17:37:26 +02:00
Thomas Gelf f2eb06ae39 BranchStore: wipe branched tables, not real ones 2022-09-21 11:51:05 +02:00
Thomas Gelf 0cb6e40681 IcingaService: improve error message 2022-09-21 11:50:26 +02:00
Thomas Gelf ebb08aceae ObjectSetTable: fix for PgSQL when not in branch 2022-09-21 11:00:07 +02:00
Johannes Meyer 3055552728 IcingaObjectQuery: Use `$connection->renderFilter` instead of `whereToSql`
`whereToSql` did support timestamp handling in comparison, though this
class couldn't have made use of it since it had to use a query which
overrides the `isTimestamp` function.
2022-09-21 09:04:29 +02:00
Daniel Patrick 04c4bd2559 IcingaCommand: Remove obsolete CLR check 2022-09-21 08:52:51 +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 c91ff3303c ExtensibleSet: short array syntax, readability 2022-09-20 20:28:05 +02:00
Thomas Gelf 47488d138e ObjectSetTable: fix a PostgreSQL issue 2022-09-20 15:27:16 +02:00
Thomas Gelf b19dd5f62d IcingaServiceSet: use query builder to retrieve...
...services, this is required for branches
2022-09-20 12:55:55 +02:00
Thomas Gelf 59d62d0ff9 ObjectSetTable: branch support 2022-09-20 12:53:00 +02:00
Thomas Gelf a684929cf5 ObjectController: allow Service Sets in Branches 2022-09-20 12:48:26 +02:00
Thomas Gelf 6f173b8392 ObjectsController: pass branch to table 2022-09-20 12:22:05 +02:00
Thomas Gelf 131d4e27ba TableWithBranchSupport: provide setter 2022-09-20 12:20:44 +02:00
Thomas Gelf 4d2f285c01 IcingaServiceSetServiceTable: branch classes 2022-09-20 12:19:31 +02:00
Thomas Gelf 4d8e3f6db7 ServiceSetQueryBuilder: new query builder 2022-09-20 12:19:21 +02:00
Thomas Gelf 39f53b6cee ObjectController: branch hint on create 2022-09-20 12:06:52 +02:00
Thomas Gelf 2a5909917b BranchSupport, Inspection: allow Sets 2022-09-20 12:05:43 +02:00
Thomas Gelf 1fbb4d93b6 BranchedObjectHint: allow no object (create) 2022-09-20 12:03:46 +02:00
Thomas Gelf b35b6b84cc TableWithBranchSupport: do not branchify relations 2022-09-20 12:03:00 +02:00
Thomas Gelf ae0992f196 UuidLookup: host_id VS host in branch 2022-09-20 11:54:10 +02:00
Thomas Gelf 8b1513830c IcingaServiceSet: do not delete Services w/o id 2022-09-20 07:20:29 +02:00
Thomas Gelf 166b862114 PropertyModifierFromLatin1: use iconv 2022-09-19 10:09:52 +02:00
Thomas Gelf e3e92cdb3a AppliedServiceSetLoader: change method visibility
...for fetchAppliedServiceSets()
2022-09-19 07:41:44 +02:00