Commit Graph

78 Commits

Author SHA1 Message Date
manchandavishal d325cac41c Address RemovedInDjango40Warning
django.utils.translation.ugettext(), ugettext_lazy(), ugettext_noop(),
ungettext(), and ungettext_lazy() are deprecated in favor of the
functions that they’re aliases for: django.utils.translation.gettext(),
gettext_lazy(), gettext_noop(), ngettext(), and ngettext_lazy().
For more info. please refer [1].

https://docs.djangoproject.com/en/4.0/releases/3.0/#id3

[1] https://review.opendev.org/c/openstack/horizon/+/827092

Change-Id: I6930fc8a803165cc73a477fd5fdbcb736f9c06fd
2023-01-18 15:29:51 +05:30
manchandavishal 3025f2b4f0 Migrate to AngularJS v1.8.2
This patch aligns current code with AngularJS v1.8.2 requirements.

Change-Id: I3b0000c91746d136fb0a2a53b3a7089b4b8298f2
2022-06-28 17:09:58 +05:30
manchandavishal d2eec6e273 Address RemovedInDjango40Warning
In Django 3.1, django.conf.urls.url() is deprecated
in favor of django.urls.re_path(). For more info see [1]
These were already replaced in Horizon repo by [2].

[1] https://docs.djangoproject.com/en/4.0/releases/3.1/#id2
[2] https://review.opendev.org/c/openstack/horizon/+/827093

Change-Id: I98bcf28d6a82af7f08978fdecb7f5dc7d02e3972
2022-04-29 16:44:50 +05:30
NoorYameen 80bf67779b fix alarm rca view
Change-Id: If2152bd721e81cd5fdfa25af1b94e820f56c9f84
story: 2005502
task: 30604
Depends-On: I4044338f7c62016c1fc10756fbf8ffc8485c34b1
2020-04-24 11:15:38 +00:00
Michal Arbet d181623f22 Replace embedded static files with XStatic-*
Remove embedded js, add reference in settings,
add requirement xstatic libs.

Change-Id: I07685dfbde7c96c5b8da7e93af291df16c3b8bad
Depends-On: https://review.opendev.org/712744
Story: #2004051
2020-03-12 18:26:19 +01:00
Eyal eaacb594e2 Update hacking and fix warning
Change-Id: I4cc01d1f496cf216619e763be2719b60d164d25d
2020-01-07 15:36:51 +02:00
Ziyu Bai 0cc687f243 Add unselect node in Entity Graph
Users can click blank area to unselect a node.

Change-Id: Id17e5d1a465917e4407b39bfe67414d67b168e2e
2019-12-24 18:44:21 +08:00
Ziyu Bai 6863a5f13d Change node radius to default when searching node
When searching a node, the radius will be made to 14. It looks like smaller than normal.

Change-Id: I7fb589367466f37057b3cc67d367805056fdf191
2019-12-23 19:41:39 +08:00
Ziyu Bai d19f5008e4 Solve the problem when adding template
Fix the bug that when user adding a template in dashboard, it always toasts "Unable to validate the Vitrage Templates service.".

Change-Id: Ifc4974150308c8b648c26f62129fac08d16e19e1
2019-12-16 11:06:07 +08:00
Ivan Kolodyazhny 168bb73157 Remove unused version modules
These modules are not used anywhere and is nont working.

Change-Id: I36d847857c6ba162ae82679af5ea39f4e598dfd5
2019-04-30 10:20:26 -06:00
Ivan Kolodyazhny e8a3b75fdf Use XStatic-D3 instead of vendorized d3.js
According to [1] d3.js will be loaded by horizon on the each page
so we don't need to include it manually.

[1] 4e0ee573db/openstack_dashboard/utils/settings.py (L196)

Story: 2004051
Task: 30403

Change-Id: Icb56905a802f9efba7f9c6558372b62ab5eb9bd4
2019-04-10 07:30:42 +00:00
Zuul aa9ee28a69 Merge "Adding equevalance templates discarding the validation results" 2019-03-26 14:46:33 +00:00
NoorYameen b592e5d8c5 Adding equevalance templates discarding the validation results
Change-Id: I37ab5a18e25b99484d69667a1de8fd504c387722
2019-03-26 13:32:00 +00:00
NoorYameen a4f61cb325 Enable changing 'Ended' date filter in Vitrage alarm history view
Change-Id: Ie657c5553c474733a9650597e789e5aceab22ba8
story: 2005273
task: 30123
2019-03-21 06:53:24 +00:00
NoorYameen 94ead80eb5 Support add template with parameters in Vitrage UI
Change-Id: I626fd15ba36538f1a2194041ac739b1d6cc3ecf5
Story: 2004056
Task: 29571
2019-03-10 12:38:10 +00:00
Zuul 5f61f8dcad Merge "Add vitrage-dashboard integration tests" 2019-02-27 08:41:42 +00:00
Zuul 19829bfdee Merge "Support Version 3 template format displaying on template view" 2019-02-18 13:24:53 +00:00
Zuul d600b9d258 Merge "Make the alarm list in Vitrage Topology view related to the selected entity" 2019-02-18 13:13:46 +00:00
Noor Yameen 19cb44d598 Support Version 3 template format displaying on template view
Change-Id: Idbb8ffcf50d5c1a1c2f5a5067df6a551297264bb
2019-02-18 12:41:58 +02:00
Ivan Kolodyazhny 2a7b111307 Add vitrage-dashboard integration tests
This patch adds basic tests to verify that vitrage-dashboard is
installed and could be opened.

Also it removes oslotest which is not used.

vitrage-dashboard-integration-tests job is added in a non-voting mode.

Change-Id: I03c6a28014a73605b72441a0241e1dc1cd3f908c
2019-02-17 15:25:54 +02:00
Zuul cb16dd33a4 Merge "Make "ringing" bell alarm icon more clear when alarm is inactive" 2019-02-03 11:59:29 +00:00
Iswarya_Vakati ff83cd03df Removes unnecessary utf-8 encoding
This patches removes unnecessary utf-8 encoding in
doc/source/conf.py
vitrage_dashboard/alarms/__init__.py
vitrage_dashboard/dashboard/__init__.py
vitrage_dashboard/dashboard/tests/base.py
vitrage_dashboard/dashboard/tests/test_vitragedashboard.py
vitrage_dashboard/entities/__init__.py
vitrage_dashboard/templates/__init__.py

Change-Id: Ieedc14b0fe28f7f5e54c140127b4277889072be6
2019-02-01 22:50:29 +00:00
Noor Yameen c3daedc55e Make "ringing" bell alarm icon more clear when alarm is inactive
Change-Id: I5c4a4e9875f01f69b6fbebaeb8862c15ca50a369
story: #2004728
task: #28766
2019-01-31 09:02:01 +02:00
Noor Yameen 102d0089fe Make the alarm list in Vitrage Topology view related to the selected entity
Change-Id: I1de754ada13262ffa0f7a76de2c1b390f31a36f6
story: #2004725
task: # 28763
2019-01-28 12:33:26 +00:00
Noor Yameen 4016627da4 Support auto-refresh in Vitrage Alarm view
Change-Id: I2041f0edf9f403837dfa250d55dae566e10dfe64
story: #2004726
task: #28764
2019-01-24 14:03:34 +00:00
Zuul 3e541aeced Merge "Update hacking version to latest" 2019-01-20 20:01:51 +00:00
Noor Yameen f86f4b093f show yaml in correct way
Story: 2004729
Task: 28767

Change-Id: I6213a64cbec3173fe64ff1576aba196dd1cfd3bf
2019-01-15 08:34:21 +00:00
Noor Yameen ecf05d58bc update end-date in alarm history
Change-Id: Ib338fddcb7f64256e2714a89b342848905d2b48a
Closes-bug: #28765
2019-01-14 10:17:50 +02:00
jacky06 c9eff7caf2 Update hacking version to latest
Use latest release 1.1.0 and compatible changes w.r.t pep8

Change-Id: I7d0661b59684271d08e240299a2a23a6d16da95d
2019-01-12 03:45:28 +00:00
Zuul e67498ff9f Merge "Reorganize vendorized static files" 2018-12-12 11:38:20 +00:00
Ivan Kolodyazhny 2ac455370d Drop unnecessary executable flags
This patch also adds checks for executable files in
pep8 job.

Change-Id: I862ee6c891af05c58ab2aca1178cfd984efb2d3c
2018-12-05 14:10:27 +02:00
Ivan Kolodyazhny 843e499202 Reorganize vendorized static files
Since Horizon doesn't build static files using npm, we don't need
to keep npm-relade configs.

Also this patch removes minified JavaScript files which are not
used directly by Horizon and lead to some issues with licenses
during packaging.

This commit prepares vitrage-dashboard to switch to use XStatic-*
packages instead of vendorized scripts by removing all unnecessary
files from the repo.

Change-Id: I33eda3d4cbb0911143deedafb1bce4ee7101e06f
Story: 2004051
Task: 27057
2018-12-05 13:47:47 +02:00
Ifat Afek 02428f28d3 Hide some alarm properties in the UI.
The following alarm properties should not be visible in the UI: 
vitrage_cached_id, vitrage_resource_type, vitrage_resource_id

Change-Id: I006e7b6a04056a541a9524a24ae0fe4c3a80a618
2018-11-08 11:16:33 +00:00
Muhamad Najjar 5c818583f4 templates list: update displayed timestamps in vitrage dashboard according to horizon timezone
Change-Id: I69cec8aacd7a8d70b4a39280f534a8c3015bacbd
2018-10-31 13:45:56 +00:00
Zuul 66d140dd04 Merge "Do not use mutable argument" 2018-09-02 08:00:39 +00:00
Muhamad Najjar 05d1518d55 update displayed timestamps in vitrage dashboard according to horizon timezone
Change-Id: I8a0acc70b875de47585d76653c5db94de8c7f504
2018-08-22 10:58:37 +00:00
Niv Oppenhaim 343355df3f Add refresh and auto-refresh buttons to template list
Change-Id: Ifb92f76a88c3b3ac1c1ed6c8ae1304f0c97380f8
2018-08-19 10:43:06 +00:00
wangqi d637fba4bd Do not use mutable argument
Change-Id: I1cee046b27f63698fe407612441e23e64615bd9d
2018-08-14 07:47:02 +00:00
Zuul 31ee514f05 Merge "Add the new ``datasource_name`` property to the black list, so it won't be displayed" 2018-08-08 06:59:05 +00:00
Alon Heller 385f8ba1ec Alarm history - client side implementation
Change-Id: Id60b01fbc2d33a984ee955089aebab0da01bdc60
Depends-On: I03a303e79ee12a399d32db3bfebad98eef50b52d
2018-08-07 06:07:06 +00:00
Ifat Afek ca7c912dfd Add the new ``datasource_name`` property to the black list, so it won't be displayed
Change-Id: I89b6a24366ebde4cab72f3ecb3e5dc1654af10a9
Depends-On: I953137dc870f48ed42acba93789bb947809c41cc
2018-08-02 11:37:36 +00:00
Zuul 45108125a7 Merge "Add "add template" and "delete template" buttons to vitrage template view." 2018-08-01 13:20:08 +00:00
Niv Oppenhaim 4ae81c30d4 Add "add template" and "delete template" buttons to vitrage template
view.

Story: 2002701
Task: 22536

Depends-On: I156ec1665d98f247f01a1b0a5adaf26ab1eb09ce
Change-Id: If0cb54d7dfabda57491652c13ff203f6da982dba
2018-08-01 12:18:24 +00:00
Saju M f1ff41eb84 AngularJS unittest with Jasmine and Karma for gate check
Change-Id: I156ec1665d98f247f01a1b0a5adaf26ab1eb09ce
Co-Authored-By: Saju Madhavan <sajuptpm@gmail.com>
Implements: blueprint angularjs-unittest-with-jasmine-and-karma
2018-07-22 15:55:14 +05:30
Zuul 470ae7d22d Merge "Add templates panel to admin section" 2018-06-28 06:44:49 +00:00
Yuval Adar 12d42c1782 Add templates panel to admin section
Task: #22577
Story: #2002729

Change-Id: I82afa98506ca0b806277369dd423dc93690f1d28
2018-06-27 14:36:06 +03:00
Muhamad Najjar e48f1ca98d fix time format to show in 24h
Change-Id: I8c592cb65c749528b233afe4036478960e193f4d
Task: 22524
Story: 2002696
2018-06-27 11:32:46 +00:00
Muhamad Najjar 8c6edbbf36 fix size of heat filter box
Change-Id: I42b1a60f285040910c2c216f64c11fa157315935
2018-05-08 09:04:47 +00:00
Muhamad Najjar 493a5656fe Refresh entity graph when operational state is changed
Change-Id: I3801279b7abe37ddd17b1f4da550f8f989bcc43b
2018-05-03 07:48:32 +00:00
Alon Heller 7c680aa86e Angular 1.58 deprecated code updated success => then, error => catch
Change-Id: Ice5a6a31c6c436471d6f46fe12d5447ff6eac365
2018-02-11 15:33:23 +02:00