Commit graph

2586 commits

Author SHA1 Message Date
Johannes Meyer
2c1b4dd5db ObjectsCommand: Expect instances of Iterator as objects 2025-11-07 14:34:26 +01:00
Johannes Meyer
f88b6449b7 migrate: Drop search migration
Some checks failed
L10n Update / update (push) Has been cancelled
PHP Tests / Static analysis for php 8.2 on ubuntu-latest (push) Has been cancelled
PHP Tests / Static analysis for php 8.3 on ubuntu-latest (push) Has been cancelled
PHP Tests / Static analysis for php 8.4 on ubuntu-latest (push) Has been cancelled
PHP Tests / Unit tests with php 8.2 on ubuntu-latest (push) Has been cancelled
PHP Tests / Unit tests with php 8.3 on ubuntu-latest (push) Has been cancelled
PHP Tests / Unit tests with php 8.4 on ubuntu-latest (push) Has been cancelled
2025-11-06 09:44:32 +01:00
Johannes Meyer
f23525a4e5
Remove migration assistance (#1275)
It's time to get rid of this. Anyone who didn't migrate yet won't be
convinced by this anymore either.
2025-11-06 09:37:05 +01:00
Johannes Meyer
6c31feb523 doc: Mention migration removal 2025-11-06 09:04:46 +01:00
Johannes Meyer
5d068666d3 migrate: Drop monitoring url preview 2025-11-06 09:04:46 +01:00
Johannes Meyer
c2543454b1 migrate: Drop backend selection 2025-11-06 09:04:46 +01:00
Johannes Meyer
0d414c2f4f
Provide integration for Icinga Notifications Web (#1289)
Some checks failed
L10n Update / update (push) Has been cancelled
PHP Tests / Static analysis for php 8.2 on ubuntu-latest (push) Has been cancelled
PHP Tests / Static analysis for php 8.3 on ubuntu-latest (push) Has been cancelled
PHP Tests / Static analysis for php 8.4 on ubuntu-latest (push) Has been cancelled
PHP Tests / Unit tests with php 8.2 on ubuntu-latest (push) Has been cancelled
PHP Tests / Unit tests with php 8.3 on ubuntu-latest (push) Has been cancelled
PHP Tests / Unit tests with php 8.4 on ubuntu-latest (push) Has been cancelled
The supplement to
https://github.com/Icinga/icinga-notifications-web/pull/373
2025-10-28 15:09:46 +01:00
Johannes Meyer
a0c9f03a78 Provide integration for Icinga Notifications Web 2025-10-27 11:11:23 +01:00
Johannes Meyer
0a3b0b9afb Introduce new route icingadb/suggest/restriction-column 2025-10-27 11:11:23 +01:00
Johannes Meyer
e906b1d632 ObjectSuggestions: Allow to use a fixed set of columns 2025-10-27 11:11:23 +01:00
Johannes Meyer
eb85337fc7
Release v1.2.3
Some checks failed
L10n Update / update (push) Has been cancelled
PHP Tests / Static analysis for php 8.2 on ubuntu-latest (push) Has been cancelled
PHP Tests / Static analysis for php 8.3 on ubuntu-latest (push) Has been cancelled
PHP Tests / Static analysis for php 8.4 on ubuntu-latest (push) Has been cancelled
PHP Tests / Unit tests with php 8.2 on ubuntu-latest (push) Has been cancelled
PHP Tests / Unit tests with php 8.3 on ubuntu-latest (push) Has been cancelled
PHP Tests / Unit tests with php 8.4 on ubuntu-latest (push) Has been cancelled
2025-10-16 09:34:27 +02:00
Johannes Meyer
3a77af6df4 module.info: Raise version to 1.2.3 2025-10-16 08:45:10 +02:00
Johannes Meyer
5fb51de64b Update CHANGELOG.md 2025-10-16 08:45:10 +02:00
Johannes Meyer
ab4dafe4f2 module.info: Raise ipl requirement 2025-10-16 08:45:10 +02:00
Johannes Meyer
5e982dad40
Merge commit from fork
* Auth: Add method `assertColumnRestrictions`

* ObjectSuggestions: Do not suggest protected variables

`assertColumnRestrictions` does not allow to use them
anymore, hence we should not suggest them in searches
as well to not to let the user run into an error by
accepting a suggestion. Though, when fetching values
as well, we still have to obfuscate, otherwise protected
vars won't show up in details anymore.

* Introduce Icinga\Module\Icingadb\Common\Model

Must be used as base for all models, to ensure
column restrictions are asserted on filters.

* Utilize `Icinga\Module\Icingadb\Common\Model` where applicable
2025-10-16 08:42:51 +02:00
Johannes Meyer
cb98b042c0
Fix automation documentation (#1286)
Some checks are pending
L10n Update / update (push) Waiting to run
PHP Tests / Static analysis for php 8.2 on ubuntu-latest (push) Waiting to run
PHP Tests / Static analysis for php 8.3 on ubuntu-latest (push) Waiting to run
PHP Tests / Static analysis for php 8.4 on ubuntu-latest (push) Waiting to run
PHP Tests / Unit tests with php 8.2 on ubuntu-latest (push) Waiting to run
PHP Tests / Unit tests with php 8.3 on ubuntu-latest (push) Waiting to run
PHP Tests / Unit tests with php 8.4 on ubuntu-latest (push) Waiting to run
fixes #1283
2025-10-15 10:43:17 +02:00
Johannes Rauh
def4dce4e3 Move problem toggle above shifting params
If the problem toggle is created after the params are shifted, it
redirects to the page without them. To solve this I simply moved
the problem toggle before shifting the params.
2025-10-15 10:30:45 +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