Commit Graph

3160 Commits

Author SHA1 Message Date
Thomas Gelf ab4b5807be RestApi: introduce RestApiParams, use Exporter
fixes #2568
2022-07-20 08:21:34 +02:00
Thomas Gelf cb355f9b90 Exporter: support property filters
refs #2568
2022-07-20 08:13:25 +02:00
Thomas Gelf 164d1f5874 Command: fail() should show a readable message
fixes #2567
2022-07-20 06:44:41 +02:00
Thomas Gelf 0a25e256d1 ObjectCommand: formattingtt 2022-07-20 06:38:13 +02:00
Thomas Gelf 9775922975 ObjectCommand: support JSON via STDIN
fixes #1570
2022-07-20 06:37:06 +02:00
Thomas Gelf 2821b0721d IcingaObjectsHandler: send error message, not trace 2022-07-19 12:26:51 +02:00
Thomas Gelf cb58573558 SimpleNote: do not fail on invalid content 2022-07-18 12:14:20 +02:00
Thomas Gelf c586b2c194 ObjectCommand, Exporter: hosts with services
fixes #2565
2022-07-18 11:35:46 +02:00
Thomas Gelf 05d7e137c2 IcingaArguments: clarify reason for missing DSL...
...in External Commands imported via Icinga 2 API

fixes #2557
2022-07-18 10:08:51 +02:00
Thomas Gelf fe3d5c7076 ObjectsController: fix 8.1 glitch for JSON format 2022-07-15 22:05:56 +02:00
Thomas Gelf f24f8eb287 IcingaObject: more details in comment 2022-07-12 11:28:54 +02:00
Thomas Gelf 050553164d ServiceCommand: allow magic overrides
fixes #2560
2022-07-12 11:27:42 +02:00
Thomas Gelf 922b19397c IcingaObject: resolve related properties when...
...telling an object to be "unmodified"

fixes #2559
2022-07-12 10:02:58 +02:00
Thomas Gelf d13919681a IcingaEndpoint: give meaningful error...
...when trying to get an ApiUser where there is no such
2022-07-12 10:00:58 +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 6d5c48125e Command: remove custom JSON logic 2022-07-11 10:03:23 +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 14317a9c20 css, QuickForm: style director-form only 2022-07-01 08:38:33 +02:00
Thomas Gelf 56f81b91bb Exporter: centralize export logic
fixes #2549
2022-06-24 12:52:35 +02:00
Thomas Gelf ef80b6b8bc DictionaryToRow: new property modifier
fixes #2555
2022-06-24 12:26:01 +02:00
Thomas Gelf 9a0279b111 UuidLookup: do not enforce service objects
fixes #2487
fixes #2554
2022-06-24 10:37:09 +02:00
Ibrahim Khalifa 4b229c122c Handle cases when gipfl/linux-health returns false instead of memory usage. 2022-06-24 08:55:09 +02:00
Thomas Gelf 75b73604a8 SyncRule: remove unused property 2022-06-20 09:59:01 +02:00
Thomas Gelf 31c06d8156 ObjectCommand: use real/file-based renderer
fixes #2550
fixes #2204
2022-06-20 09:57:07 +02:00
raviks789 9e8142b79a Avoid passing `null` to `strlen` in SyncJob::addSettingsFormFields() 2022-06-08 16:15:42 +02:00
Patrick Dolinic 4692b28dbd PropertyModifier: Replace Null with String 2022-04-20 14:46:37 +02:00
raviks789 67eb4c1e90 Prevent inserting blank entries for extensible data list. 2022-04-20 08:26:46 +02:00
Thomas Gelf 0539819d4c ConditionalDeployment, ConfigCommand: wording
fixes #2523
2022-04-13 14:07:24 +02:00
Thomas Gelf 11f621df30 IcingaServiceSet: do not eport the UUID for now
fixes #2488
2022-04-05 08:48:42 +02:00
raviks789 e134f80093 Cleanup IcingaDbCubeLinks with getObjectsFilter provided by IcingaDbCube. 2022-03-28 15:39:49 +02:00
moreamazingnick 83cc12944d
DirectorActivityLog: fix empty activity log exception
fixes #2505: empty activity log causes exception
fixes #2506
2022-03-28 14:52:46 +02:00
Thomas Gelf 9afa3313ab cli: implement deployment grace period and...
...refactor/restructure related code to achieve the same behavior on CLI and
via automated job

fixes #2499
2022-03-22 10:46:36 +01:00
raviks789 71f3654c0b Fix sync rule restore from snapshot on name change
On name change new Sync rule would be created, hence we do not have to preserve the Sync rule Ids in SyncRule::import() method.
2022-03-17 14:55:35 +01:00
Thomas Gelf ccd6f4266a DbObject: exists() must check for UUID column
fixes #2475
2022-02-24 16:38:48 +01:00
Thomas Gelf 0806749055 de_DE: refresh translation 2022-02-17 16:36:49 +01:00
Thomas Gelf 0f1ef78815 IcingaArguments: remove superfluous semicolon 2022-02-17 15:37:44 +01:00
Thomas Gelf 984e931954 BasketSnapshot: support datafield categories
fixes #2256
2022-02-16 23:14:38 +01:00
Thomas Gelf 1cfc0c427c ActivityLogInfo: show remarks
refs #2471
2022-02-15 21:13:24 +01:00
Thomas Gelf aeef51ffa6 IcingaArguments: allow to restore set_if_format
fixes #2291
2022-02-09 21:59:53 +01:00
Thomas Gelf ecf7bce482 ActivityLogTable: use more space, hover texts 2022-02-09 15:43:09 +01:00
raviks789 4f38557374 Prevent deletion of data lists that are in use.
Deletion of data lists which are used in icinga objects (through custom variables) or in sync rules is prevented.
2022-02-09 15:17:47 +01: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
Lucas Bickel 3590f725eb fix: use bell icon for notifications 2022-02-06 19:34:03 +01:00
Thomas Gelf 43dddc58aa ObjectsController: allow uuid for MultiSelect
fixes #2466
2022-02-06 19:13:47 +01:00
Thomas Gelf 9a2d165583 BranchedObjectHint: 404 when deleted 2022-02-06 19:09:30 +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 d615ce932c DirectorObjectForm: do not return void 2022-02-06 11:48:03 +01:00
Thomas Gelf 6db30263d0 DirectorObjectForm: allow host (w/o id) in main 2022-02-06 11:47:41 +01:00
Thomas Gelf 2845be7542 DirectorObjectForm: remove unused method 2022-02-06 11:47:23 +01:00
Thomas Gelf 818ee7a01a DirectorObjectForm: don't set vals twice on create 2022-02-06 11:46:22 +01:00
Thomas Gelf b7aa578dee IcingaHost: filter internal properties from enum 2022-02-06 11:41:20 +01:00
Thomas Gelf eddaf7c9a4 IcingaObject: some cleanup 2022-02-06 11:39:03 +01:00
Thomas Gelf 891b6112aa IcingaObject: ignore uuid when resolving properties 2022-02-06 11:37:01 +01:00
Thomas Gelf 324cc9ed5b IcingaObject: do not unset unresolved related...
...properties, as long as they do not give us an object with an ID.
This is the case when adding new services to hosts which exist in a
branch only, and will no longer be a problem once our internal caches
work with UUIDs
2022-02-06 11:35:00 +01:00
raviks789 b04fe28932 Delete newly added Services in Service Set when restoring it from snapshot
The Services which were added into the Service Set after the snapshot was created
must be deleted when the Service Set is being restored from the snapshot.
2022-01-24 15:26:48 +01:00
Johannes Meyer 420dfcbdbf Avoid passing non-string args to `ctype_*()` functions 2022-01-14 11:31:55 +01:00
Thomas Gelf 2712275c45 DeploymentStatus: fix method signature, use getter 2022-01-10 18:44:45 +01:00
Thomas Gelf 31a66b6619 DeploymentStatus: little fix, formatting 2022-01-10 18:20:08 +01:00
Thomas Gelf 251cd309be DeploymentStatus: fix CLI command for PostgreSQL
fixes #2260
2022-01-10 18:18:09 +01:00
Thomas Gelf 0fcbc2783b IcingaServiceSet: load services by UUID
fixes #2454
2022-01-10 13:31:25 +01:00
Thomas Gelf 274c153837 various: PHP8.1-related warnings 2022-01-10 11:44:33 +01:00
Thomas Gelf 2113484b20 IcingaArguments: fix delete 2022-01-09 21:42:39 +01:00
Thomas Gelf 87a16f11fa DbObject: fix Command Argument creation
fixes #2453
2022-01-09 21:36:40 +01:00
Thomas Gelf 36babe65f7 IcingaServiceSetServiceTable: use host uuid for...
...Set Member related to host
2021-12-23 13:46:37 +01:00
Thomas Gelf caccecded6 IcingaHost: ignore warning 2021-12-23 13:46:04 +01:00
Thomas Gelf 2e01e181aa DbObject: exists should return false...
...in case there is no related uuid

refs #2434
2021-12-23 10:30: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 212596a41e ObjectSetTable: drop name from link 2021-12-23 10:07:07 +01:00
Thomas Gelf 673c1c520e DirectorDeploymentLog: do not query empty stage
fixes #2426
2021-12-22 11:46:18 +01:00
Thomas Gelf a86c751c33 Cube, BranchedObject: formatting 2021-12-22 11:45:57 +01:00
Thomas Gelf c7cba433ed DbObject: indentation 2021-12-21 14:18:56 +01:00
Thomas Gelf 68814e0de6 IcingaObjectImports: fix PHP 8.1 notice 2021-12-21 09:01:06 +01:00
Thomas Gelf 27e5e72f41 ObjectsTable: do not apply restrictions to objects
...created in the current config branch
2021-12-17 17:16:50 +01:00
Thomas Gelf f77d5b8d0c HostController: show services for hosts created...
...in a branch
2021-12-17 13:57:18 +01:00
Thomas Gelf e3cae7c20a ObjectsTable: remove outdated/duplicate method 2021-12-17 13:56:37 +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 7f22c12f9f Host/ObjectController: no sets in branches 2021-12-17 08:06:20 +01:00
Thomas Gelf 60104327bf ObjectController: add some branch-related hints 2021-12-14 10:46:52 +01:00
Thomas Gelf b07ee0dd8e TemplatesTable: use uuid for history link 2021-12-14 10:42:48 +01:00
Thomas Gelf 68cf42490f Importsource: some more branch-related hints 2021-12-14 08:36:08 +01:00
Thomas Gelf bfdcafca52 Ranges: common class, fix store/delete issues
This removes duplicate code, fixes some issues introduced with UUIDs and does
some cleanup

fixes #2415
fixes #2442
2021-12-14 08:33:50 +01:00
Thomas Gelf eeaf3a84e3 ActivityLogTable: no text search for action
fixes #2057
2021-12-13 14:47:30 +01:00
Thomas Gelf 27abbb59a0 ObjectsTableService: replace HostServiceTable
This removes duplicate logic and shows services created in config
branches
2021-12-13 14:11:35 +01:00
Thomas Gelf b70b19ad32 Dashlet, Kickstart: fix translatable strings
fixes #2405
2021-12-13 13:36:26 +01:00
Thomas Gelf f35ded85fb ArrayCustomVariablesFilter: check for type (PHP81) 2021-12-13 13:35:16 +01:00
Yonas Habteab ef4068ebde Move css styles from `SelfService` to module.less 2021-12-13 13:09:36 +01:00
Thomas Gelf 100bc4b777 library: php8-related cleanup 2021-12-06 23:03:06 +01:00
Thomas Gelf 257537d022 DbUtil: helper for pgsql binary resource handling 2021-12-06 22:11:31 +01:00
Thomas Gelf e27cda645d JobDetails: fix null issue 2021-12-06 21:36:56 +01:00
Thomas Gelf 37db546a0d ObjectsTableHostTemplateChoice: fix method params 2021-12-01 23:50:29 +01:00
Thomas Gelf 215988c3ca library: some hints for PHP 8.1 2021-12-01 23:50:04 +01:00
Ravi Kumar Kempapura Srinivasa 388c79e430 Add uuid to service sets. 2021-11-28 11:15:31 +01:00
Thomas Gelf 5fe0a8812c Monitoring permissions for single services only 2021-11-28 11:13:28 +01:00
Thomas Gelf 82656de2c2 Director: some PHP 8.1-related changes 2021-11-28 11:13:08 +01:00