Commit Graph

7908 Commits

Author SHA1 Message Date
Eric Lippmann c5f444efe8 lib: Don't alias Zend classes in the ActionController 2015-08-20 16:10:39 +02:00
Eric Lippmann 6ca02a519b lib: Fix type hint of Controller::getResponse() 2015-08-20 16:07:24 +02:00
Eric Lippmann 1c5a784022 lib: Move Request::sendJson() to Response::sendJson()
refs #9606
2015-08-20 16:05:45 +02:00
Eric Lippmann 870b73ae09 lib: Rename Request::getIsApiRequest() to ::isApiRequest()
There's no setter involved.

refs #9606
2015-08-20 16:02:25 +02:00
Eric Lippmann 62f0281a62 lib: Fix type hint of Controller::getRequest() 2015-08-20 16:00:24 +02:00
Eric Lippmann 1130e453f6 lib: Fix typos in the Form's PHPDoc 2015-08-20 15:57:52 +02:00
Eric Lippmann f9f813e50b lib: Fix PHPDoc of Form::populate() 2015-08-20 15:56:45 +02:00
Eric Lippmann 0ce4e12db8 lib: Fix type hints for Form::getElements() 2015-08-20 15:55:18 +02:00
Eric Lippmann 1b1223ea2e monitoring/API: Expose scheduling host downtimes
refs #9606
2015-08-20 15:54:33 +02:00
Eric Lippmann f27f1097ca monitoring: Don't require the child_hosts parameter when scheduling host downtimes
refs #9606
2015-08-20 15:54:03 +02:00
Eric Lippmann d8f866c2bc monitoring: Clone the filter before modyfing it in the IdoQuery 2015-08-20 15:50:02 +02:00
Eric Lippmann e914b733cd Handle API requests in the ErrorController
refs #9606
2015-08-20 15:49:37 +02:00
Eric Lippmann dd23bd9397 Form: Respond w/ JSON-encoded messages if API requests fail
refs #9606
2015-08-20 15:48:42 +02:00
Eric Lippmann 0fb495f541 monitoring/API: Add ActionsController w/ removeHostDowntime action
refs #9606
2015-08-20 14:25:12 +02:00
Eric Lippmann 2229665ec6 monitoring: Return an empty filter in Controller::getRestriction() if the authenticated user is not restricted
This is because applyFilter requires a filter object.
2015-08-20 14:24:06 +02:00
Eric Lippmann 432abb1d33 monitoring: Fix call for getting the URL parameters in DataView::handleRequest()
refs #9967
2015-08-20 14:23:03 +02:00
Eric Lippmann 71ff4512c3 lib/form: Bypass sent and submit handling if the form is an API target
refs #9606
2015-08-20 13:11:36 +02:00
Eric Lippmann dcb1502286 monitoring: Implement Controller::getRestriction()
Controller::applyRestriction() breaks fluent interfaces whereas Controller::getRestriction() doesn't.
2015-08-20 13:11:36 +02:00
Eric Lippmann e07cdd21ac lib: Add Request::sendJson()
refs #9606
2015-08-20 13:11:36 +02:00
Eric Lippmann 310dbdfde5 monitoring: Optimize imports in DataView 2015-08-20 13:11:36 +02:00
Eric Lippmann 4c1375834c monitoring: Add DataView::handleRequest() (WIP)
This method is work in progress as it's missing pagination, sorting and output format handling.

refs #9967
2015-08-20 13:11:18 +02:00
Johannes Meyer 23f0686936 Merge branch 'feature/validate-pgsql-version-9460'
resolves #9460
2015-08-19 14:45:10 +02:00
Johannes Meyer b7a389601d IdoResourcePage: Validate the version of a PostgreSQL server
refs #9460
2015-08-19 14:42:18 +02:00
Johannes Meyer 9282e1bce2 Merge branch 'master' into feature/validate-pgsql-version-9460 2015-08-19 14:04:37 +02:00
Johannes Meyer 63e639caf0 Handle module identification directly in the ActionController
Fixes some issues with more complex customisations in a
module's controller.
Obsoletes: 93f8297344
2015-08-19 13:39:46 +02:00
Johannes Meyer 036da072c5 Revert "ActionController: Give modules a chance to dynamically require auth"
This reverts commit 93f8297344.
2015-08-19 13:39:46 +02:00
Eric Lippmann 9ea3f73e83 monitoring: Fix query class names not matching the file name 2015-08-19 12:52:38 +02:00
Eric Lippmann 7abc5778ea Fix PHPDoc in the String helper 2015-08-19 12:50:05 +02:00
Johannes Meyer 65806fafbf MonitoredObject: Only select history entries for the respective object
And fix that the default sort order is not applied.

fixes #9963
2015-08-19 11:53:00 +02:00
Johannes Meyer 7812f6ddcc DataView: Remove obsolete $filter property 2015-08-19 11:23:40 +02:00
Johannes Meyer 6063eea34f doc: Suggest the correct backend identifier for ActiveDirectory
fixes #9959
2015-08-19 09:23:29 +02:00
Matthias Jentsch 34bf6bb11e Stop refresh on any error unless its an auto-refresh
Links with the same URL may still be user-triggered actions, which should cause the auto-refresh to be stalled. The old implementation assumed that user-triggered requests always have a different URL.

fixes #8975
2015-08-18 16:47:45 +02:00
Matthias Jentsch 0c2afe3c3b Clean up and conform to coding guidelines 2015-08-18 16:47:45 +02:00
Johannes Meyer b7ee867239 DbResourcePage: Validate the version of a PostgreSQL server
refs #9460
2015-08-18 16:20:25 +02:00
Johannes Meyer e7cfc25b04 DbTool: Add method getServerVersion()
refs #9460
2015-08-18 16:19:01 +02:00
Johannes Meyer 41ebb49c58 DbTool: Add method isConnected()
refs #9460
2015-08-18 16:18:25 +02:00
Alexander Fuhr 038fa29da8 notifications(view): Fix the wrong url for the service row
fixes #9597
2015-08-18 16:06:57 +02:00
Johannes Meyer a0fce449a9 Wizard: Fix that the sidebar and default header is shown 2015-08-18 14:56:25 +02:00
Alexander Fuhr 4848e36f1a IconImage: Fix the icon_image icon nfont usage
fixes #9582
2015-08-18 13:29:18 +02:00
Eric Lippmann e904c26445 monitoring: Fix fetch function in the BackendAvailabilityMenuItemRenderer
fixes #9942
2015-08-18 13:09:34 +02:00
Eric Lippmann 00e206096d monitoring: Don't rely on Icinga updating the is_currently_running column
From version to version this column seems to be buggy as it's not being updated when stopping Icinga.

refs #9942
2015-08-18 13:08:03 +02:00
Matthias Jentsch 7c7881659d Always replace requests in loader by non-GET requests
Fix issue that caused form submits to be aborted when there's already a pending autosubmit for the same url.

fixes #9024
2015-08-18 11:42:43 +02:00
Matthias Jentsch 2541b0eba4 Restore hover menu on reload
Remember the hovered menu and restore it on each reload.

fixes #8969
2015-08-18 11:42:42 +02:00
Matthias Jentsch 15ec564bc5 Use an easier distinctable "disabled" icon for module state
fixes #9908
2015-08-18 11:42:42 +02:00
Matthias Jentsch d51ecc3d72 Use better icons for resource and auth views
refs #9908
2015-08-18 11:42:42 +02:00
Johannes Meyer 93f8297344 ActionController: Give modules a chance to dynamically require auth 2015-08-18 11:28:02 +02:00
Johannes Meyer a6fb3d59f8 js: Disable text selection for multiselect tables only 2015-08-17 16:06:23 +02:00
Johannes Meyer 0ac2a8898a Merge branch 'feature/provide-a-complete-list-of-filter-columns-9029'
resolves #9029
2015-08-17 15:41:54 +02:00
Johannes Meyer e5f249270a Merge branch 'master' into feature/provide-a-complete-list-of-filter-columns-9029 2015-08-17 15:41:40 +02:00
Johannes Meyer 8b8fb6379d DataView: Provide default labels for non-labelled filter columns
refs #9029
2015-08-17 15:06:52 +02:00