337 Commits

Author SHA1 Message Date
raviks789
f2702f8737
Make custom properties removable from hosts 2025-05-14 17:29:13 +02:00
raviks789
63047ec393
Add and edit custom variables in the same tab 2025-05-14 17:29:13 +02:00
raviks789
4b8c2c447c
WIP: Add delete functionaltiy to ObjectPropertyForm 2025-05-14 17:29:13 +02:00
raviks789
e4b78b9361
WIP: Alternative custom property support 2025-05-12 09:47:49 +02:00
raviks789
3fcb20178f
Apply correct restrictions to REST url endpoints
The following url end points should apply relevant restrictions to filter out objects and show correct HTTP status code:
- icingaweb2/director/service, if the host name is left out of the query (Example: icingaweb2/director/service?name=service-name)
- icingaweb2/directore/notification
- icingaweb2/director/serviceset
- icingaweb2/director/scheduled-downtime
2025-01-24 12:21:41 +01:00
raviks789
6c766dff43 Allow cloning service sets in Director Branches 2024-11-19 13:34:14 +01: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
cc3bfd5437 BranchHelper: Define method return types 2024-02-05 16:05:24 +01:00
Sukhwinder Dhillon
c25a66b484 Avoid inline css style 2024-01-19 15:17:41 +01:00
Sukhwinder Dhillon
4ef7f5664a ActionController::backend(): Add condition to check which backend should be used
- If both are available
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
604667ca65 Relocate Backend classes 2024-01-15 16:25:02 +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
Sukhwinder Dhillon
89134e0366 Remove obsolate class Backend and its usages
- Create the backend directly in ActionController::backend()
- Simplify the code
2024-01-15 16:24:25 +01:00
Tobias Tiederle
1c6090193d add support for icingadb as only icingaweb2 data backend 2023-12-04 10:12:54 +01:00
Thomas Gelf
a2abbd326b TemplateController: pass auth 2023-10-12 08:43:58 +02:00
Thomas Gelf
48db90c7df ObjectsTable: require Auth
fixes #2808
2023-10-11 12:24:36 +02:00
raviks789
63a3e6a1ec Fix editing of multi-selected services with same name
Since the object names function as keys for the multi-selected objects array, this becomes a problem when
multiple services as the same name. Hence for the services the array keys must be a combination of service name
and the host name to which the service is related.
2023-09-21 14:59:42 +02:00
raviks789
dcd36877ea Make TemplateUsageTables and other tables compatible with director branches
`TemplateUsageTable`, `ApplyRulesTable`, `ObjectsTableSetmembers` and `TemplatesTable` are
made compatible with `director branches`.
2023-09-21 14:57:30 +02:00
raviks789
3c7082cabc Modify IcingaObjectFilterHelper::filterByTemplate for director branches
Icinga objects must be filterable based on templates when a director branch is active.
2023-09-21 14:57:30 +02:00
Ravi Kumar Kempapura Srinivasa
939f805378 Add setmembers summyary line to TemplateUsageTable
`'setmembers' => $this->getSummaryLine('object', 'o.service_set_id IS NOT NULL AND o.host_id IS NOT NULL'),` is added to TemplateUsageTable
and `objects` is set to ` $this->getSummaryLine('object', 'o.service_set_id IS NULL')`. Subsequently, ObjectTableSetMembers
is added which is used in `setmembersAction` in `TemplateController`. `ObjectTableSetMembers` uses service set name or service name
as search columns.
2023-09-21 14:57:30 +02:00
raviks789
fcaa97e1b2 Remove dead class SingleObjectApiHandler 2023-09-21 09:00:55 +02:00
EmTeedee
6b7bff80de ${var} deprecated in favor of {$var}
See: https://www.php.net/manual/en/migration82.deprecated.php#migration82.deprecated.core.dollar-brace-interpolation
2023-07-19 10:44:40 +02:00
Thomas Gelf
40254714b8 Permissions: refactor, fix monitoring module checks
fixes #2712
2023-02-23 11:51:53 +01:00
Thomas Gelf
c643959d06 PreferredBranchSupport: for directorbranches
fixes #2688
fixes #2689
2022-12-16 14:16:02 +01: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
39f53b6cee ObjectController: branch hint on create 2022-09-20 12:06:52 +02:00
Thomas Gelf
956708475e BranchSupport: new helper class 2022-08-31 14:45:28 +02:00
Thomas Gelf
13c09855fa ObjectController: refactor initalization 2022-07-20 09:59:42 +02:00
Thomas Gelf
fe3d5c7076 ObjectsController: fix 8.1 glitch for JSON format 2022-07-15 22:05:56 +02:00
Thomas Gelf
43dddc58aa ObjectsController: allow uuid for MultiSelect
fixes #2466
2022-02-06 19:13:47 +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
6786cc768f Director: some fixes for PHP v8.1
refs #2435
2021-11-24 11:56:18 +01:00
Thomas Gelf
e29c025d64 Service/TemplateController: fix links, use uuids
fixes #2411
2021-10-18 07:27:28 +02:00
Thomas Gelf
a00c91991d ObjectController: refactor Branch usage, give...
...more and better hints
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
2c27446c9f NotInBranchHint: dedicated class, used in our...
...BranchHelper
2021-10-05 23:33:30 +02:00
Thomas Gelf
b898041caa DirectorObjectForm: use Branch, not UUID 2021-08-25 13:00:56 +02:00
Thomas Gelf
bdd9e2b1e5 IcingaCloneObjectForm: do not clone templates...
...in branches. Reason: fields
2021-08-25 11:28:51 +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
1470a134f4 Branch support: initial import 2021-08-16 11:43:09 +02:00
Thomas Gelf
7c553257a6 ObjectController: fail when loading twice 2021-08-16 07:12:06 +02:00
Thomas Gelf
44ca8890f2 ActionController: check view->compact
fixes #2141
2021-07-13 01:01:49 +02:00
Thomas Gelf
c5e25cdcc7 ScheduledDowntime: introduce a new permission...
...and a related name-based restriction

fixes #2086
2021-04-23 12:33:42 +02:00