Commit graph

284 commits

Author SHA1 Message Date
Eric Lippmann
7bb09036fc Fix const visibility 2025-10-21 14:56:41 +02:00
Johannes Meyer
0148f4f510 db: Use an alias for *_customvar through tables
fixes #1162
2025-07-14 15:47:45 +02:00
Sukhwinder Dhillon
24fceca424 DependencyNode: Use static call to avoid unnecessary columns in case of summary query 2025-07-10 13:12:37 +02:00
Sukhwinder Dhillon
eed9a3bc04 Move the HostController::joinFix() method to DependecyNode
- Centerlize the method
2025-07-10 09:17:50 +02:00
Sukhwinder Dhillon
844a54a418 Host|Service: Add missing relation unreachable_parent
- Remove obsolete property php-doc
2025-07-07 11:59:27 +02:00
Sukhwinder Dhillon
d5682944ab RedundancyGroupSummary: Add missing @property phpDoc annotation 2025-06-17 15:08:48 +02:00
Sukhwinder Dhillon
eb7179ffd8 RedundancyGroupSummary: Use DepenedecyNode as base to apply restrictions correctly
* RedundancyGroupSummary:
  - Columns are same as in DependencyNodeSummary. Column `redundancy_group.state.failed` excluded because not required here.
  - Don't sort by default. Sorting the summary is not necessary and even fails for PostgreSQL as it would require adding the column to the GROUP BY clause.
  - Introduce new method for(), to easily get the summary query for given group id. Adjust filter. The summary is always for parent (member).
2025-06-17 15:08:48 +02:00
Sukhwinder Dhillon
0e7c4fcc2d
Change column defination labels of user and usergroup (#1224) 2025-06-17 15:05:39 +02:00
Sukhwinder Dhillon
34f584f2d2 DependencyEdgeState: Remove column defination
This defination is (1) showing technical relation path (2) not usefull.
2025-06-16 17:28:59 +02:00
Sukhwinder Dhillon
e26db03e19 Deprecate Icingadb\Model\Behavior\BoolCast and use \ipl\Orm\Behavior\BoolCast instead 2025-06-11 14:25:56 +02:00
Sukhwinder Dhillon
9283135144 Support new column is_sticky_acknowledgement 2025-06-11 14:24:36 +02:00
Johannes Meyer
54b3d3ad7a Instance: Add new column icingadb_version 2025-06-11 12:13:51 +02:00
Sukhwinder Dhillon
0b5a34b4e1 Models: Register the to 1 relations first to display them first in the search suggestions 2025-06-11 11:34:37 +02:00
Johannes Meyer
af3fa8a112 Introduce model SlaHistoryDowntime 2025-06-05 13:16:38 +02:00
Johannes Meyer
de160ebd12 Introduce model SlaHistoryState 2025-06-05 13:16:38 +02:00
Johannes Meyer
0f81a7c3fb DependencyEdgeState: Add relation edge 2025-05-21 17:14:30 +02:00
Johannes Meyer
04b8e220fd usergroup: Rename to contactgroup 2025-04-10 15:04:41 +02:00
Johannes Meyer
9ea5d70512 users: Rename to contacts 2025-04-10 15:04:41 +02:00
Johannes Meyer
adaa80fb4c Host|ServiceState: Add missing definition for scheduling_source 2025-04-01 11:54:47 +02:00
Markus Opolka
87ba9195ef Fix typo in Model/Host and Model/Service 2025-04-01 11:53:33 +02:00
Johannes Meyer
2a79f2fef2 UnreachableParent: Match unreachable services at the root
A service that has no parent but is unreachable, has a host
which marks it as such. In other words, an implicit dependency.

As long as we don't fully support implicit dependencies,
such a service must be shown as root problem. Otherwise,
the message about insufficient access rights is shown.
2025-03-31 17:10:41 +02:00
Johannes Meyer
ee304ab34b RedundancyGroup: Fetch summary as part of a default property 2025-03-28 16:13:16 +01:00
Johannes Meyer
e749094431 Host|Service: Rename affected_children to total_children 2025-03-06 14:50:23 +01:00
Johannes Meyer
f8114151a3 RedundancyGroupState: Add missing column definitions 2025-03-03 14:00:05 +01:00
Sukhwinder Dhillon
41601abff7 (Host|Service)Controller: Sort parents children tab list by default to severity
- Disable the default sorting for the `$hasDependencyNode` and UnreachableParent's `$rootQuery`, as sort is not required here
and triggers an error, because the sort columns are not retrieved.
2025-01-22 13:44:32 +01:00
Sukhwinder Dhillon
2e0ed5999e Models: Add missing parent & child relation 2025-01-20 10:50:18 +01:00
Johannes Meyer
0b51376820 UnreachableParent: Don't filter for group states
Since child edges of a group now have state as well,
filtering for the group's state is not required anymore.
2025-01-15 16:39:50 +01:00
Johannes Meyer
e5b499bbdb UnreachableParent: Eliminate duplicate nodes
Nodes might be referenced by multiple independent paths, which
might lead to the same root problem multiple times.
2025-01-15 16:39:50 +01:00
Johannes Meyer
c42d469293 UnreachableParent: Properly retrieve child_id with postgres 2025-01-15 15:44:21 +01:00
Johannes Meyer
c2549fa9eb UnreachableParent: Use driver specific types in CAST expressions 2025-01-15 15:02:41 +01:00
Johannes Meyer
8d39fa30d9 DependencyNode: Cast boolenum to int where applicable
PostgreSQL doesn't like mixing different types with COALESCE()
2025-01-15 15:02:41 +01:00
Johannes Meyer
1eb1e72b6d
Hide unreachable parents in root problems (#1073) 2025-01-15 15:01:49 +01:00
Johannes Meyer
8e5a8161f4 DependencyEdge: Add column id and make it the pk 2025-01-15 13:15:20 +01:00
Sukhwinder Dhillon
dd744395c7 Keep compatibility with Icinga DB mysql v6 & pgsql v4 2025-01-14 13:13:25 +01:00
raviks789
46577ff26b Add column environment_id to the models related to the dependency feature 2025-01-14 11:43:12 +01:00
Johannes Meyer
ffd51260d7 Keep compatibility with Icinga DB v5 2024-12-18 16:27:06 +01:00
Johannes Meyer
30269efbe2 ui: Change visualization of redundancy group states
They can now be unreachable, thus get the same icon as others.
The state then isn't about reachability anymore, so it's just
critical or ok.
2024-12-17 17:53:02 +01:00
Johannes Meyer
e1ccc25961 UnreachableParent: Only fetch responsible nodes
A node is responsible if:

* it's a host which is reachable but has a problem
* it's a service which is reachable but has a problem
* it's a redundancy group which is reachable but has failed
2024-12-17 17:53:02 +01:00
Johannes Meyer
29ada79e96 db: Add is_reachable to RedundancyGroupState 2024-12-17 17:51:11 +01:00
Johannes Meyer
945eb5f9ae db: Update models to reflect latest schema updates 2024-12-17 17:50:42 +01:00
Sukhwinder Dhillon
299ca1f7d6 UnreachableParent: Fetch from_node_id column as child_id
This column is required to make prepare the path chain of root-problem
2024-12-17 17:35:30 +01:00
Johannes Meyer
eeb56ff33c db: Add model for the schema table 2024-12-17 16:33:05 +01:00
Sukhwinder Dhillon
d7cac9def9 RedundancygroupController:: add some optimizations
- Use Translation trait's translate() method
 - Add sort columns to DependencyNode
2024-11-19 17:44:55 +01:00
Sukhwinder Dhillon
1bcfbc5341 Introduce class RedundancyGroupDetail
rg-detail
2024-11-19 16:55:17 +01:00
Sukhwinder Dhillon
e426edde85 Models: Add missing columns and methods
RedundancyGroupSummary: Add columns for `(un)acknowledged` count
2024-11-14 16:35:07 +01:00
Johannes Meyer
e96f2a4dfc add-some-mssing-reltions 2024-11-14 15:46:11 +01:00
raviks789
ee0a4fd961
UnreachableParent: Change parent class to DependencyNode 2024-10-31 09:46:52 +01:00
raviks789
7aecb99023
RedundancyGroupState: change state texts to 'unreachable' or 'reachable'
The state text is only necessary to add css rules for state-balls and not be used to show the
state text of the group.
2024-10-31 09:46:52 +01:00
raviks789
e22bd1bde8
Show root problem list for objects with problem and are part of dependency 2024-10-31 09:46:49 +01:00
raviks789
0e67df510a
Add HasProblematicParent behavior for service 2024-10-30 17:00:13 +01:00