Commit graph

2574 commits

Author SHA1 Message Date
Eric Lippmann
7bb09036fc Fix const visibility 2025-10-21 14:56:41 +02:00
Eric Lippmann
7fa28b9c9f Fix missing space after NOT operator 2025-10-21 14:56:41 +02:00
Eric Lippmann
0a94c1dab2 Remove phpunit.xml
Use defaults from new workflows.
2025-10-21 14:56:41 +02:00
Eric Lippmann
4fb9bc192e Remove .phpcs.xml
Use defaults from new workflows.
2025-10-21 14:56:41 +02:00
Eric Lippmann
b87745d09f GitHub Actions: Use new PHP workflows 2025-10-21 14:56:41 +02:00
Lorenz Kästle
b5eed40255
Add notice about HTTP method POST to the HTTP API documentation (#1274)
The HTTP API documentation omits the fact, that the HTTP method `POST`
is required
for all endpoints which change things.
This PR aims to mention that explicitely to ease API adaption.
2025-08-28 08:57:58 +02:00
Johannes Meyer
fa23e86ae7
Release v1.2.2 (#1255) 2025-07-16 10:11:26 +02:00
Johannes Meyer
9f1ddf7536 module.info: Raise version to 1.2.2 2025-07-16 10:05:36 +02:00
Johannes Meyer
44eb8f5f67 Update CHANGELOG.md 2025-07-16 10:05:36 +02:00
Copilot
54702e1271
Fix multiple downtime deletion permission issue (#1257) 2025-07-15 16:00:33 +02:00
Johannes Meyer
93869319b3 Auth: Apply filter/hosts and filter/services to dependency queries
refs #1242
2025-07-14 15:49:14 +02:00
Johannes Meyer
0148f4f510 db: Use an alias for *_customvar through tables
fixes #1162
2025-07-14 15:47:45 +02:00
Johannes Meyer
67baaf528c Comment|DowntimeDetail: Use correct filter for removal
Since #1060, comments/delete and downtimes/delete try to use
`ObjectAuthorization`'s cache properly and override `CommandAction`'s
`isGrantedOnType()`. Though, the filter is applied to the host
and service model as a result, and not to the downtime model. This
way, downtime filters MUST be absolute, just like filters provided
by the search bar. Otherwise `name=downtime-name` will be translated
to e.g. `host.name=downtime-name` which obviously cannot match.

fixes #1245
2025-07-14 09:39:17 +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
32b31f3e44 RedundancyGroupDetail: Eliminate duplicate nodes
This change was missing in: e5b499bbdb
2025-07-07 10:02:04 +02:00
Johannes Meyer
c985bd46ad module.info: Raise version to 1.2.1 2025-06-23 07:59:33 +02:00
Johannes Meyer
bff8fb94aa Update AUTHORS 2025-06-23 07:49:01 +02:00
Eric Lippmann
28beb292e9 Test IcingaHealth::normalizeVersion() 2025-06-20 10:13:00 +02:00
Alvar Penning
3e0bd96ec6 IcingaHealth: Fix version comparison
There are multiple possible outputs for an Icinga DB version. The
package version contain the git tag, with a leading "v". The development
version mimics git-describe(1), including a commit hash separated by a
dash after the semantic version.

The current version comparison uses PHP's builtin version_compare().

This results in leading "v"s to return invalid results. Furthermore, it
treats everything behind the version as an "any string"[^0], which is
smaller than dev, alpha, beta, and so on. Thus, any git-describe(1)
version of Icinga DB 1.4.0 would be considered smaller as 1.4.0.

Fixes #1230.

[^0]: https://www.php.net/manual/en/function.version-compare.php
2025-06-20 10:13:00 +02:00
Johannes Meyer
4296d0d385
Release v1.2.0 (#1227) 2025-06-18 11:52:45 +02:00
Johannes Meyer
c2b260da83 Update doc/05-Upgrading.md 2025-06-18 11:40:57 +02:00
Johannes Meyer
fde7cf23f8 Update CHANGELOG.md 2025-06-18 11:12:40 +02:00
Johannes Meyer
b47ad8da49 Raise version and requirements 2025-06-18 11:12:40 +02:00
Johannes Meyer
6bb3631313 Update AUTHORS 2025-06-18 11:12:40 +02:00
Johannes Meyer
cb606cc263 Update .mailmap 2025-06-18 11:12:40 +02:00
Johannes Meyer
3a583811a3 IcingaHealth: Switch to critical in case Icinga DB is too old
The old redis schema is incompatible with v1.2.0 hence the
health check should report a critical incident instead.

Also updates the health view to show a proper message.
2025-06-18 11:12:19 +02:00
Johannes Meyer
347089414a css: Use proper flex layout to align redundancy group summaries
fixes #1222
2025-06-18 08:20:51 +02:00
Johannes Meyer
b703552e65
Fix Host/Service restrictions do not work for RedundanyGroup (#1221)
fixes https://github.com/Icinga/icingadb-web/issues/1220
2025-06-17 15:23:32 +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
823a575616 RedundacyGroupController: Fetch redundancy_group through DependencyNode to apply restrictions correctly 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
Ravi Kumar Kempapura Srinivasa
d0ffba3d91
ObjectSuggestions: Prioritze Column suggestions and best suggestions (#1215)
Show custom variable suggestions only if the column suggestions have not
consumed all the slots (50).

fixes #1206
2025-06-13 13:23:48 +02:00
Sukhwinder Dhillon
b5040b2fae EventRenderer: Fix soft_state event visual
- Only the CheckAttempt visual must be skipped in case $layout is minimal|header, not the whole condition body.
2025-06-13 08:13:12 +02:00
Sukhwinder Dhillon
223de33df3 ObjectList: Don't add multiselect url to member/childen list items of RedundancyGroup
- These lists do not support multiselect
2025-06-13 08:07:43 +02:00
Johannes Meyer
a32a0ac3b6
Support new column is_sticky_acknowledgement (#1202)
resolves: https://github.com/Icinga/icingadb-web/issues/1197

- requires: https://github.com/Icinga/icinga2/pull/10452
2025-06-12 09:14:45 +02:00
Sukhwinder Dhillon
5655f095f8 IcingaRedis: Remove now obsolete code 2025-06-11 14:25:58 +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
2459655739 IcingaRedis: state_type is now a string 2025-06-11 14:24:36 +02:00
Sukhwinder Dhillon
9283135144 Support new column is_sticky_acknowledgement 2025-06-11 14:24:36 +02:00
Johannes Meyer
af6931823f
Show Icinga DB and Redis version in health (#1212)
resolves #1188
2025-06-11 12:58:59 +02:00
Johannes Meyer
de86ca168a RedisHealth: Serve Server infos as metrics 2025-06-11 12:13:51 +02:00
Johannes Meyer
6bf94ada9d RedisHealth: Include version in message 2025-06-11 12:13:51 +02:00
Johannes Meyer
ccb9756bc3 IcingaHealth: Show icingadb version in message…
…and show a warning if <1.4
2025-06-11 12:13:51 +02:00
Johannes Meyer
2a3531033e health: Show icingadb version 2025-06-11 12:13:51 +02:00
Johannes Meyer
eaa60a37fb IcingaHealth: Include icingadb version in metrics 2025-06-11 12:13:51 +02:00
Johannes Meyer
54b3d3ad7a Instance: Add new column icingadb_version 2025-06-11 12:13:51 +02:00