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
raviks789
124c4e4c17
Add cube links for objects from Icingadb and register the hook
2021-11-24 14:43:41 +01:00
Thomas Gelf
6786cc768f
Director: some fixes for PHP v8.1
...
refs #2435
2021-11-24 11:56:18 +01:00
Markus Frosch
4f959572f2
Add feature to specify a custom endpoint name for a host
...
- Render Endpoint and Zone with a different name per host
- Add custom variable `_director_custom_endpoint_name` to a host with that name
- Update `command_endpoint` behavior in services to use custom var or hostname
- Includes a feature flag that needs to be enabled
2021-10-21 14:59:52 +02:00
Markus Frosch
8237d84cdb
Add feature to specify a custom endpoint name for a host
...
- Render Endpoint and Zone with a different name per host
- Add custom variable `_director_custom_endpoint_name` to a host with that name
- Update `command_endpoint` behavior in services to use custom var or hostname
- Includes a feature flag that needs to be enabled
2021-10-21 14:59:52 +02:00
Thomas Gelf
3d528dc3af
ObjectsTableEndpoint: provide UUID
2021-10-18 17:32:58 +02:00
Thomas Gelf
30c6e50e33
BranchMerger: remove obsolete method call
2021-10-18 13:35:57 +02:00
Thomas Gelf
2d79281583
ApplyRulesTable: use UUIDs
...
refs #2411
2021-10-18 10:04:28 +02:00
Thomas Gelf
ce3ec67eb6
HostServiceBlacklist: fix exception in branches
2021-10-18 07:46:27 +02:00
Thomas Gelf
e29c025d64
Service/TemplateController: fix links, use uuids
...
fixes #2411
2021-10-18 07:27:28 +02:00
Thomas Gelf
7b4e9b4f91
IcingaObject: fix null check for ranges
...
fixes #2408
2021-10-11 17:45:55 +02:00
Thomas Gelf
75e414006d
DbObject: UUID on insert is required
...
fixes #2407
2021-10-08 15:23:17 +02:00
Thomas Gelf
8ec56ff16e
DbObject: allow to set loaded properties
2021-10-05 23:33:30 +02:00
Thomas Gelf
2994403aa8
DbObject: allow arrays in fromDbRow, handle errors
2021-10-05 23:33:30 +02:00
Thomas Gelf
f0d63ad23b
DbObject: add UUID support
2021-10-05 23:33:30 +02:00
Thomas Gelf
fe97970dc3
IcingaCommandArgumentTable: branch-specific fixes
2021-10-05 23:33:30 +02:00
Thomas Gelf
97b2f6c946
CommandController: branch support, argument table
2021-10-05 23:33:30 +02:00
Thomas Gelf
2b62742362
UuidLookup: initial import
2021-10-05 23:33:30 +02:00
Thomas Gelf
a00c91991d
ObjectController: refactor Branch usage, give...
...
...more and better hints
2021-10-05 23:33:30 +02:00
Thomas Gelf
649a5dbe5e
BranchedObject: initial import
2021-10-05 23:33:30 +02:00
Thomas Gelf
09c9a9db72
DirectorObjectForm: use new DbObjectStore
2021-10-05 23:33:30 +02:00
Thomas Gelf
2dc83478ae
IcingaHostServiceTable: support Branches
2021-10-05 23:33:30 +02:00
Thomas Gelf
c994610031
DirectorObjectForm: hidden id field, start...
...
...fading it out - don't want to see this here
2021-10-05 23:33:30 +02:00
Thomas Gelf
8560abfaa7
DbObjectStore: refactor, drop load() for now
2021-10-05 23:33:30 +02:00
Thomas Gelf
57c4dda117
Objects/*, CVs, others: unify setBeingLoadedFromDb
2021-10-05 23:33:30 +02:00
Thomas Gelf
835d01cdec
IcingaObject: disabled = null is not a thing
2021-10-05 23:33:30 +02:00
Thomas Gelf
84c299a7db
Table/Object*: use UUIDs
2021-10-05 23:33:30 +02:00
Thomas Gelf
ce13200832
DbObjectTypeRegistry: new helper methods
2021-10-05 23:33:30 +02:00
Thomas Gelf
1845b43314
ObjectsTable: we have UUIDs now, new column names
2021-10-05 23:33:30 +02:00
Thomas Gelf
73884536df
ServiceActions: formatting
2021-10-05 23:33:30 +02:00
Thomas Gelf
8601f26f03
BranchSupportHook: drop linkToBranchedObject
2021-10-05 23:33:30 +02:00
Thomas Gelf
b12d50a16a
HostgroupRestriction: do not fail on hosts w/o ID
2021-10-05 23:33:30 +02:00
Thomas Gelf
70c0b8f247
BranchActivityTable: new columns, better query
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
Thomas Gelf
59f6051623
Branch: use new ts_merge_request column
2021-10-05 23:33:30 +02:00
Thomas Gelf
f7d100ea24
Branch: remove outdated classes
2021-10-05 23:33:30 +02:00
Thomas Gelf
5483093959
MergeError: support BranchActivity
2021-10-05 23:33:30 +02:00
Thomas Gelf
2b24e9bcf8
BranchedObjectHint: move, support BranchedObject
2021-10-05 23:33:30 +02:00
Thomas Gelf
2f1a47c34a
PlainObjectPropertyDiff: diff calculation
2021-10-05 23:33:30 +02:00
Thomas Gelf
654f845e4e
Json: implement decodeOptional() for null support
2021-10-05 23:33:30 +02:00
Thomas Gelf
c2d7b235a5
IcingaConfigDiff: replace duplicate code
2021-10-05 23:33:30 +02:00
Thomas Gelf
5aba966a4b
IcingaCommandArgument: use a combined key
2021-10-05 23:33:30 +02:00
Thomas Gelf
792ff03a6d
Objects: add uuid column
2021-10-05 23:33:30 +02:00
Thomas Gelf
65bbaa9f98
IcingaObject: custom vars, also load them only...
...
...when we got an id
2021-10-05 23:33:30 +02:00
Thomas Gelf
182d1b519b
IcingaObject: do not load groups when we have...
...
...no id. With branches this is now possible
2021-10-05 23:33:30 +02:00
Thomas Gelf
1a5df745e3
IcingaObject: add some type-hints
2021-10-05 23:33:30 +02:00
Thomas Gelf
a29efe478c
IcingaArguments: remove Argument set to null
2021-10-05 23:33:30 +02:00
Thomas Gelf
5494ab29bd
BranchActivity: dedicated class
2021-10-05 23:33:30 +02:00
Thomas Gelf
2c27446c9f
NotInBranchHint: dedicated class, used in our...
...
...BranchHelper
2021-10-05 23:33:30 +02:00
Thomas Gelf
a1fb42878c
BranchSettings: some generic settings and helpers
2021-10-05 23:33:30 +02:00
Ravi Kumar Kempapura Srinivasa
90b5f6fdac
Convert $imports keys to string explicitly
...
The keys of $imports in IcingaObjectImports must be converted to string explicitly or else it establishes incorrect parent-child relation
in icinga_host_inheritance table in case the key is integer value and there is an host object with id = key(integer) icinga_host table.
This results in undefined offset while triggering sync rule.
2021-10-01 10:47:54 +02:00
Ravi Kumar Kempapura Srinivasa
6289bf065f
Pass $resolved as False for arguments to toPlainObject()
...
IcingaArguments passes the $resolved through to the individual argument in the toPlainObject. There lies the error,
simply pass false - because the argument itself cannot have any parents and therefore cannot be resolved
2021-10-01 10:47:12 +02:00
Thomas Gelf
378ef5d686
ObjectsTable, Infra: fix method signature
...
fixes #2395
2021-09-23 07:32:35 +02: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
de4378cfd3
DbObjectTypeRegistry: support 'serviceset'
2021-09-09 16:17:42 +02:00
Johannes Meyer
82ae0dc52e
Host|ServiceActions: Don't check object access if monitoring isn't active
2021-09-01 10:35:32 +02:00
Thomas Gelf
435b1f9b1d
BranchModificationStore: centralize encoding rules
2021-08-26 10:18:06 +02:00
Thomas Gelf
6cc902f238
BranchesDashboard: do not fail with no dashlet
2021-08-25 16:24:54 +02:00
Thomas Gelf
b898041caa
DirectorObjectForm: use Branch, not UUID
2021-08-25 13:00:56 +02:00
Thomas Gelf
8a280619ad
DbObjectStore: load by ID for int keys
2021-08-25 12:14:22 +02:00
Thomas Gelf
430f54837b
DeployedConfigInfoHeader: do not re-deploy...
...
...when being in a branchDeployedConfigInfoHeader: do not re-deploy...
...when being in a branchDeployedConfigInfoHeader: do not re-deploy...
...when being in a branchDeployedConfigInfoHeader: do not re-deploy...
...when being in a branchDeployedConfigInfoHeader: do not re-deploy...
...when being in a branchDeployedConfigInfoHeader: do not re-deploy...
...when being in a branchDeployedConfigInfoHeader: do not re-deploy...
...when being in a branchDeployedConfigInfoHeader: do not re-deploy...
...when being in a branchDeployedConfigInfoHeader: do not re-deploy...
...when being in a branch
2021-08-25 11:38:29 +02:00
Thomas Gelf
bdd9e2b1e5
IcingaCloneObjectForm: do not clone templates...
...
...in branches. Reason: fields
2021-08-25 11:28:51 +02:00
Thomas Gelf
dfdec95358
IcingaObjectModification: allow to pass db
...
fixes an issue with related objects on create
2021-08-25 00:54:30 +02:00
Thomas Gelf
44b749f2bf
BranchModificationStore: cast eventual objects
2021-08-24 18:47:13 +02:00
Thomas Gelf
23f1fae784
BranchModificationStore: fix serialization
2021-08-24 18:46:55 +02:00
Thomas Gelf
607f53fecc
BranchesDashboard: prominent hint -> active branch
2021-08-24 16:33:16 +02:00
Thomas Gelf
b321327634
Dashboard: provide space for Branch Hook dashlets
2021-08-24 16:13:22 +02:00
Thomas Gelf
15adce142f
ObjectModificationBranchHint: variants, details
2021-08-23 09:01:03 +02:00
Thomas Gelf
290e34a8ca
ObjectsTable: add branchUuid, fail-safe
2021-08-23 09:00:26 +02:00
Thomas Gelf
6ff5b0c8d7
ConfigHealthItemRenderer: ask branch for count
2021-08-23 08:58:02 +02:00
Thomas Gelf
085cec0eb7
BranchedObjectsHint: new hints for lists
2021-08-23 08:56:16 +02:00
Thomas Gelf
48ac87cff5
ObjectController: hook has been updated
2021-08-23 08:55:30 +02:00
Thomas Gelf
d83a0aaba5
BranchHelper: use BranchStore
2021-08-23 08:54:34 +02:00
Thomas Gelf
04f3c6363e
BranchSupportHook: smaller changes
2021-08-23 08:53:40 +02:00
Thomas Gelf
5002f7a6bf
IcingaObjectModification: loop with an array
2021-08-23 08:53:22 +02:00
Thomas Gelf
2897415a1f
BranchStore: centralized repository
2021-08-23 08:52:12 +02:00
Thomas Gelf
c79045e9e2
Branch: add a bunch of properties and getters
2021-08-23 08:50:44 +02:00
Thomas Gelf
1470a134f4
Branch support: initial import
2021-08-16 11:43:09 +02:00
Thomas Gelf
38d17af92e
DirectorObjectForm: remove unused property
2021-08-16 11:22:50 +02:00
Thomas Gelf
44a90afea2
DbSelectParenthesis: allow to defer Db Expr...
...
...stringification when required to apply parenthesis (-> union)
2021-08-16 10:51:57 +02:00
Thomas Gelf
7c553257a6
ObjectController: fail when loading twice
2021-08-16 07:12:06 +02:00
Thomas Gelf
f0deb11e7f
IcingaObject: no empty vars for unmodified plain
2021-08-16 06:33:34 +02:00
Thomas Gelf
1d5b00a675
IcingaObject: unify DB boolean value converter
...
Hint: fixes booleans for "plain unmodified" objects
2021-08-16 06:33:23 +02:00
Thomas Gelf
77fca39ff3
IcingaObject: getAppliedGroups with id=null
2021-08-16 06:21:50 +02:00
Thomas Gelf
21dcadd143
Db: remove unused properties
2021-08-16 06:17:46 +02:00
Thomas Gelf
5de3a6a497
Db: clean up methods related to binary PG data
2021-08-16 06:14:34 +02:00
Thomas Gelf
62a31c7858
DbObject: some cleanup
2021-08-16 06:02:36 +02:00