Commit Graph

32 Commits

Author SHA1 Message Date
manchandavishal cc41dedbc5 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: I66118c1af551e69a2deabf87b37efa574233e93b
2022-04-29 16:44:48 +05:30
Qian Min Chen e28dfcf7d3 Remove the redundant attributes
DeleteInstance action inherits from tables.DeleteAction,
the parent class has the 'name', 'classes' and 'icon' attributes,
So remove the unused attributes.

Change-Id: I5ef01ce68edcd7e78ac95747cf5fd8d8f8c96c81
2018-07-19 17:48:08 +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
Ivan Kolodyazhny f2feb0f056 Use Horizon UT framework
Let's use Horizon unit-tests framework where it's
possible to have better cross-project integration.

Related blueprint: improve-horizon-testing

Change-Id: Ibfe2c062c54563e2bd35410459be8b5c7b2d550e
2018-04-20 11:52:38 +03:00
yang zhenming 569d1dba07 modify the wrong list name of schedule_unit to interval_uint
Closes-Bug: #1744625

Change-Id: I8bd3019405132251774434c82845fdb356e94435
2018-01-21 21:31:33 -08:00
yapeng d6ae33196b Replace patterns syntax by url
The old syntax using patterns is deprecated in Django 1.8, and is
removed in Django 1.10. The current version Django<1.11, this
patch fix the syntax.

Change-Id: I26564c97538c23378c0494739257b31dd8796f5a
Closes-Bug: #1709742
2017-08-10 03:03:19 +00:00
Jenkins d2069fc2b4 Merge "Modify "Interval" field to select format" 2017-04-05 10:21:30 +00:00
Jenkins 6037076e9c Merge "fixed the mistake in using update job web page" 2017-03-30 14:14:51 +00:00
Jenkins 4e94b1e1c0 Merge "Add the missing name in confirm delete modal" 2017-03-08 14:40:35 +00:00
Tong Shan bc2066f6bd fixed the mistake in using update job web page
In page "create job" configuration interval help information
is following some format,but when "update" is not the same.

Change-Id: I83761bbea9d6fd4b226254a8a018d27a792def1c
2017-03-02 00:18:44 +00:00
qiaomin 880b4f2619 Modify the 'Attach To Session' form to 'Bootstrap Modal'
Click the 'attach to session' button in the table row actions
of the 'Jobs' page, There should not switch to another page
and should open a 'Bootstrap Modal' form.

Change-Id: I3555224ce81ef1fa346adf95f18f3c592f7c0f2f
Closes-Bug: #1663272
2017-02-09 23:17:33 +08:00
qiaomin 7e3edaf05c Modify "Interval" field to select format
Modify the "Interval" filed in "Create Job" form
to select format, support user to choose 'Continuous',
'Weeks', 'Days' and so on. This makes the user input life easier.

Change-Id: Ida460d260d96c0b99f5ced035009221bba91b109
Closes-Bug: #1663235
2017-02-09 22:21:03 +08:00
qiaomin 58409a84de Add the missing name in confirm delete modal
Change-Id: Ifc28241aa22d1e97a59a35bd2ff8eff150a0b25b
Closes-Bug: #1658557
2017-02-07 23:10:55 +08:00
Jenkins fc2cb12b53 Merge "Use 'trimmed' for blocktrans in html page" 2017-02-02 16:17:23 +00:00
qiaomin ac7908c15e Remove the redundant "required=True"
The django form field default is "required=True", so this patch
remove the redundant "required=True" in the form.

Change-Id: Id2342cea882134099a43f2149e7b56168a015afe
2017-01-26 23:15:30 +08:00
qiaomin 7fb16fa84a Use 'trimmed' for blocktrans in html page
Add trimmed option to blocktrans, blocktrans trimmed
option removes newlines from contents of blocktrans
and replaces any whitespace at the beginning and end of a line into
a single space. This makes translator life easier.
More detail is described in the bug report.

Change-Id: I9a5c3e958260a94d8a44dc3946e25a690f00f30e
Closes-Bug: #1659559
2017-01-26 22:27:07 +08:00
Cao Xuan Hoang 42eb07b3f4 Remove logging import unused
This patch removes logging import unused in disaster_recovery

Change-Id: I453254206e4c91f005018cad9eff512a85a40df0
2016-11-15 16:29:24 +07:00
Memo Garcia d246ec11e7 Fixed Catch errors in horizon tables
When an action is performed from a table, errors are not being catched

Closes-bug: 1593355
Change-Id: I5bdb19dcc1079f2fceeb88e49c644048c60254ce
2016-06-16 18:50:44 +01:00
Memo Garcia 6ec918bc63 Enable edition of job actions
The ui is now able to add/remove/change order of actions in a job

Closes-bug: 1570305
Change-Id: I416000e6a45900a77069b6bad857d759f3b3bb61
2016-04-14 11:52:28 +01:00
Jenkins 4c8cdb2d37 Merge "Actions for a job no longer shows irrelevant actions for specific cases" 2016-03-29 10:22:38 +00:00
Memo Garcia a1541e6a59 UX improvements
Fix calendar to better display in small windows
Bump the number of results for listing items
Quick workaround to successfully listing items after being created

Closes bug: 1556939
Change-Id: Ibaf0a999a729197900b18c1f22fd819f5e11e797
2016-03-25 12:05:25 +00:00
Jenkins 61b5dee2ad Merge "Improve success messages when it takes time to display the action" 2016-03-10 14:35:08 +00:00
Jin Nan Zhang 9cc4126d52 Fixed importError urlresolvers
ImportError: No module named urlresolvers in horizon.utils.
Fixed this importError use django.core.urlresolvers.

Change-Id: Ia2591675e3ac75b1cf608e7c18ad0c749d530289
Closes-Bug: #1549077
2016-03-01 14:02:05 -05:00
Memo García 40df86f710 Improve success messages when it takes time to display the action
Closes bug: 287309
Change-Id: Ie86d5e214eeb2ea3041c3b89e52f1394bebe14dc
2016-03-01 11:15:51 +00:00
Memo García 7dbb52e2b3 Actions for a job no longer shows irrelevant actions for specific cases
Resolves bug: 1546195
Change-Id: I6234a1d7bdbd2c5366fcf95290c60500b0625d1c
2016-02-16 16:43:05 +00:00
memo 94956bade3 Fix api endpoint for action retrieval
js code cannot reach the api endpoints for action retrieval in specific cases
because it depends on the actual url in the browser

Closes-bug: 1525169
Depends-On: I837e3fe973d72c792cb34711cef9f6507a004d49

Change-Id: Ibffad1a6a24559535c71ea94ba98deeb78ebeccb
2016-01-18 10:56:21 +00:00
memo b48b27fb8c Remove empty tabs in freezer dashboard
remove empty tab for job edition
remove possibility to add job without interval if start and end date
are provided
show a message when a job is started/stoped

Resolves bug: 1523497

Change-Id: Iff39fc9e813969672eecd48d9084fd100bcf611c
2015-12-08 13:58:08 +00:00
Memo García f6d896edbf Improved error messages in action ui
Change-Id: I902c7b49697c0fdee9cad38800eee975eab54498
2015-11-28 18:31:32 +00:00
Memo García 2cc46f5886 Improved cinder and nova backups ui
Simplified ui for linux snapshots

Change-Id: I18c6350a217327c6fe924373ab104441cf82dc0c
2015-11-28 12:49:34 +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 3ee62d17a1 Prevent job creation without clients
Freezer dashboard now prevents a job creation without a client attach to it

Change-Id: I1cc904d2dd4b4c48c20ca5e979f92375947b2b81
2015-11-26 11:45:43 +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