Module: check_mk
Branch: master
Commit: b6681ac92dd35f973fce539bd380874a30908d91
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b6681ac92dd35f…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Fri Oct 20 14:44:15 2017 +0200
Overhauled ListColumn handling.
The previous isEmpty() and makeContains() methods were not flexible enough
to handle upcoming features like regexp matching, so they were replaced by a
more general mechanism: Every ListColumn now knows how to calculate their
contents as a stream of strings. As a first approximation, we simply use a
vector for this stream, we can later improve performance by replacing that
with a range or iterators.
Several bugs regarding AuthUser were fixed on the way: Often the AuthUser
was just used for rendering a column, but omitted for filtering.
Change-Id: I773150c8e6e7f5c29951d762314b56eb504b766c
---
livestatus/src/CommentColumn.cc | 39 +++++--------------
livestatus/src/CommentColumn.h | 10 ++---
livestatus/src/ContactGroupsColumn.cc | 51 ++++++------------------
livestatus/src/ContactGroupsColumn.h | 28 +++-----------
livestatus/src/ContactGroupsMemberColumn.cc | 17 ++++++--
livestatus/src/ContactGroupsMemberColumn.h | 19 +++++----
livestatus/src/ContactsColumn.cc | 60 -----------------------------
livestatus/src/ContactsColumn.h | 55 --------------------------
livestatus/src/DowntimeColumn.cc | 35 ++++-------------
livestatus/src/DowntimeColumn.h | 8 ++--
livestatus/src/HostContactsColumn.cc | 16 ++++++--
livestatus/src/HostContactsColumn.h | 19 +++++----
livestatus/src/HostGroupsColumn.cc | 49 ++++++-----------------
livestatus/src/HostGroupsColumn.h | 11 ++----
livestatus/src/ListColumn.cc | 5 +--
livestatus/src/ListColumn.h | 19 +++++----
livestatus/src/ListFilter.cc | 29 +++++++-------
livestatus/src/ListFilter.h | 9 +----
livestatus/src/Makefile.am | 1 -
livestatus/src/ServiceContactsColumn.cc | 16 ++++++--
livestatus/src/ServiceContactsColumn.h | 19 +++++----
livestatus/src/ServiceGroupsColumn.cc | 50 ++++++------------------
livestatus/src/ServiceGroupsColumn.h | 11 ++----
livestatus/src/TableEventConsole.cc | 1 +
livestatus/src/TableEventConsole.h | 31 +++------------
livestatus/src/TableHosts.cc | 2 +-
livestatus/src/TableServices.cc | 2 +-
27 files changed, 182 insertions(+), 430 deletions(-)
Diff:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=b6681ac92d…