68 Commits

Author SHA1 Message Date
Craig Vyvial
ea49596302 update readme with how to test changes
Change-Id: I4419dd03be1c2a8be97934e8aba4e829fe0a0d21
2016-02-25 20:26:32 +00:00
Jenkins
e97ee0b704 Merge "Adding angular database backups panel" 2016-02-12 21:37:52 +00:00
OpenStack Proposal Bot
56afe0a010 Imported Translations from Zanata
For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: I146bfe62967e37a1ab803c582dea3ad49a57d122
2016-02-08 06:59:57 +00:00
skseeker
328ed818bf LOG.warn is deprecated in python3
Change-Id: I87ad7e65c08d0e2ac8270bbbaacbf6714a0b074e
2016-02-01 23:39:57 +05:30
Ishita Mandhan
e5fe575f20 Adding angular database backups panel
This patch initiates the creation of an angular panel
for backups. To test it, set DISABLED to False in
_1731_project_database_backups_panel.py

Change-Id: Ia100fa1b52eebe491999571a9b7a6e2043d50e0c
2016-01-28 14:53:38 -08:00
Jenkins
ca8434d95a Merge "Use "Connection Information" everywhere" 2016-01-28 18:37:12 +00:00
Jenkins
d117d72d55 Merge "Update devstack plugin" 2016-01-28 18:34:21 +00:00
Akihiro Motoki
54fe2bc3d2 Update devstack plugin
* Use setup_develop to install python module as most projects do.
  This also makes translation management easier in development.
* Deploy 'enabled' files into horizon local/enabled directory.
* collectstatic and compress are no longer required during horizon
  plugin installation. The timing of horizon installation was fixed
  in https://review.openstack.org/#/c/257744/

Change-Id: I122d94af4c5e30ffa9e6c198460647073aace722
2016-01-28 13:26:06 +09:00
Jenkins
9013f20090 Merge "Setup for translations" 2016-01-27 19:35:44 +00:00
Andreas Jaeger
e97d0d1b2f Setup for translations
Add babel*.cfg files for translation.

This follows the setup for django projects for translation, for details
see
http://specs.openstack.org/openstack-infra/infra-specs/specs/translation_setup.html

babel related entries in setup.cfg does not work for multiple
POT/PO files, so we can remove them.

Change-Id: I1fac32fc76c1469e88417ca0d26bdd199995a402
2016-01-26 07:46:57 +09:00
Matt Van Dijk
1a56e03a3b Use "Connection Information" everywhere
There are a few cases of detail overviews using "Connection Info"
instead of "Connection Information". The fix is to make them all use
"Connection Information".

Change-Id: Ic29bf939cc8b5db9823a37b3f75dea569e5487d2
Closes-Bug: #1536244
2016-01-22 15:01:46 +00:00
Matt Van Dijk
e085188c00 Fix cluster connection information formatting
The table formatting is bad. This is because the <div> is being
terminated too early in database_clusters/_detail_overview.html.

Change-Id: I97cf19f76167c2aee85daebb450504a99111224c
Closes-bug: #1536243
1.0.0 6.0.0.0b2
2016-01-20 10:57:52 -05:00
Duk Loi
f94afa4653 Add missing .gitreview file
Added missing .gitreview file to the repo.

Change-Id: Ia024f101ae841c69c608a30246eb0b73d064e023
2016-01-12 16:44:45 +00:00
Duk Loi
199743329d Fix unit tests
The unit tests were failing with
"ImportError: No module named trove.api".

Changed the __init__.py file to point to trove_dashboard.api

Added back the trove exception to the test data.

Change-Id: Ifbd50a1ee90b08b5b0aebb1190b3b3f4043876fb
Closes-Bug: 1532238
2016-01-08 10:40:55 -05:00
David Lyle
bac61fbfd2 Completing the plugin
Change-Id: I410aaac24b76e63a82d6c50364e46d54ead03b05
2015-12-18 15:53:31 -07:00
David Lyle
9f35f7774b Restructuring tree to be plugin 2015-12-18 15:28:23 -07:00
Jenkins
891927c938 Merge "Replace "Terminate Instance" with "Delete Instance"" 2015-12-02 23:27:46 +00:00
Akihiro Motoki
adf8b1efa4 Replace "Terminate Instance" with "Delete Instance"
"Delete" is being used almost everywhere in OpenStack Dashboard
except the instance panel. Using "Delete" looks more consistent.
In addition, "Delete" tells non-native English speakers that
deleted instances will be no longer usable again compared to
"Terminate".

DocImpact
Closes-Bug: #1502773
Change-Id: Idccaf3c45566f20f11d02ada64c1d3934a6f3002
2015-11-30 03:55:19 +09:00
Jenkins
ca33259c41 Merge "Drop Django 1.7 support" 2015-11-16 17:44:48 +00:00
Rob Cresswell
e0af3fd7e6 Drop Django 1.7 support
Django 1.7 support ends in December 2015
(https://www.djangoproject.com/download/#supported-versions), so it
will not be supported by Mitaka release.

This patch removes many of the deprecation warnings:-

`RedirectView.permanent` change:
https://docs.djangoproject.com/en/1.8/ref/class-based-views/base/

`url` change:
https://docs.djangoproject.com/en/1.8/internals/deprecation/
See version 1.5 notes for the url and ssi template tag change

`django.forms.utils` change:
https://docs.djangoproject.com/en/1.8/internals/deprecation/
See version 1.9 notes

`firstof` change:
https://docs.djangoproject.com/en/1.8/internals/deprecation/
See version 1.8 notes for cycle and firstof template tags

Change-Id: If546c087e73d189daa92e5bd63f0533fcf19089f
Partially-Implements: blueprint drop-dj17
2015-11-16 11:55:38 +00:00
Jenkins
d7c305eebc Merge "Remove unnecessary ugettext_lazy" 2015-11-11 09:04:33 +00:00
shu-mutou
e726fc036d Remove unnecessary ugettext_lazy
This patch remove unnecessary ugettext_lazy procedure
against database instance name and image name for
page title in its detail view.

Change-Id: I4f9a2b9ca7d43cf6fdf6ae02f50ad2f9c625d602
Closes-Bug: #1515100
2015-11-11 13:29:52 +09:00
Jenkins
abeefaca0e Merge "Add breadcrumb to more details pages" 2015-11-10 11:49:50 +00:00
Rob Cresswell
67304ace38 Add breadcrumb to more details pages
This patch adds basic Breadcrumb nav to the detail pages for Data
Processing, Databases, Metadata Definitions and Routers.

Change-Id: I114e93799b957db39cbe0d4e49d3e6869bc9d92d
Partial-Bug: 1413823
2015-11-09 20:55:12 +00:00
Victor Stinner
d02c92dcfa py3: Replace unicode with six.text_type
Run the unicode operation of the sixer tool on openstack_dashboard/
directory.

tox.ini: Add the following tests to Python 3.4:

* openstack_dashboard.contrib.sahara.content.data_processing.data_sources.tests
* openstack_dashboard.contrib.sahara.content.data_processing.job_binaries.tests
* openstack_dashboard.contrib.sahara.content.data_processing.jobs.tests
* openstack_dashboard.dashboards.project.networks.tests

Partial-Implements: blueprint porting-python3
Change-Id: Ibfe52ccbccc30e6b1d59137c68942c9860805397
Co-Authored-By: Richard Jones <r1chardj0n3s@gmail.com>
2015-10-14 08:58:36 +02:00
Jenkins
892179ac1b Merge "Fix TypeError on comparison on Python 3" 2015-10-12 09:57:48 +00:00
Victor Stinner
6c037cf70b Fix TypeError on comparison on Python 3
On Python 3, comparison between None and int or comparison between
dictionaries raises a TypeError.

LaunchForm: use 0 default value instead of None to compare it to 1.

sort() and sorted(): use a key function to compare strings instead of
comparing dictionaries.

Partial-Implements: blueprint porting-python3
Change-Id: I0664c2f6c19c3f105da8b4b5a72cea4eb02c245d
2015-10-06 16:40:35 +02:00
Jenkins
3bc8d1dadd Merge "Typo fix in Trove panel" 2015-09-24 10:53:05 +00:00
Tom Fifield
1644f373a1 Typo fix in Trove panel
'Managment' needed an extra 'e'

Change-Id: Iabef69a497188d95c53d8e5cf9abdf185c77b7e3
2015-09-24 14:20:53 +08:00
Jenkins
d3fce84181 Merge "Initial support for database clustering in Horizon" 2015-09-22 06:06:26 +00:00
Sushil Kumar
82236d3c59 Initial support for database clustering in Horizon
Added a separate panel for clusters.

This panel contains the Clusters Table with table actions to
Launch and Terminate clusters.  There are row actions Add Shard
and Reset Password (and their associated dialogs) that are specific
to MongoDB and Vertica respectively.

The Clusters Details will include the following tabs:
- Overview
- Instances (table of instances belonging to this cluster)

The launch panel has custom fields for MongoDB and Vertica.
The custom fields will be dynamically shown based on the datastore
selected.

Added a db_capability utility to aid in identifying the specific
datastores.

Added network selection dropdown if neutron is enabled.

Co-Authored-By: Sushil Kumar <sushil.kumar3@hp.com>
Co-Authored-By: Saurabh Surana <saurabh.surana@hp.com>
Co-Authored-By: Duk Loi <duk@tesora.com>
Co-Authored-By: Anna Shen <ruiyuan.shen@hp.com>
Change-Id: I047f4d37449070adfd0ea66ad010982f35c049aa
Implements: blueprint database-clustering-support
2015-09-21 10:21:46 -06:00
Jenkins
51ae11dfc8 Merge "Replace SortedDict with OrderedDict" 2015-09-09 03:33:27 +00:00
Masco Kaliyamoorthy
204eb8da88 Replace SortedDict with OrderedDict
From django V1.9 django.utils.datastructures.SortedDict
will be removed and it is deprecated in V1.7.

The similar functionality is added in collections.OrderedDict
from python 2.7.

Horizon code also should avoid the SortedDict class and
start using the OrderedDict class.

This patch replacing the SortedDict with OrderedDict.

Change-Id: I8dfcf7c29fc49b6215451f160cf7a951bf11b5ad
Closes-Bug: #1492270
2015-09-04 18:39:15 +00:00
Jenkins
6145532b53 Merge "Updated cassandra database details overview port" 2015-08-30 02:43:20 +00:00
Jenkins
a7213078c7 Merge "py3: Replace unicode with six.text_type" 2015-08-28 02:10:33 +00:00
Victor Stinner
eca5a3bc33 py3: Replace unicode with six.text_type
Initial patch generated by:

    sixer.py unicode horizon openstack_dashboard/ tools/

Partial-Implements: blueprint porting-python3
Change-Id: I8bdec74fbe32a6ff0e65f2f0810a0c698a3b9637
2015-08-27 01:26:02 +02:00
Duk Loi
5c64e92678 Updated cassandra database details overview port
The Cassandra details overview page currently displays port 9160
for the Thrift client.  Updated the example to use the native
protocol client port 9042.

Change-Id: I0c61dbb9fc942527b3e63b4ea2f79da92628f398
Closes-Bug: #1485065
2015-08-14 14:06:02 -04:00
Jenkins
d283d3e6a5 Merge "Fixes align issue for database networking workflow" 2015-08-13 09:19:48 +00:00
liyingjun
105306a51b Fixes align issue for database networking workflow
The networking workflow in the database launch instance workflow
doesn't align well, this patch fixes the issue.

Change-Id: I137536e83c0d637ca096e378c72e53ccf256d2ff
Closes-bug: #1455356
2015-08-12 22:17:48 +08:00
Jenkins
cc75e4f0a8 Merge "Moving Trove to contrib" 2015-08-12 05:17:16 +00:00
lin-hua-cheng
37316b88a3 Moving Trove to contrib
Moving Trove related code to openstack_dashboard/contrib

Change-Id: If3a7da604ca34d0d5a80d56989f1d11955d357df
Partial: blueprint plugin-sanity
2015-08-05 23:07:47 -07:00
Jenkins
753f66769b Merge "Move Horizon to pure plugin loading only" 2015-08-05 14:51:35 +00:00
David Lyle
379c8b5e6e Move Horizon to pure plugin loading only
The root cause of 1479018 was the mixed method for loading content in
horizon. This patch moves horizon to load purely from enabled files.
There are a couple of things that were required to allow this change.

1) Adding a mechanism, can_register() to horizon/base.py to handle the
configuration based loading checks that had been accumulating in the
panel.py files. This is an optional static method in Panel to
encapsulate such configuration (read settings) based panel loading
logic. And added testing for and documentation for this addition.

2) Create a numbering scheme for plugins. Moved the base dashboards to
_1000_project.py _2000_admin.py _3000_identity.py _5000_settings.py.
then populated the required panel_group and panel enabled files sparsely
in those ranges. The sparseness is to allow for future additions.
Additionally, I moved the already added Angular based panels next to
their Django counterparts.

Once the configuration loading was normalized, the bug reported in
1479018 was resolved and tests work with plugins panels in all
dashboards.

Close-Bug: #1479018
Partially implements: blueprint plugin-sanity

Change-Id: I657e7ce37b2593a901a859cebf3d6ff8ada91941
2015-08-03 14:49:31 -06:00
Jenkins
1b88e108b1 Merge "Support for resizing a trove instance" 2014-12-23 20:44:20 +00:00
Andrew Bramley
197267c07b Support for resizing a trove instance
Added menu item and dialog to allow the
user to select a new flavor for their
trove instance

Change-Id: I5ef42067887e1f1f1f5ee3224df7b6391be0a375
Implements: blueprint trove-resize-instance-dialog
2014-11-24 11:20:59 -05:00
Jenkins
08866ad2a8 Merge "Fix E127 errors in remaining openstack_dashboard/" 2014-10-15 22:45:43 +00:00
Akihiro Motoki
ff56cbc5c2 Fix E127 errors in remaining openstack_dashboard/
E127 continuation line over-indented for visual indent

Also fixes E127 introduces by other reviews
after other E127 fixes were merged.

Closes-Bug: #1375931
Change-Id: I0a09f1c2f74c707fc8a347f0ea5975bf2679976e
2014-10-15 13:50:07 +09:00
Jenkins
aa4bcee892 Merge "Add support for trove incremental backups" 2014-07-22 20:35:13 +00:00
Andrew Bramley
28a1b8ac07 Add support for trove incremental backups
Added extra column to backups tables (under instances
and under backups) that will show Yes / No if the
backup is incremental (ie it has a parent)

When you drill down into backup details we now display
the name of the backup parent if this is an
incremental backup. This is displayed as a link with
the backup name so it is navigable

When you create a new backup you can now specify
an existing backup to use as the parent

Note: At some point we should probably have the
create backup dialog filter the available parents
based on the current selection for the instance.
However, so far I haven't worked out how to make
the backup parent choiceField change dynamically
based on user updates to the instance choiceField

Change-Id: I8bc70805aae50a019da3915f8e7aff25f6a7bbc6
Implements: blueprint trove-incremental-backup
2014-07-21 13:33:45 -04:00
Jenkins
9d60048565 Merge "Initial support for datastore in Horizon" 2014-07-17 19:22:46 +00:00