Commit graph

21 commits

Author SHA1 Message Date
Johannes Meyer
3f1cdc0a85 forms/Command/Object: Show progress labels upon submit
fixes #1204
2025-06-10 15:24:22 +02:00
Johannes Meyer
2da207bedd commands: Send multiple commands while bulk processing
Reduces risk of timeouts in case Icinga takes its time to respond.
The timeout of 15 seconds introduced earlier has been kept.

Chunk sizes were chosen as follows:
- 1000: Cheap calculations (object features, check scheduling)
- 500: Expected disk writes (comments)
- 250: Process check result, Downtimes, Acks
2025-06-10 15:24:22 +02:00
marianrh
c4a8f4748f
Support setting a default comment for acknowledgements (#1178)
I propose to add a new option for setting a default comment for
acknowledging problems (`acknowledge_comment_text`), similar to the
existing `hostdowntime_comment_text` and `servicedowntime_comment_text`
options.

This originally was a pull request for Icinga Web 2
(https://github.com/Icinga/icingaweb2/pull/5365). I was asked to
implement this in Icinga DB Web as well. *However, since I'm not using
Icinga DB Web myself, this is untested.*

Beside adding the new feature, I also fixed a copy-and-paste error for
the `servicedowntime_comment_text` option.
2025-05-08 14:24:15 +02:00
Johannes Meyer
464a440f0f Introduce new class ScheduleDowntimeCommand
Covers the full functionality of the schedule-downtime
endpoint of Icinga 2's api now.

fixes #1090
2024-12-09 12:51:12 +01:00
Johannes Meyer
d5b4087a50 CommandForm: Don't pass generators to commands 2024-04-08 09:17:04 +02:00
Johannes Meyer
bcdbda1e40 CommandForm: Expect Iterator in method getCommands() 2024-03-26 17:05:32 +01:00
Alexander A. Klimov
b92eeb69e7 Actually let ObjectsCommand derivates process multiple objects at once 2023-08-02 12:44:02 +02:00
Alexander A. Klimov
1a04927c8b Introduce CommandForm#filterGrantedOn() 2023-08-02 12:44:02 +02:00
Alexander A. Klimov
b4222228cc ObjectCommand and derivates: handle multiple objects 2023-08-02 12:44:02 +02:00
Alexander A. Klimov
051a391444 CommandForm#getCommand(): take (and process) multiple objects, not just one 2023-08-02 12:44:02 +02:00
Ravi Srinivasa
4f7b56ade1 Prevent downtime flexible duration being set to 0h0m 2023-06-02 12:19:15 +02:00
Yonas Habteab
aefd0e1f7d Add PHP 7 argument & return type declarations to all member methods 2021-11-03 16:06:59 +01:00
Sukhwinder Dhillon
5da4b91098 ScheduleServiceDowntimeForm: Add DateTimeValidator 2021-10-07 16:14:06 +02:00
Yonas Habteab
a0499f2cfa Don't show success messages when an error occurred 2021-09-21 15:54:41 +02:00
Yonas Habteab
c67b873096 Show a notification for every successful action 2021-09-07 12:11:09 +02:00
Ravi Kumar Kempapura Srinivasa
f662646278 Add end time and comment options to settings section for host/service downtime dialog
[hostdowntime_end_fixed], [hostdowntime_end_flexible], [hostdowntime_flexible_duration], [servicedowntime_end_fixed], [servicedwontime_end_flexible],
[servicedowntime_flexible_duration] and [comment_text] options added to [settings] section in config.ini file used in  host/service downtime dialog.
2021-07-16 15:48:26 +02:00
Johannes Meyer
3bf8944316
Use strict ipl-html interfaces (#217)
* Command forms: Use strict interfaces to construct ipl\Html objects

* BaseTableRowItem: Use strict interfaces to create ipl\Html objects

* ObjectInspectionDetail: Use strict interfaces..

..to create ipl\Html objects

* Setup/*Step: Use strict interfaces to create ipl\Html objects

* ObjectSuggestions: Use strict interfaces to create ipl\Html objects

* Widget: Use strict interfaces to create ipl\Html objects

* Widget\Detail: Use strict interfaces to create ipl\Html objects

* Widget\ItemList: Use strict interfaces to create ipl\Html objects

* ServiceLink: Don't return an array
2021-06-22 10:29:25 +02:00
Johannes Meyer
b04a2a29d0 command forms: Enable datetime picker widget on datetime elements 2021-05-17 14:22:00 +02:00
Johannes Meyer
213092684e Introduce native object permissions 2021-03-19 15:47:57 +01:00
Johannes Meyer
057b7dc8e0 Check permissions in object context when issuing commands 2021-03-19 15:47:57 +01:00
Johannes Meyer
4f75ddc246 Introduce class ScheduleServiceDowntimeForm 2021-03-09 09:13:20 +01:00