Commit Graph

14 Commits

Author SHA1 Message Date
Cai Hui ed5462edac Fix pylint error:H405
Fix pylint  H405: multi line docstring summary not separated with an empty line

Change-Id: Ic2579afbc20319fc5e35c5170cf33f1e39a8e7f7
2021-11-06 19:27:41 +08:00
Akihiro Motoki 6bf20357fe Django 2.0 support
Replace django.core.urlresolves with django.urls

(In Django 2.0) The django.core.urlresolvers module is removed
in favor of its new location, django.urls.
It was deprecated in Django 1.10:
https://docs.djangoproject.com/en/2.0/releases/1.10/#id3

Note that this commit does not add py35dj20 like other horizon plugins
because there is no actual python unit tests in freezer-web-ui.

Older Django unit tests were dropped from tox.ini
as horizon dropped Django <=1.10 support in Rocky.

Change-Id: I38f3f05655324f2a5f38c6e8c6ab53ebaa42d4c8
2018-05-14 02:34:28 +09:00
Memo Garcia dc8c12afef Better error message in horizon
Change-Id: I74384e092cb02c1f7a1979e7fa7a5e555befcd97
2017-03-10 17:02:28 +00:00
zhangguoqing b1bc327bd1 Replaces uuid.uuid4 with uuidutils.generate_uuid()
Openstack common has a wrapper for generating uuids. We should
use that function when generating uuids for consistency.

Change-Id: Ibd4ca5b604858c5257524ba33173369d2a0b1e99
Closes-Bug: #1082248
2016-12-07 05:56:35 +00:00
Jenkins b31f3c3665 Merge "Use correct parameter when handling exceptions" 2016-03-24 11:20:58 +00:00
Jonas Pfannschmidt c66c23ec4e Use correct parameter when handling exceptions
Before this fix, error handling code passed the view rather than the request object to exeptions.handle().
This resulted in an exception in the error handling code which made the actual error harder to identify.

Also added a check to see if the redirect goes to the same page which would result in an endless loop.

Fixes bug: 1555642

Change-Id: Ie941ff4d595a375e5fa808703b146e86d4d56e1f
2016-03-10 13:55:28 +00:00
Memo García 1333614b4e Sync job status between scheduler and ui
Resolves bug: 1545682
Change-Id: I47f11677415553f8d870a65f370f453337dff064
2016-02-15 11:47:56 +00:00
Jenkins 00df6a8ffb Merge "Better logging for freezer ui" 2016-01-13 11:02:36 +00:00
Memo García 17f915e032 Enable restore from date in ui
Resolves bug: 1532801

Change-Id: I08dae9b39def792d2f3b0332ed1a7eaaf778eb7c
2016-01-11 13:31:23 +00:00
Memo García 3d7f4226b6 Better logging for freezer ui
Add a LOG.error(error.message) in the shield decorator to save those
logs in case of an exception.

Resolves bug: 1532772

Change-Id: Ic43a5a7eb048512f6079e56e2230aaa954a1449d
2016-01-11 11:44:04 +00:00
Memo García f64e3fef94 Fix for client_id wihtout underscores
If a client_id does not contains an underscore the ui fails to render the web page,
this commit fix that

Resolves bug: 1524461

Change-Id: I4183af3cad004634a8aff60561f7e1d209504b92
2015-12-09 19:15:54 +00:00
memo 1435d33732 General dashboard enhancements
rename _50_freezer.py to _50_freezer.py.example
updated readme to point to freezer launchpad
improved readability for actions and jobs in the ui

Change-Id: Ib07719e5f91443ea6716f940b6b125b872505088
2015-11-26 15:03:01 +00:00
memo 1c5a79cdef Restore from swift, local and ssh from the dashboard
Restore a backup from the dashboard now supports different storage media to restore from

Change-Id: I303785be5c212c3c30f41d8c3dbf1c23f7818b73
2015-11-25 14:35:35 +00:00
memo b08558eba4 Improved horizon dashboard for freezer
action, job, session, backup, clients are now objects in api.py
shield decorator to avoid having boilerplate code in views
move from freezer_ui to disaster_recovery url
improved actions edition in a job
javascript lint
added clients panel
added actions panel
improved restore functionality from the dashboard

Change-Id: I23aed516bcde3a40b24144b05f858d1e3a49a796
2015-11-12 16:21:27 +00:00