Commit graph

1183 commits

Author SHA1 Message Date
Johannes Meyer
3ebfcea4bf
Remove monitoring module dependency (#492)
Some checks failed
L10n Update / update (push) Has been cancelled
CI / PHP (push) Has been cancelled
fixes #491

The controllers for `icingadb` and the `monitoring` backend have been
separated to remove the unwanted dependency.
Minor adjustments made to the view scripts so that it can be used by
both backends.
2026-01-21 17:02:06 +01:00
Sukhwinder Dhillon
86b5557c1e Controllers: Add an else case to improve readability 2026-01-13 10:08:38 +01:00
Sukhwinder Dhillon
d17c4501b2 Use same view script in monitoring and icingadb for Access Denied message
- Host|ServiceController: The extended class `CompatController` has its own tabs. Therefore, set the view script tabs to null
  to avoid creating tabs twice.
- View-scripts: Add a condition to create tabs only when the `monitoring` backend (ido[Host|Service]Controller) is used.
2026-01-13 08:52:01 +01:00
Sukhwinder Dhillon
9a91854d4c Remove monitoring module dependency
By separating `monitoring` module controllers.

- Adjust view-script paths accordingly
2026-01-13 08:52:01 +01:00
Eric Lippmann
b756147764
Support PHP 8.5 (#489)
Some checks failed
L10n Update / update (push) Has been cancelled
CI / PHP (push) Has been cancelled
PHP 8.3 -> PHP 8.4:

* Function parameters that are null by default must be declared nullable.
* The E_STRICT error level has been deprecated
* The `$escape`  parameter of  `fputcsv()` must be set explicitly

PHP 8.4 -> PHP 8.5:

* Using null as an array offset is deprecated.

Additionally the `required` attribute of the `uploaded_file` element in
`BpUploadForm` was set to true.
Previously the form could be submitted without a file causing an exception.
2026-01-09 13:06:55 +01:00
Bastian Lederer
b153a51cb6 Set BpConifg::name by a constructor argument with default
A bug was caused by BpConfig::getName returning null,
because the result was used as an array key, which is deprecated since PHP-8.5.
To avoid any further issues the constructor now ensures the name is always set.
2026-01-09 08:35:49 +01:00
Bastian Lederer
5bba8ba0ec Only add display groups for defined buttons
Elements passed to ZendForm::addDisplayGroup will be used as array keys,
if they are null that causes a deprecation warning since PHP-8.5.
To avoid this all null values are removed.
2026-01-09 08:23:54 +01:00
Bastian Lederer
71f0ea3878 Mark uploaded_file element as required
Explictly set the required attribute of the uploaded_file element of BpUploadForm to true.
previously the resulting-html element was not required and submitting the form caused null being passed.
This is necessary because this class does not extend the Web\Form,
and the Zend_Form does not mark the elment as required.
2026-01-08 08:24:01 +01:00
Bastian Lederer
400ad69497 Replace null as array key with an empty string
Using null as an array key is deprecated in PHP-8.5,
an empty string can be used for identical behavior.
This includes values that are passed to ZendForm::addDisplayGroup as elements,
as they will be used as array keys.
2026-01-08 08:21:08 +01:00
Bastian Lederer
0e11994349 Explicitly set the escape parameter of fputcsv()
Relying on the default value is deprecated since PHP-8.4
2026-01-08 08:13:54 +01:00
Bastian Lederer
615d0afd10 Declare parameters that are null by default as nullable
Implicitly nullable parameters are deprecated since PHP-8.4
2026-01-08 08:07:59 +01:00
Eric Lippmann
b4b41f7c6b
GitHub Actions: Use new PHP workflows (#487)
Some checks failed
L10n Update / update (push) Has been cancelled
CI / PHP (push) Has been cancelled
This PR switches to the new PHP workflow, which combines linting, static
analysis, and unit testing. `phpcs.xml` and `phpunit.xml` have been
removed, as the new workflow provides sane defaults for both and the
files did not contain any special configurations anyway. Since the new
workflow uses the latest PHPUnit version by default, deprecated PHPUnit
features have been migrated. In addition, code style corrections were
made to comply with the latest PSR coding standards.
2025-12-15 09:29:04 +01:00
Eric Lippmann
c85b9d98fe Align coding style to comply with latest PSR 2025-12-12 12:44:49 +01:00
Eric Lippmann
079654b59c Remove phpcs.xml
Use defaults from new workflow.
2025-12-12 12:13:14 +01:00
Eric Lippmann
a2a1e4f034 Remove unnecessary method call 2025-12-12 12:13:14 +01:00
Eric Lippmann
4c430f6424 Remove phpunit.xml
Use defaults from new workflows.
2025-12-12 12:13:14 +01:00
Eric Lippmann
e7f0b449bb Migrate deprecated @codingStandards syntax 2025-12-12 12:13:14 +01:00
Eric Lippmann
96a8f00609 GitHub Actions: Use new PHP workflows 2025-12-12 12:13:14 +01:00
mdetrano
2111103957
Implement feature requests #455 and #477. Custom var enhancement (#478)
Custom variables used in Detail View Extension can be read from the host
if not present on the service, and can be customized, if desired, in the
config.ini for this module
2025-08-05 10:25:39 +02:00
Johannes Meyer
ba7043d14b
Release v2.5.2 (#476) 2025-07-02 10:46:59 +02:00
Johannes Meyer
52c4a6832a module.info: Raise version to 2.5.2 2025-07-01 16:59:29 +02:00
Johannes Meyer
7e5ff4a43f README.md: Drop PHP support badge 2025-07-01 16:59:11 +02:00
Johannes Meyer
cda66ca82e menu: Only count the worst states in badges
fixes #365
2025-07-01 16:53:18 +02:00
Johannes Meyer
a6033491f4 Do not break sidebar if processes cannot be loaded
fixes #466
2025-07-01 14:24:58 +02:00
Johannes Meyer
ccf2ba4c66 IcingaDbState: Correctly determine ack and downtime flags
fixes #469
2025-06-30 17:08:47 +02:00
Johannes Meyer
d88a7dd752 Node: Rename in_acknowledged to is_acknowledged
refs #461
2025-06-30 12:11:15 +02:00
Johannes Meyer
4d0dc0c91f process/show: Hide sort control in fullscreen or compact view
fixes #462
2025-06-30 10:58:49 +02:00
Johannes Meyer
726cab5851 process/show: Only show cleanup links in edit mode
fixes #464
2025-06-30 10:58:29 +02:00
Johannes Meyer
fd7fd71bb7 Correctly determine node states in sidebar
fixes #467
2025-06-30 10:58:06 +02:00
Jáchym Holeček
f12b2d744a
Add is_acknowledged property to Node class (#461)
This pull request introduces an `is_acknowledged` property to the `Node`
class in the Business Process library to enhance JSON output.
2025-06-30 10:47:56 +02:00
Johannes Meyer
575fb964d0 php: Run on support branches 2025-06-30 09:22:37 +02:00
Johannes Meyer
fe8c0d4b34 php: Don't run on legacy PHP versions 2025-06-30 09:20:30 +02:00
Johannes Meyer
9f91b911bb L10n-udpate: Use template from github-actions 2025-06-03 16:14:28 +02:00
Navid Sassan
35218f72fc Add showFullscreen and showCompact for dashboard 2025-05-07 10:28:54 +02:00
Johannes Meyer
71e957dc5e Ensure compatiblity with https://github.com/Icinga/ipl-web/pull/258 2025-04-01 11:34:25 +02:00
Sukhwinder Dhillon
3403b605e4 module.info: Raise version to 2.5.1 2024-04-23 15:46:44 +02:00
Sukhwinder Dhillon
4c2246a7e0 AddNodeForm: Add missing getLabel() call 2024-04-23 15:45:21 +02:00
moreamazingnick
e9a551e581
Fix indistinguishable suggestions for nodes (#433)
refs #427
2024-04-23 15:38:48 +02:00
Johannes Meyer
3a0b40a91f Fix that handled nodes are not handled 2024-04-22 14:06:57 +02:00
Johannes Meyer
4df9f52535 js: Remove instructions regarding fixed control layout
That's not fixed since a long time now.
2024-04-22 10:51:43 +02:00
Sukhwinder Dhillon
c43128be3e
Correct notification messages and add missing translations (#444)
fixes #405
2024-04-22 10:51:06 +02:00
Johannes Meyer
1c38d23d3a
phpstan: Fix generic type errors (#446) 2024-04-22 10:48:39 +02:00
Sukhwinder Dhillon
980ea85e61 Sort: Remove var type hint change
This should be fixed in ipl/stdlib
2024-04-19 12:54:16 +02:00
Sukhwinder Dhillon
ca620814c3 Storage: Define type of generic class ConfigObject 2024-04-19 12:54:16 +02:00
Sukhwinder Dhillon
77d5af43de module.less: Fix align of action-bar and sort control
Use regular font-size (1em) for action-bar
2024-04-19 12:27:53 +02:00
Yonas Habteab
3fa0983c58 Remove empty init files 2024-04-19 12:15:04 +02:00
Sukhwinder Dhillon
b672c28888
ProcessCommand: Fix false positive condition for ServiceNode (#445)
fixes #440
2024-04-19 11:53:05 +02:00
Sukhwinder Dhillon
c29512890d phpstan: Separate workflow 2024-04-19 11:26:56 +02:00
Johannes Meyer
c4ca750eb1
Fix: Switching to the icingadb backend and searching host/service node in add/edit form throws an error (#443)
`HostServiceTermValidator`: `$testConfig` requires backend for
`MonitoringState::apply()` call.

If the `$testConfig` has no backend set and icingadb is in use,
`MonitoringState::__construct($config) => $config->getBackend()` returns
an icingadb backend that is not suitable for the `MonitoringState`
class.

fixes
https://github.com/Icinga/icingaweb2-module-businessprocess/issues/430
2024-04-19 10:20:53 +02:00
Sukhwinder Dhillon
ad3c38eba4 Update phpstan baseline 2024-03-27 09:00:35 +01:00