Branch: refs/heads/2.0.0
Home:
https://github.com/tribe29/checkmk
Commit: a93f09a991f9de3c679f35d06a9d740b37d1d4e0
https://github.com/tribe29/checkmk/commit/a93f09a991f9de3c679f35d06a9d740b3…
Author: Lars Michelsen <lm(a)tribe29.com>
Date: 2021-02-01 (Mon, 01 Feb 2021)
Changed paths:
A .werks/12031
M cmk/gui/plugins/views/availability.py
M cmk/gui/views.py
M cmk/gui/visuals.py
M tests/unit/cmk/gui/test_visuals.py
Log Message:
-----------
12031 FIX Views: Views are now asking for missing contexts just like dashboards
When a view that requires a context (e.g. as host name) is opened without
a "host" HTTP request variable, the view only showed an error message and
stopped rendering the view. The user then had to add the missing context
information to the view configuration or to the URL variables.
From now on, the view is still displaying a warning
message like "Unable to
render this view, because we miss some required context
information (host).
Please update the form on the right to make this view render.", but also
displaying the filter form asking the user to provide the missing context.
Change-Id: I2338f9645629c4934a3d37e44b8e565b42434358