Commit graph

108 commits

Author SHA1 Message Date
Yonas Habteab
9f8935f081 Controller: Increase limit on minimal view mode 2021-08-20 15:43:59 +02:00
Johannes Meyer
a359add0a1 Controller: Properly validate cvs in the search bar 2021-07-28 11:56:28 +02:00
Johannes Meyer
14684ace25 Controller: Show an error if an output format isn't processed 2021-06-18 14:58:27 +02:00
Florian Strohmaier
016b9f3f17
Make view mode switcher a form (#182) 2021-05-26 11:44:50 +02:00
Johannes Meyer
2d5fb874c0 Controller: Ensure to apply the user's default limit 2021-05-07 16:44:47 +02:00
Johannes Meyer
408c130ad7 Controller: Add method assertRouteAccess() 2021-05-03 14:57:27 +02:00
Johannes Meyer
6a7b531a70 Controller: Add method createContinueWith() and drop ContinueWith
The widget is now part of ipl-web.
2021-04-22 16:04:54 +02:00
Johannes Meyer
43f87c9228 Controller: Preserve params in the SearchEditor 2021-03-19 16:08:46 +01:00
Johannes Meyer
71ea557edc Controller: Add column validation to the SearchEditor 2021-03-19 16:08:46 +01:00
Johannes Meyer
92678e8388 Controller: Don't add showCompact and _disableLayout to the search editor url
It's now done automatically by modal.js
2021-03-19 16:04:01 +01:00
Johannes Meyer
a19ea60336 Controller: Add method createSearchEditor() 2021-03-19 16:04:01 +01:00
Johannes Meyer
18f009c55f Utilize ipl\Orm\Query::filter() where appropriate 2021-03-19 15:42:15 +01:00
Johannes Meyer
f0368b404d Adjust usages of filter property columnLabel 2021-03-19 14:04:46 +01:00
Johannes Meyer
989fbfe487 Apply our own restrictions instead of monitoring/filter/objects 2021-03-09 09:26:19 +01:00
Johannes Meyer
1b09b0a7be SearchBar: Use the columns the user can choose from for filter validation 2021-02-19 09:41:17 +01:00
Johannes Meyer
6e73d390c2 Replace all usages of Icinga\Data\Filter with ipl\Stdlib\Filter 2021-01-14 12:08:59 +01:00
Johannes Meyer
febdae2552 Controller: Drop method createFilterControl() 2021-01-14 11:17:08 +01:00
Johannes Meyer
1736efc07a Controller: Use a request's original url as search bar action
Allows to display still filtered results in case of invalid
submits.
2021-01-14 11:08:53 +01:00
Johannes Meyer
a7c230afaf Controller: Normalize filter columns in the search bar 2021-01-14 11:08:53 +01:00
Johannes Meyer
05a4a75447 Controller: Validate columns upon search bar submits 2021-01-14 11:08:53 +01:00
Johannes Meyer
adc28c5a9a Controller: Give the view mode switcher an id 2021-01-14 11:08:53 +01:00
Johannes Meyer
4314f9decd Basic changes to integrate ipl/stdlib/Filter and ipl/web/Filter 2021-01-14 11:08:53 +01:00
Johannes Meyer
0aacc44c2f Controller: Set redirect url for the search bar in Form::ON_SENT 2021-01-14 11:08:53 +01:00
Johannes Meyer
2c7e24a017 Controller: Give the pagination control an id 2021-01-14 11:08:53 +01:00
Johannes Meyer
f28b3c6575 Controller: Allow to pass a filter to method filter()
It's not always the request's filter that should be used.
2021-01-14 11:08:53 +01:00
Johannes Meyer
31cbf5b94f Controller: Properly re-add boolean params upon search bar redirects 2021-01-14 11:08:53 +01:00
Johannes Meyer
07dae00410 Controller: Add showCompact to a search bar's suggestion url
Otherwise controls will appear in the suggestion dropdown.
2021-01-14 11:08:53 +01:00
Johannes Meyer
95c05195f8 Controller: Add method handleSearchRequest
Class SearchBar doesn't handle this so something
else has to. That's the controller itself then.
2021-01-14 11:08:53 +01:00
Johannes Meyer
16a255ca34 Controller: Move SearchBar initialization into its own method 2021-01-14 11:08:53 +01:00
Johannes Meyer
d8aae94331 Controller: Don't pass search columns to the SearchBar
They're now obsolete.
2021-01-14 11:08:53 +01:00
Johannes Meyer
802d23427d Controller: Class FilterEditor is now called SearchBar 2021-01-14 11:08:53 +01:00
Johannes Meyer
8724130ce2 Controller: Utilize FilterEditor::getFilter() instead of assembleFilter 2021-01-14 11:08:53 +01:00
Johannes Meyer
4c6e999fd3 Controller: Don't add redundant parentheses when applying new filters 2021-01-14 11:08:53 +01:00
Johannes Meyer
8998f5ad8f [WIP] Basic changes to integrate the new filter editor 2021-01-14 11:08:53 +01:00
Johannes Meyer
7a9442dd61 Controller: Don't shift view, it's not used anymore 2020-06-04 09:33:00 +02:00
Johannes Meyer
98c2e9f7bf Controller: Already shift filter params in createFilterControl() 2020-05-28 16:10:52 +02:00
Johannes Meyer
1c3221f3fe Controller: Passthrough params to preserve in method createFilterControl()
Also restores params which are already shifted at call-time. It's therefore
not important when method `createFilterControl()` is called. This still does
not apply to params which are to be ignored by the filter control as these
need to be shifted in advance.
2020-05-19 12:23:26 +02:00
Johannes Meyer
5e441c93a0 Add license note to every file 2020-03-13 10:36:24 +01:00
Eric Lippmann
4a7397857f Use interface Paginatable 2020-03-12 15:50:42 +01:00
Johannes Meyer
d2f135a39e Controller: Utilize our own error controller
refs #24
2020-03-12 10:34:03 +01:00
Johannes Meyer
f01c8b5c89 Controller: Ensure parameter view is non-existent in getFilter() 2020-01-15 15:50:41 +01:00
Eric Lippmann
c08187f69f Remove obsolete method Controller::getRedis() 2019-12-12 14:16:33 +01:00
Eric Lippmann
dd1c46aed3 Controller: Use trait for the database connection 2019-12-11 21:11:38 +01:00
Eric Lippmann
e17d0462de Add Controller::createSortControl() 2019-12-11 16:13:55 +01:00
Johannes Meyer
0359cecb5a
Merge pull request #5 from Icinga/feature/autorefresh
Make some routes autorefresh
2019-12-11 15:06:39 +01:00
Johannes Meyer
1cc43170fb css: Fix horizontal overflow in dashlets 2019-12-11 15:03:02 +01:00
Johannes Meyer
0294d118f4 Controller: Add missing parent call in preDispatch() 2019-12-11 09:00:22 +01:00
Johannes Meyer
448051a75f Controller: Use single quotes for strings when exporting sql queries 2019-12-10 14:56:54 +01:00
Johannes Meyer
2e3ad8a57d Controller: Don't wrap numbers with " when exporting sql 2019-12-09 11:37:43 +01:00
Johannes Meyer
8fd2b5fdf2 Controller: Wrap resource config in ipl\Sql\Config
Without this the driver options are ignored.
2019-12-05 14:42:57 +01:00
Eric Lippmann
57348e69d5 Add Controller::getFilter() 2019-12-03 11:28:45 +01:00
Johannes Meyer
4875c06bb9 Apply monitoring restrictions in all controllers 2019-12-03 09:55:48 +01:00
Johannes Meyer
ccd0709fba Controller: Add method applyMonitoringRestriction 2019-12-03 09:19:36 +01:00
Eric Lippmann
0f6374cb8e Controller: Load module monitoring
We still depend on some classes from the monitoring module, e.g. command
forms. In case monitoring isn't loaded, we load it in the base
controller class.
2019-11-27 13:19:57 +01:00
Johannes Meyer
7de20895a7 Controller: Allow to export multiple queries 2019-11-05 12:37:34 +01:00
Eric Lippmann
64ccdedd06 Controller::getDb(): Set SQL_MODE 2019-11-05 09:22:54 +01:00
Eric Lippmann
77b4930098 Rename to Icingadb 2019-11-05 01:07:30 +01:00
Eric Lippmann
10f58fb4a0 Rename library/Eagle to library/Icingadb 2019-11-05 01:06:28 +01:00
Renamed from library/Eagle/Web/Controller.php (Browse further)