Module: check_mk
Branch: master
Commit: b6a64f1a52b9e6d2202de9539c77cb070eb838cd
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b6a64f1a52b9e6…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu Feb 23 11:52:02 2017 +0100
Combined graphs: updated TODO
Change-Id: I2b9d8a7381ec2af40cfbd0b14cfe878656821d51
---
ZUTUN.graphing | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/ZUTUN.graphing b/ZUTUN.graphing
index 15dc407..12c8392 100644
--- a/ZUTUN.graphing
+++ b/ZUTUN.graphing
@@ -15,9 +15,9 @@
müssen wir mehrfach im Kreis "rumfahren".
-[3] Implementierung von "Average": einfach die kleine Funktion
- schreiben, die auch None korrekt berücksichtig. Dann
- im Graphdesigner das Average auch einbauen.
+[3] au: Implementierung von "Average": einfach die kleine Funktion
+ au: schreiben, die auch None korrekt berücksichtig. Dann
+ au: im Graphdesigner das Average auch einbauen.
[4] Titel der Graphen selbst
Module: check_mk
Branch: master
Commit: 8864bdb758d40e0c37bd4f1513fab50bd3015e2f
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=8864bdb758d40e…
Author: Andreas Umbreit <au(a)mathias-kettner.de>
Date: Tue Feb 28 11:45:24 2017 +0100
Combined graphs: updating internal todo-list
---
ZUTUN.graphing | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/ZUTUN.graphing b/ZUTUN.graphing
index a302526..6b7e56a 100644
--- a/ZUTUN.graphing
+++ b/ZUTUN.graphing
@@ -4,17 +4,17 @@
[7] Graph zu Report hinzufügen.
-[9] au: Fall, dass ein Graph negative Metrik hat ("-line", "-area", "-stacked")
+DONE: [9] au: Fall, dass ein Graph negative Metrik hat ("-line", "-area", "-stacked")
-[10] au: Graphen mit mehreren Areas, saubere Stacks bilden.
- au: Wenn die erste Metrik line oder area ist, nimmt man area,
- au: sonst stacked. Beispiel zum Testen: Filesystem-Graph. Bei Sum kommt
- au: aktuell nur die Hälfte raus wie bei Stacked - sollte aber ja das
- au: gleiche Ergebnis zeigen.
- au: Aktueller Status: Umgesetzt fuer "area"
- au: Linie bei stacked: hier verwenden wir die Summe. Allerdings muss
- au: man das auch in der Beschriftung der Linie dann korrekt machen.
+DONE: [10] au: Graphen mit mehreren Areas, saubere Stacks bilden.
+ au: Wenn die erste Metrik line oder area ist, nimmt man area,
+ au: sonst stacked. Beispiel zum Testen: Filesystem-Graph. Bei Sum kommt
+ au: aktuell nur die Hälfte raus wie bei Stacked - sollte aber ja das
+ au: gleiche Ergebnis zeigen.
+ au: Aktueller Status: Umgesetzt fuer "area"
+ au: Linie bei stacked: hier verwenden wir die Summe. Allerdings muss
+ au: man das auch in der Beschriftung der Linie dann korrekt machen.
[12] Limit auf Menge der dargestellten Objekte.
Module: check_mk
Branch: master
Commit: 90d34734804eabf7ac51de6b884b646c515b08f1
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=90d34734804eab…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu Feb 23 13:35:16 2017 +0100
Combined graphs: meaningfull title of graph page
Change-Id: Ib48243aaeabe53a96e70b666057b41540a8e7930
---
ZUTUN.graphing | 5 -----
web/htdocs/views.py | 1 +
2 files changed, 1 insertion(+), 5 deletions(-)
diff --git a/ZUTUN.graphing b/ZUTUN.graphing
index 1755fa0..edf4973 100644
--- a/ZUTUN.graphing
+++ b/ZUTUN.graphing
@@ -62,11 +62,6 @@
[14] Import views und visuals irgendwie aufrüamen
-[15] Seite der Combined graphs: Hier muss der Titel der View irgendwie noch
- sauber rein. Eventuell einfach den Titel in einer URL-Variable mitschleifen.
- Auch die Art der Darstellung (Summe, etc.) muss im Titel stehen.
-
-
[16] Prüfung auf eine einheitliche Unit? Brauchen wir das? Im Originalcode ist
von den normalen Templates.
diff --git a/web/htdocs/views.py b/web/htdocs/views.py
index 3569fc6..450da93 100644
--- a/web/htdocs/views.py
+++ b/web/htdocs/views.py
@@ -2151,6 +2151,7 @@ def show_context_links(thisview, datasource, show_filters,
html.makeuri([
("single_infos", ",".join(thisview["single_infos"])),
("datasource", thisview["datasource"]),
+ ("view_title", view_title(thisview)),
],
filename="combined_graphs.py"), "pnp")
Module: check_mk
Branch: master
Commit: 2ad67c3754f9a779e682fc6e3a5f7cd1c041534e
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=2ad67c3754f9a7…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Thu Mar 2 12:01:25 2017 +0100
update for #4452
Change-Id: Ieeef5f9cf4b006470db9314c0a418b33dc7fa5d3
---
.werks/4452 | 7 +++++++
web/htdocs/sidebar.py | 49 +++++++++++++++++++++++++++++++------------------
2 files changed, 38 insertions(+), 18 deletions(-)
diff --git a/.werks/4452 b/.werks/4452
index bb36ca9..96c2171 100644
--- a/.werks/4452
+++ b/.werks/4452
@@ -28,3 +28,10 @@ in the default search
Additionally, you can modify the matching behaviour for a specific filter.
When a match is found you can continue the search, abort the search and show all results
or abort the search and show only the results for the current filter.
+
+
+Search (magnifying glass) behaviour: If there are multiple topics shown in the
+dropdown result, the topmost topic is shown in the resulting page, since not
+all topics can be combined effectiviely.
+Keep in mind that you can configure the topic ordering in the global settings.
+
diff --git a/web/htdocs/sidebar.py b/web/htdocs/sidebar.py
index 9186a0d..49cc064 100644
--- a/web/htdocs/sidebar.py
+++ b/web/htdocs/sidebar.py
@@ -897,6 +897,28 @@ class LivestatusSearchConductor(object):
} [self._livestatus_table]
+ def get_search_url(self):
+ exact_match = self.num_rows() == 1
+ target_view = self._get_target_view(exact_match = exact_match)
+
+ url_params = []
+ for plugin in self._used_search_plugins:
+ match_info = plugin.get_matches(target_view,
+ exact_match and self._rows[0] or None,
+ self._livestatus_table,
+ self._used_filters,
+ rows = self._rows)
+ if not match_info:
+ continue
+ text, url_filters = match_info
+ url_params.extend(url_filters)
+
+ return html.makeuri([("view_name", target_view),
+ ("filled_in", "filter")] + url_params,
+ delvars = "q",
+ filename = "view.py")
+
+
def create_result_elements(self):
self._elements = []
if not self._rows:
@@ -1015,25 +1037,16 @@ class LivestatusQuicksearch(object):
def generate_search_url(self):
self._query_data()
- exact_match = len(self._rows) == 1
- target_view = self._get_target_view(exact_match = exact_match)
-
- url_params = []
- for plugin in self._used_search_plugins:
- match_info = plugin.get_matches(target_view,
- exact_match and self._rows[0] or None,
- self._livestatus_table,
- self._used_filters,
- rows = self._rows)
- if not match_info:
- continue
- text, url_filters = match_info
- url_params.extend(url_filters)
+ # Generate a search page for the topmost search_object with results
+ search_object = None
+ for search_object in self._search_objects:
+ if search_object.num_rows() > 0:
+ use_search_object = search_object
+ break
+ else:
+ return
- return html.makeuri([("view_name", target_view),
- ("filled_in", "filter")] + url_params,
- delvars = "q",
- filename = "view.py")
+ return search_object.get_search_url()
def _query_data(self):