Commit graph

96 commits

Author SHA1 Message Date
Bastian Lederer
152ca2a0c3 USe Translation trait and improve code style 2026-04-14 15:13:49 +02:00
Bastian Lederer
0e6d03f3da Adjust customVarSources and minor improvements 2026-04-14 15:13:49 +02:00
Bastian Lederer
47f4c4c562 Apply review suggestions 2026-04-14 15:13:49 +02:00
Bastian Lederer
fd9b7e3653 Use setTitle 2026-04-14 15:13:49 +02:00
Bastian Lederer
7b49b302bd Controller::createColumnControl(): remove param $viewModeSwitcher 2026-04-14 15:13:49 +02:00
Bastian Lederer
71d2ad5104 Adjust usages of Controller::createColumnControl() 2026-04-14 15:13:49 +02:00
Bastian Lederer
afbe91e14a Clean up unused imports 2026-04-14 15:13:49 +02:00
Bastian Lederer
01996ffcfe Fix the $redirectUrl in Controller::createColumnControl()
It was previously hard coded...
2026-04-14 15:13:49 +02:00
Bastian Lederer
cd6eb32720 Move creation of the ColumnChooser Form to createColumnControl() 2026-04-14 15:13:49 +02:00
Bastian Lederer
1cd03462d8 Add ServiceItemTable::setColumnChooserUrl()
Use the setter to set the url for the ColumnChooser
2026-04-14 15:13:49 +02:00
Bastian Lederer
e555d3c2d8 Use SearchSuggestions for ColumnChooser
Use `SearchSuggestions` in `HostsController` and `ServicesController`
2026-04-14 15:13:49 +02:00
Bastian Lederer
a5dfb07f9c Controller::createColumnControl(): Use parameter for default columns
Add a parameter for default columns to be used if no columns
are set in the URL
2026-04-14 15:13:49 +02:00
Bastian Lederer
ba688bb431 Controller::createViewModeSwitcher(): Add param $viewModeSwitcherClass
Use the parameter to customize the type of ViewModeSwitcher used
2026-04-14 15:13:49 +02:00
Bastian Lederer
b101b50325 Exclude already selected columns from suggestions
Exclude regular columns by using fixed columns
and expand Objectsuggestions to exclude a given set of
customvars.
2026-04-14 15:13:49 +02:00
Bastian Lederer
ed0e4a6b21 Adjust controllers
Adjust HostsController and ServicesController to use the new
ColumnChooser form and the TabularViewModeSwitcher.
The Controller class is adjusted to work with the TabularViewModeSwitcher
The HostGroupsController and ServiceGroupsController are adjusted,
to ensure they use with the GridViewModeSwitcher.
2026-04-14 15:13:49 +02:00
Eric Lippmann
272e791390 License source files as GPL-3.0-or-later
Add SPDX license headers and mark source files as GPL-3.0-or-later to
preserve the option to relicense under later GPL versions.
2026-03-11 14:03:05 +01:00
Sukhwinder Dhillon
9cabfd5968
ContinueWith: Disable button if the query with filter returns no results (#1300)
Some checks failed
L10n Update / update (push) Has been cancelled
CI / PHP (push) Has been cancelled
fixes #1299 

requires https://github.com/Icinga/ipl-web/pull/334
2026-01-22 14:40:57 +01: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
Sukhwinder Dhillon
752aca7eb5 Controllers: Use paginationControl::getEmptyStateMessage() to set list's message 2025-05-08 14:19:13 +02:00
Sukhwinder Dhillon
3c5cafbaf7 Host/Service/Hostgroup/Servicegroup: Use severity as default sort order 2025-04-03 10:29:38 +02:00
Sukhwinder Dhillon
eef90e0212 Disable detailActions for Multiselected list items 2025-03-28 16:13:17 +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
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
d73691017f (Hosts/Services)Controller: Do not make object list in detail view controls 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
Yonas Habteab
705a470a1f Utilize widgets moved to ipl-web 2023-09-08 14:54:47 +02:00
Sukhwinder Dhillon
f675d539f2
Enhance global search (#756)
* Controllers: Remove not required method call `handleSearchRequest()`

These controller do not support global search

* Models: Add `display_name` to default search columns

* Controller: Add ´$additionaColumns` param to method handleSearchRequest() and prepareSearchFilter()

* TacticalController: Remove superfluous override of method `prepareSearchFilter()`
2023-05-30 15:26:00 +02:00
raviks789
cd6f8e87ff Unset pagination parameters for service grid when limit=0,0
The pagination parameters must be unset when the limit parameter is `0,0` and the service grid
for all the hosts and services must be displayed.
2023-05-23 16:31:27 +02:00
raviks789
acc11a395d Severity sort must also sort objects by last_state_change in descending 2023-05-22 10:53:13 +02:00
Johannes Meyer
90b6ef85cd Add new search route to only search for services on specific hosts 2022-08-22 16:27:01 +02:00
Johannes Meyer
abbf486ed4 Drop view param from show more urls in all index routes
refs #463
2022-08-17 15:21:24 +02:00
Johannes Meyer
6ece4de910 services/index: Add support for the columns parameter 2022-06-09 16:26:27 +02:00
Johannes Meyer
b4b1fffe18 Controller: Add new method createColumnControl() 2022-06-09 16:26:27 +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
Johannes Meyer
7fe51b06c9 services/grid: Fix search editor integration 2022-06-01 13:14:57 +02:00
Johannes Meyer
8a58d32e3b services/grid: Don't render the flipped grid too early 2022-06-01 13:14:22 +02:00
Johannes Meyer
21a930d3af services/grid: Fix missing Load More when interacting with the search bar 2022-05-31 16:46:06 +02:00
Johannes Meyer
03be86f7f0 services/grid: Preserve filters when interacting with the grid 2022-05-31 16:45:35 +02:00
Johannes Meyer
8f05906234 services/grid: Cleanup column aliases
Ensures compatibility with Icinga/ipl-orm#52.
Backwards compatibility is still the case.
2022-05-24 09:29:27 +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
8d6a8a56fe
Merge pull request #405 from Icinga/query-optimization
Optimize queries
2021-11-12 17:30:17 +01:00
raviks789
cf4b68d0f0 Use display names as axis headers for hosts and services in service grid.
The x- and y-axis column headers and sort control in service grid must use display names for hosts and services.
2021-11-12 16:33:34 +01:00
Yonas Habteab
2405936475 INNER JOIN states in the host and service list
Otherwise, MySQL will not use indexes on the state tables when
filtering / sorting the views by columns from the state tables.

Co-authored-by: Eric Lippmann <eric.lippmann@icinga.com>
2021-11-12 13:02:32 +01:00
Yonas Habteab
2d19db5ee3 Don't sort by host/service display_name simultaneously
Simultaneous sorting by `host.display_name` and
`service.display_name` and vice versa prevents the use of the
display_name indexes.

Co-authored-by: Eric Lippmann <eric.lippmann@icinga.com>
2021-11-12 13:02:32 +01:00
Yonas Habteab
aefd0e1f7d Add PHP 7 argument & return type declarations to all member methods 2021-11-03 16:06:59 +01:00
Ravi Kumar Kempapura Srinivasa
19495246d9 Add service id and host ids gridcols to pivotTable 2021-11-02 09:27:03 +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