Commit graph

89 commits

Author SHA1 Message Date
Sukhwinder Dhillon
eed9a3bc04 Move the HostController::joinFix() method to DependecyNode
- Centerlize the method
2025-07-10 09:17:50 +02:00
Sukhwinder Dhillon
752aca7eb5 Controllers: Use paginationControl::getEmptyStateMessage() to set list's message 2025-05-08 14:19:13 +02:00
Sukhwinder Dhillon
3e49d8980b (Host|Service)Controller: Reset the query offset
This change was missing in the https://github.com/Icinga/icingadb-web/pull/734
2025-05-08 12:45:38 +02:00
Sukhwinder Dhillon
3c5cafbaf7 Host/Service/Hostgroup/Servicegroup: Use severity as default sort order 2025-04-03 10:29:38 +02:00
Johannes Meyer
b66d69a19f Host|ServiceController: Restore missing params…
…in the history load more url

fixes #1144
2025-03-28 16:51:47 +01:00
Sukhwinder Dhillon
b4e6f32f41 Let the Object(List|Grid|Table) call setDetailUrl() and setMultiselectUrl()
- Make all the calls in one place
2025-03-28 16:13:17 +01:00
Sukhwinder Dhillon
183d5ee7ba Introduce HistoryRenderer
- Remove now obsolete ItemList classes
2025-03-28 16:13:16 +01:00
Sukhwinder Dhillon
36ce426bbe Introduce Host/Service Renderer
- Use these renderers in ObjectHeader and ObjectList class
- Remove now superfluous Host/ServiceList and ListItem classes
- DetailsAction: Change visibility of url setter to public (These are called in controller now)
2025-03-28 16:13:16 +01:00
Sukhwinder Dhillon
9f30f53ee6 Generalize DependencyNodeList and rename it to ObjectList 2025-03-28 16:13:16 +01:00
Sukhwinder Dhillon
667fd2fe5b (Host/Service)Controller: Add missing onlyWithCustomVarSources() call 2025-01-22 13:44:32 +01:00
Sukhwinder Dhillon
ebdb48a3f5 (Host/Service)Controller: Add separated (searchEditor/complete)Action for parent & children tab 2025-01-22 13:44:32 +01:00
Sukhwinder Dhillon
3602d5ab65 (Host/Service)Controller: Change method name and fix syntax 2025-01-22 13:44:32 +01:00
Sukhwinder Dhillon
41601abff7 (Host|Service)Controller: Sort parents children tab list by default to severity
- Disable the default sorting for the `$hasDependencyNode` and UnreachableParent's `$rootQuery`, as sort is not required here
and triggers an error, because the sort columns are not retrieved.
2025-01-22 13:44:32 +01:00
Sukhwinder Dhillon
6aa32fa9f8 (Host|Service)Controller: Use Translation trait method 2025-01-22 13:44:32 +01:00
Sukhwinder Dhillon
b69fb09c90 Don't show parents children tab if icingadb.schema does not support it 2025-01-22 13:44:32 +01:00
Sukhwinder Dhillon
cda2f4bb05 Add csv/json export support for parents and children tab 2025-01-22 13:44:32 +01:00
Sukhwinder Dhillon
1ceb351e04 (Host|Service)Controller: Add return type to methods 2025-01-22 13:44:32 +01:00
Sukhwinder Dhillon
5e436dc57f (Host|Service)Controller: Fix tab activation
- Set the outer tab as active.

Previously, the inner tab was activated in the setTitleTab method, but the outer tab does not know about the state of inner tabs.
So whenever sendMultipartUpdate() -> getActiveTab() was called, the retured value was always null.
2025-01-22 13:44:32 +01:00
Sukhwinder Dhillon
d5d36d7233 (Host|Service)Controller: Shift the required param
- Otherwise the searchbar uses it as base filter and apply it on the query
2025-01-22 13:44:32 +01:00
Sukhwinder Dhillon
ad8d71b253 (Host|Service)Controller: Add parents and children tab 2025-01-22 13:44:32 +01:00
Sukhwinder Dhillon
645ae00155 (Host|Service)Controller: Let the init() render the object header 2025-01-22 13:44:32 +01:00
Johannes Meyer
c503f14382 host/services: Make sure severity sort orders the same as anywhere else
fixes #915
2023-10-25 10:30:06 +02:00
Johannes Meyer
3aedccaad5 History: Sort also by type by default 2023-08-11 16:06:33 +02:00
Johannes Meyer
987a0a3416 Don't pass an array to ObjectsCommand::setObjects()
fixes #832
2023-08-10 13:45:56 +02:00
Alexander A. Klimov
b4222228cc ObjectCommand and derivates: handle multiple objects 2023-08-02 12:44:02 +02:00
Sukhwinder Dhillon
2e7d7b9129 CheckStatistics: Show TimePeriod name if available 2023-06-15 15:25:25 +02:00
Eric Lippmann
052c30520d Revert "Adjust usages of ipl\Orm\Query::with()"
This reverts commit d947362c9410911069db60e61c934a879eb8777e.
2022-06-02 14:24:52 +02:00
Johannes Meyer
068377e4c6 Don't require relation state in state summary queries
Lets the models add the relation on their own, using
`utilize()` as the relation is only needed inside
expressions.
2022-06-02 14:24:51 +02:00
Johannes Meyer
a0500c3b67 Adjust usages of ipl\Orm\Query::with() 2022-06-02 14:24:51 +02:00
Eric Lippmann
04410a866d Use Query::filter() for applying WHERE conditions 2022-05-24 16:04:22 +02:00
Johannes Meyer
5b026f8f26 Adjust usages of ipl\Stdlib\Filter::equal() and ::unequal() 2022-05-24 12:02:51 +02:00
Johannes Meyer
c6db259248 Adjust calls to CompatController::setTitle()
refs https://github.com/Icinga/ipl-web/pull/72
2022-03-16 16:35:34 +01:00
Johannes Meyer
ca192ac3a2 host|service: Add missing details to pdf exports 2022-03-03 09:16:16 +01:00
Yonas Habteab
29ca49303b Fix host detail history filter
Co-authored-by: Eric Lippmann <eric.lippmann@icinga.com>
2021-11-12 13:02:32 +01:00
Yonas Habteab
b25a323a53 Fix Column 'host_id' in where clause is ambiguous
service_state now also has the host_id column, so we need to
qualify host_id with a table name in the WHERE condition.

Signed-off-by: Eric Lippmann <eric.lippmann@icinga.com>
2021-11-10 15:58:42 +01:00
Johannes Meyer
9544564a3b host/history: Don't fetch newer entries than what is shown 2021-11-08 17:33:16 +01:00
Yonas Habteab
aefd0e1f7d Add PHP 7 argument & return type declarations to all member methods 2021-11-03 16:06:59 +01:00
Johannes Meyer
7efb797fbb Utilize VolatileStateResults where applicable 2021-10-08 15:36:36 +02:00
Johannes Meyer
a3f1c73f79 CommandActions: Make required methods abstract 2021-10-08 15:10:44 +02:00
Yonas Habteab
ac13e104bc Render two different state ball sizes for soft & hard state changes in object header & history 2021-10-01 17:31:52 +02:00
Yonas Habteab
d29fdcc6c0 Fix view mode shows less items when using vertical pagination 2021-09-21 15:54:15 +02:00
Sukhwinder Dhillon
39a501c2f7 Make object header unclickable in detail view 2021-09-02 09:41:05 +02:00
Sukhwinder Dhillon
4c28d63545 HostController: Add sortControl to services tab of host detail 2021-09-01 12:30:48 +02:00
Sukhwinder Dhillon
564d0b6d8c HostsController: Add missing query column 2021-09-01 08:59:29 +02:00
Yonas Habteab
fc43aec80d Support ViewModeSwitcher & sortControl in Host/Service history 2021-08-31 14:24:51 +02:00
Johannes Meyer
85b9295db9 Don't shift URL params to identify objects in detail views
Parameters used to identify what will be shown need to be
preserved. Just like it's done for filters in lists.

refs #299
refs #312
2021-08-31 13:54:46 +02:00
Yonas Habteab
87ca6df925 Fix uncaught argument count error 2021-08-24 10:56:10 +02:00
Sukhwinder Dhillon
7fe9b33ee8 Remove showMore from contoller and create it through HistoryList class 2021-08-23 12:00:27 +02:00
Johannes Meyer
d827699b50 Move ServiceList to Icinga\Module\Icingadb\Widget\ItemList 2021-08-20 16:27:06 +02:00
Johannes Meyer
00d92dd86b Move HostList to Icinga\Module\Icingadb\Widget\ItemList 2021-08-20 16:14:00 +02:00