To get the dimension value, urllib.parse.unquote() func is used in
MonascaProxyView._convert_dimensions. urllib.parse.unquote() func
requires str only until python3.8.
Change-Id: Ib52b4c2065dee10a96f1644cf1ec474b60147d87
This method is ussed in Grafana Dashboards with Horizon
Authentication. The panel wasn't able to display the metrics
when dimensions are used as filter.
Change-Id: Id6e92a371df39d2dfcfe8125ef50a76e295ab223
This patch is a clean-up patch for refactor-error-messages bp
which remove the exception message from base message otherwise
the same exception message display twice like
this https://ibb.co/XyFWMdz .
Depends-On: https://review.opendev.org/#/c/708069/
Change-Id: I1ddea97cdcaf4142d9dabcf4a629e805a9c1e152
The mock third party library was needed for mock support in py2
runtimes. Since we now only support py36 and later, we can use the
standard lib unittest.mock module instead.
Bump horizon to 18.3.0 in lower-constraints.txt since it is the
first version with "Use unittest.mock instead of third party mock"
change [1]
[1] 7eeb9e14f9
Change-Id: Ic64fffaeded18ac11ce438c77526e60a37aeaa1d
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.
Fix problems found by updated hacking version.
Remove hacking and friends from lower-constraints, they are not needed
for co-installing.
Change-Id: Ibef3bbaceb61612d678c542bc8c95da24a7e2c87
The default and preferred way of modifying the settings of Horizon
plugin is to add a configuration file to
openstack_dashboard/local/local_settings.d/ directory [1]. For that to
work we should use the settings from django.conf.settings and not from
monitoring.config.local_settings.
[1] https://docs.openstack.org/horizon/latest/configuration/settings.html
Story: 2006556
Task: 36644
Change-Id: I5cd66954ffb1169f3149cd6f705593efe3a15b13
When Grafana integration is not available, click the action button of
Graph Metric will go to a non-existing Grafana page.
Added logic to hide the Graph Metric button when Grafana integration
is not avaialable. Also added unit tests for the changes.
Story: 2005906
Task: 34165
Change-Id: I617a0c609450bf015ddf6e98fd672723a2660071
Purpose of this commit is to overwrite Django settings of Horizon.
Horizon team decided to set debug flag to True, which causes problem in our tests.
Error occurs after this Horizon commit:
b0e9c3135c
Change-Id: I4d677bb4522e315ab2e4386193deb52a82d7645f
Story: 2005336
Task: 30274
- The UI will call the monasca-api more than once to get all
metrics when the limit of API is exceeded.
- Added compatibility to cassandra and influxdb
Change-Id: I15c53c05517a6f8eb0fc29f3adc3667485ee6772
Story: 2004430
Task: 28091
Horizon test setting no longer depends on nose and related stuffs.
This commit cleans up nose related dependencies.
django_nose is unnecessary in test/settings.py.
The related settings are dropped.
Change-Id: Ic8683e670f472079bfbe57e1cdd0f9105a358023
We're going to switch to default Django test runner by default.
This patch renames test files to make tests descoverable by
Nose and Django test runners without addidional configuration.
Related blueprint: improve-horizon-testing
Change-Id: If4ee8dcd173c2f331bf34cf93c489029489c63ea
Fix problem with incorrect alarm status information for
multiple expressions alarm definition.
Story: 2001981
Task: 19592
Change-Id: Ie96c1be15f6b622f9be22dd1179fe7b4a73152b6
Only user with monasca-user role should have access to
monitoring panel.
Story: 2001895
Task: 14379
Depends-On: I16091dbd631a5e94d08598a23eeb3bdf97cf0a92
Change-Id: I79746010525784de4b66108e9d1fe749bd57675b
* set the maximum line length to 100
* cleaned up the codes for pep8
* removed pep8 check ignores
Change-Id: I5d3e2f13117638b0a8af051b9faa64ce1a2dd04e
Signed-off-by: Amir Mofakhar <amofakhar@op5.com>