Commit graph

220 commits

Author SHA1 Message Date
Eric Lippmann
7bb09036fc Fix const visibility 2025-10-21 14:56:41 +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
Sukhwinder Dhillon
5655f095f8 IcingaRedis: Remove now obsolete code 2025-06-11 14:25:58 +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
3082353eac CommandActions: Raise time and memory limit 2025-06-10 15:24:22 +02:00
Johannes Meyer
3f305fe540 StateBadges: Actually render links for single badges
fixes #1160
2025-06-05 16:13:56 +02:00
Sukhwinder Dhillon
7866063974 ObjectInspectionDetail: Show host/service templates 2025-06-05 12:33:49 +02:00
Will_i_code
56371be50c
Add support for redis acl/username and database selection (#1165)
resolves #1044
2025-05-14 09:53:32 +02:00
Johannes Meyer
a91f6cf6ef CommandActions: Force a form's HTTP method for api requests 2025-05-12 16:59:07 +02:00
Sukhwinder Dhillon
4b2274ab15 Macros: Explicitely cast return value to string 2025-05-12 13:56:56 +02:00
Sukhwinder Dhillon
418eca0379 Macros: Add missing support for bool type macro 2025-05-12 13:56:56 +02:00
Sukhwinder Dhillon
a176054de9 Macros: Add missing support for DateTime type macro 2025-05-12 13:56:55 +02:00
Sukhwinder Dhillon
c0a04cdf53 Predis: Use xread command/method (introduced in predis v2.3.0)
- module.info: Increase the required version of `icinga-php-thirdparty` which includes predis v2.3.0

NOTE: The result array (`$rs`) has changed, `icinga:stat` was previously a `value` in the array, now it is a `key`:
   Path to get the real values:
	previously : $rs[0][1][0][1]
	new : $rs['icinga:stats'][0][1]
2025-05-07 15:21:48 +02:00
Johannes Meyer
04b8e220fd usergroup: Rename to contactgroup 2025-04-10 15:04:41 +02:00
Johannes Meyer
e66661196b usergroups: Rename to contactgroups 2025-04-10 15:04:41 +02:00
Johannes Meyer
19135bcceb user: Rename to contact 2025-04-10 15:04:41 +02:00
Johannes Meyer
9ea5d70512 users: Rename to contacts 2025-04-10 15:04:41 +02:00
Sukhwinder Dhillon
80fc6a4229 Cleanup css and php code 2025-03-28 16:13:17 +01:00
Sukhwinder Dhillon
3035bb0538 Update trait TicketLinks and (Comment/Downtime)Renderer class
TicketLinks: Add setter to disable ticket links. By default, ticket links should be created.
Comment/DowntimeRenderer: Add setter noObjectLink()
CommentRenderer: Add setter noSubjectLink(), only used for the comment-popup
2025-03-28 16:13:17 +01:00
Sukhwinder Dhillon
c55f1dceb8 Introduce TicketLinkObjectList and CommentRenderer
TicketLinkObjectList: This class creates object list with ticket links using TicketLinks trait
CommentRenderer: Defines the rendering rules for Comment object
Cleanup css and unused classes
Adjust comment-popup.less
2025-03-28 16:13:16 +01:00
Sukhwinder Dhillon
9e77c5f1ad Auth::applyRestrictions(): Don't take redundancy_group into account
Otherwise, redundany_group objects are not visible.

- New filter : Either the host/service is null (the object is a redundancy group) or given restrictions match
2025-02-04 13:48:32 +01:00
Sukhwinder Dhillon
dd744395c7 Keep compatibility with Icinga DB mysql v6 & pgsql v4 2025-01-14 13:13:25 +01:00
Johannes Meyer
1a23a6b3cc IcingaRedis: Use the new singleton instead 2024-12-17 16:33:05 +01:00
Johannes Meyer
edbafbd144 Database: Use the new singleton instead 2024-12-17 16:33:05 +01:00
Johannes Meyer
b10b534ee6 Introduce singleton Icinga\Module\Icingadb\Common\Backend 2024-12-17 16:33:05 +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
2012b29e14 Indicate the number of affected children by a particular parent 2024-10-08 16:30:04 +02:00
Johannes Meyer
a7e76f6f44 Try even harder to not fail badly if some results are missing 2024-07-24 17:01:07 +02:00
Johannes Meyer
435a58b4f6 CommandForm: Ensure getCommands() is passed an Iterator 2024-03-26 17:05:32 +01:00
Johannes Meyer
305a731e37 Macros: Log the object where a macro is not found
fixes #952
2024-03-22 13:29:32 +01:00
Johannes Meyer
c2e977b1dc CommandActions: Only respond with JSON if it's an API request
fixes #945
2024-03-18 13:55:41 +01:00
Johannes Meyer
e8d43313b9 ObjectInspectionDetail: Render invalid states 2023-10-27 10:17:28 +02:00
Johannes Meyer
4ff444340d Macros: Properly support CompatHost and CompatService
fixes #900
2023-10-13 09:03:03 +02:00
Yonas Habteab
c85e85496c Transform compat action & notes url macros automatically 2023-09-28 10:29:15 +02:00
Johannes Meyer
cd41a207a1 IcingaRedis: Don't throw in method isUnavailable
fixes #883
2023-09-27 10:24:50 +02:00
Sukhwinder Dhillon
5c30e53765 DetailsActions: Only add data-action-item attr if list is an .action-list 2023-09-12 13:57:11 +02:00
Johannes Meyer
959f06cafd Utilize ipl\Web\Url::setFilter() where applicable 2023-09-12 09:52:19 +02:00
Johannes Meyer
59d3c1148d CommandActions: Respond with JSON if requested 2023-09-08 16:37:44 +02:00
Yonas Habteab
152d83219a Add missing argument type hint declaration 2023-09-08 15:28:46 +02:00
Yonas Habteab
f66b551c75 Add missing return type declaration 2023-09-08 15:28:46 +02:00
Yonas Habteab
8179025748 Add missing property type hints 2023-09-08 15:26:58 +02:00
Yonas Habteab
705a470a1f Utilize widgets moved to ipl-web 2023-09-08 14:54:47 +02:00
Sukhwinder Dhillon
a21e0d2443 IcingaRedis: Call private static methods with self instead of static 2023-09-05 14:26:43 +02:00
Sukhwinder Dhillon
7c66c0ee20 IcingaRedis: Fix incorrect PhpDoc 2023-09-05 14:26:43 +02:00
Sukhwinder Dhillon
5a64a83137 CommandActions: Fix Variable '$form' is probably undefined 2023-09-05 14:26:43 +02:00
Yonas Habteab
423c9a88e4 Deprecate StateBadge class again 2023-08-29 09:27:11 +02:00
Sukhwinder Dhillon
aaf3a7b9f9 ObjectInspectionDetail: HtmlElement param#3 expects ValidHtml 2023-08-22 12:29:50 +02:00
Sukhwinder Dhillon
1aaa95e859 ObjectInspectionDetail: Render EmptyState message if $command is empty 2023-08-21 16:38:13 +02:00
Johannes Meyer
dd803f60cd BaseItemTable: Introduce layout modes
This elevates the layout `table-layout`, previously
introduced exclusively for host and service group
tables, to the standard layout used for item tables.

fixes #814
2023-08-11 13:50:58 +02:00