Module: check_mk
Branch: master
Commit: 03c3c9bbea1f24de857fc13a9db17d0e21c62303
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=03c3c9bbea1f24…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Mar 4 15:18:49 2019 +0100
Move user sorter handling to View
* The configured sorting of the rows may be modified by the user
by clicking on the column header
* The user sets the HTTP variable "sort" in this moment
* Moved processing of this HTTP variable out of show_view() and
_get_separated_sorters().
* The HTTP variable is now processed equal to other user modifyable
variables (row_limit and only_sites at the moment) and set on
the View() instances to make it avaiable to other code parts.
Change-Id: Ibf79c222878067d3c61d5a1cdd5300af1e12bd7b
---
cmk/gui/mobile.py | 2 ++
cmk/gui/plugins/dashboard/view.py | 1 +
cmk/gui/plugins/views/utils.py | 51 +++++++++++++--------------------------
cmk/gui/views.py | 47 +++++++++++++++++++++++++++++-------
tests/unit/cmk/gui/test_views.py | 14 +++++++++--
5 files changed, 70 insertions(+), 45 deletions(-)
Diff:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=03c3c9bbea…