9149 Commits

Author SHA1 Message Date
Rob Cresswell
497e404dbf Update Liberty release notes to match wiki
Change-Id: Ibbc9d36d5cb86caa1b756e9a4e78e7dd26dcfca6
2015-11-10 16:57:20 +00:00
Jenkins
83cf09f579 Merge "Port dashboard router tests on Python 3" 2015-11-10 14:09:29 +00:00
Jenkins
df83da06cd Merge "Port project instance tests to Python 3" 2015-11-10 12:00:37 +00:00
Jenkins
efc51adda1 Merge "Take shared networks into account for quotas" 2015-11-10 12:00:06 +00:00
Jenkins
4ff334419d Merge "Imported Translations from Zanata" 2015-11-10 11:58:53 +00:00
Jenkins
916e1c9345 Merge "Add breadcrumb to more details pages" 2015-11-10 11:49:50 +00:00
Jenkins
f8ee84ba41 Merge "Add STATUS_DISPLAY_CHOICE which matches Nova vm state" 2015-11-10 07:44:40 +00:00
OpenStack Proposal Bot
589d5b049e Imported Translations from Zanata
For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: I752a731c1b84d3fd9220c1445417ae658fb826f5
2015-11-10 06:35:43 +00:00
Jenkins
126ff7e317 Merge "Clean up spec files in horizon framework directory" 2015-11-10 01:05:40 +00:00
Jenkins
8b4fc07267 Merge "Add a Delete Modal Service for deleting entities" 2015-11-09 21:43:45 +00:00
Jenkins
80fa84bcc9 Merge "Actions directive for dynamic actions" 2015-11-09 21:43:27 +00:00
Jenkins
6e8e067481 Merge "doc: subsections for neutron releated settings" 2015-11-09 20:55:43 +00:00
Rob Cresswell
f38ddf2032 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
Jenkins
a8d21c2727 Merge "Navigation + cleanup for details pages" 2015-11-09 20:28:28 +00:00
Tony Dunbar
8dbba21fd1 Add STATUS_DISPLAY_CHOICE which matches Nova vm state
While working on another defect I noticed the value Horizon is using
in the status tuple for an instance which was soft deleted did not
match the string Nova is using for vm state.
Horizon is currently using the value "soft_deleted" in the
STATUS_DISPLAY_CHOICES tuple.  Nova is using the string
"soft-delete".  A more consistent approach in Nova would be to use
the string "soft_deleted" however changing this in Nova may
inadvertently change a REST API.
Adding a choice for "soft-delete" to Horizon enables Horizon to
translate the vm state correctly now.  Removing the existing choice
of "soft_deleted".

Change-Id: Icefd458bc3633c6fc8103e39966b9916722ff97f
Closes-Bug: #1506177
2015-11-09 19:31:02 +00:00
Jenkins
3b7dbea126 Merge "py3: Fix unicode versus bytes issues" 2015-11-09 11:39:31 +00:00
Jenkins
4de120386a Merge "Adds config to disable the password in stack" 2015-11-09 10:45:56 +00:00
Victor Stinner
2b7cd38515 Port dashboard router tests on Python 3
* Decode HTTP body from UTF-8 to get text on Python 3
* tox.ini: add routers tests to Python 3

Partial-Implements: blueprint porting-python3
Change-Id: Idc93818c4b62f782035604090b7c6fda459cf6fa
2015-11-09 10:45:58 +01:00
Victor Stinner
49671ca4cf Port project instance tests to Python 3
* Fix division: replace a/b with a//b to get integers
* test_clean_file_upload_form_invalid_data(): use a byte string, not
  an unicode string for the test. The test ensures that decoding from
  UTF-8 fails.
* quotas: replace filter() with a list-comprehesion to get a list on
  Python 3.
* tox.ini: add the following tests to Python 3.4

  - openstack_dashboard.dashboards.project.instances.tests
  - openstack_dashboard.test.tests.quotas

* tox.ini: add also
  --exclude-dir=openstack_dashboard/test/integration_tests to
  openstack_dashboard tests on Python 3.4

Partial-Implements: blueprint porting-python3
Change-Id: I7caed713222b50ffec431155e6f91b543f7df466
2015-11-09 10:44:25 +01:00
Rob Cresswell
7a58d15aec Navigation + cleanup for details pages
Adds a common detail page and a breadcrumb templatetag. The breadcrumb
templatetag defaults to displaying the panel name and the existing page
title, which is usually name_or_id. The templatetag can also access the
context, and accepts a "custom_breadcrumb", for complex nested pages or
customised layouts.

This type of navigation is also useful for small devices (mobile/
tablet), providing logical direction that isn't dependant on the
sidebar being displayed.

Currently implemented in Images, Volumes (simple breadcrumb), Ports and
Subnets (more complex nesting).

This approach has been chosen as manipulation of the URLs was seen as
undesirable, making request.path too unreliable. Furthermore, the
templatetag seperation means this could easily be used in other views.

NOTE: The network details page itself will be updated following the
resolution of https://bugs.launchpad.net/horizon/+bug/1416838

Change-Id: I7443b2ffa61560e5d1fd4d6d91b11201f1db6fac
Partial-Bug: 1413823
2015-11-09 07:01:04 +00:00
Jenkins
dca0d2c71b Merge "Separate Ports tests from Networks tests" 2015-11-09 03:34:47 +00:00
Victor Stinner
e6e87aa55e py3: Fix unicode versus bytes issues
* DataTable: don't try to decode Unicode from UTF-8. Only decode on
  Python 2.
* Use oslo_serialization.jsonutils.dump_as_bytes() to encode JSON
  as bytes.
* Use oslo_serialization.jsonutils.loads() instead of json.loads() to
  accept bytes string as input. On Python 3, json.loads() only
  accepts Unicode string.
* Fix unit tests: HTTP body type is bytes.
* Container tests: use a named temporary file, the function handling
  the filename fails. On Python 3, TemporaryFile() uses a number for
  the filename: the file descriptor.
* Don't encode filename to UTF-8 on Python 3, keep Unicode.
* tox.ini: add 2 admin tests on Python 3.4.

Partial-Implements: blueprint porting-python3
Change-Id: Ib7e2cb17f20474590fac18faf8116131692ad694
2015-11-08 23:48:47 +01:00
Akihiro Motoki
ed86a7349d doc: subsections for neutron releated settings
By adding subsection markers, neutron related settings are
shown in the index and become easy to reach.

Change-Id: Ia8aa28fe026f53efa91990798136bbcdca9e5225
2015-11-09 06:17:20 +09:00
Jenkins
85a125a6b5 Merge "Remove some old (pre-1.8) Django compatibility code" 2015-11-08 19:26:42 +00:00
Rob Cresswell
7f3267f502 Separate Ports tests from Networks tests
This patch separates the Ports tests from the Networks tests files
due to file bloat. Similar patches will also split Subnets and Agents
tests to make them more manageable.

I've chosen to keep these patches separate so as to make them more
easily reviewable. There are separate patches to improve the navigation,
tab the Networks details page, and add more content to Port edit/create.

Partial-Bug: 1514048
Change-Id: Ida677f503c22de6d1160f2c972af3f99c04ee389
2015-11-08 18:33:28 +00:00
OpenStack Proposal Bot
3efe4b01ac Imported Translations from Zanata
For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: Iea8ac681c41b0bb103df29090de53e2d092e49f7
2015-11-08 06:19:06 +00:00
Jenkins
df5f908f70 Merge "add Italian localization" 2015-11-08 05:25:06 +00:00
Jenkins
7346fc0d38 Merge "Update Plugin Registry" 2015-11-07 17:51:34 +00:00
Matthias Runge
79c634422d Take shared networks into account for quotas
Previously, shared networks were ignored by collecting used
networks; the "Create network" button is still enabled, but
network creation is forbidden by neutron due to quota reached.

Change-Id: I97360e354ccb7c2aa58012f737a7e9c67f8d3ad6
Closes-Bug: #1513795
2015-11-06 14:27:11 +01:00
Richard Jones
89ce71c4e9 Remove some old (pre-1.8) Django compatibility code
These lines of code were introduced as Horizon migrated
through several Django versions and are no longer
needed.

Change-Id: I12aae1a843fccc803859da6337a3274339a3741f
Partially-Implements: blueprint drop-dj17
2015-11-06 06:55:22 +00:00
OpenStack Proposal Bot
0cd1a4e375 Imported Translations from Zanata
For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: I2682ea275a732a4a7e921adf608b5c594532eea7
2015-11-06 06:38:53 +00:00
nikunj2512
2465843690 Adds config to disable the password in stack
Currently a password is needed when doing a stack creation using
Horizon. This patch adds a configurable setting in local_settings.py
file, so that it can be disabled from the stack creation form.

Change-Id: I82783b73940e39d961ac70a5ce86abdaca02eba7
Closes-bug: #1290344
Co-Authored-By: Richard Jones <r1chardj0n3s@gmail.com>
Co-Authored-By: Jesse Keating <jlk@bluebox.net>
2015-11-05 16:26:59 -08:00
Jenkins
bf2c788100 Merge "Made instance state values in the CSV summary translatable" 2015-11-05 22:20:45 +00:00
Jenkins
95af40554e Merge "Make IPv4 address sorting work on all tables" 2015-11-05 21:18:27 +00:00
Doug Fish
8e91819c8f add Italian localization
Translation is near 100% complete, well above the 90% criteria
for inclusion in the language list. Add it.

Change-Id: I2790c3479c26d2f501e756e91806ce49247aead5
Closes-bug: #1513601
2015-11-05 20:13:55 +00:00
Jenkins
7b196fc7df Merge "Wrong url in stack preview detail page" 2015-11-05 19:08:11 +00:00
Jenkins
558f95bd40 Merge "Add Kilo Release Notes" 2015-11-05 19:07:40 +00:00
Tony Dunbar
c0561280de Made instance state values in the CSV summary translatable
The instance state values ("Active", "Stopped" and others)
captured in the CSV Summary from the Project Overview page
were not translatable.  Two changes were needed.  Some of the
possible values from Nova were missing from the STATUS_DISPLAY_CHOICES
tuple and needed to be added.  Then the state values
needed to be translated into the proper locale when the CSV was
built.  It should be noted that I used the same style Lucas Palm
proposed in change 226579 (launchpad 1490031) for the second change.

Change-Id: Ib52d4c1fade22199390c6a568fc8f1101784a88d
Closes-Bug: #1496953
2015-11-05 15:19:30 +00:00
Jenkins
483fd0fa93 Merge "Use sum of volumes and snapshots for cinder usage" 2015-11-05 11:22:34 +00:00
Jenkins
13ff6392f9 Merge "Make sure dashboard has a default panel group" 2015-11-05 04:37:59 +00:00
Jenkins
fe300e798f Merge "Refactor status and admin state translation code" 2015-11-04 22:51:46 +00:00
Jesse Keating
944c8bafdc Use sum of volumes and snapshots for cinder usage
The cinder quota on gigabytes is the sum of both volumes and snapshots,
therefore in the horizon view we should be representing usage as the
combination of volumes and snapshots, otherwise users will be confused
when getting quota errors on volume or snapshot creation.

Closes-Bug: 1513179
Change-Id: Id23e0dd3a3f810e75f9013cecbf8a826c97e34c6
2015-11-04 18:45:17 +00:00
Jenkins
ccfaf3fae5 Merge "Fix infinite spinner for Angular panels" 2015-11-04 18:41:39 +00:00
Jenkins
d27765a6ed Merge "Don't hide Karma coverage reports" 2015-11-04 18:36:59 +00:00
Rob Cresswell
f0e8a30001 Add Kilo Release Notes
This patch adds the Kilo release notes for completion.

Change-Id: I43a93ad10840a29bb87989e6d7ef6fe44120de55
Co-Authored-By: David Lyle <dklyle0@gmail.com>
2015-11-04 08:16:23 +00:00
OpenStack Proposal Bot
d5476a4eb9 Imported Translations from Zanata
For more information about this automatic import see:
https://wiki.openstack.org/wiki/Translations/Infrastructure

Change-Id: I049a5eedde7a180ce18f1006ed1d80ec7af70761
2015-11-04 06:37:27 +00:00
Rob Cresswell
248281406e Don't hide Karma coverage reports
This patch updates the file names of the coverage reports so they are
visible by default on most systems. Also updates the .gitignore, so the
new files are not pushed to the Horizon repo.

DocImpact

Closes-Bug: 1508526
Change-Id: I3c1c8f4c88819e2f49b60722ea8cc37bdc711b8c
2015-11-04 10:21:46 +09:00
Jenkins
673350892d Merge "Create volume pre-select default vol-type" 2015-11-03 23:00:51 +00:00
Cindy Lu
fab9cf6fd1 Clean up spec files in horizon framework directory
We only need:
beforeEach(module('horizon.framework'))
as mentioned by Sean in table.controller.spec.js  here:
https://review.openstack.org/#/c/172602/19/

Change-Id: Id3bbbd151d0642d6fef1e6eca4bfb248371b0f08
2015-11-03 07:28:56 -07:00
Rob Cresswell
938f3127e8 Update Plugin Registry
This patch adds missing plugins to the Horizon plugin registry doc

Change-Id: I5363c6bf10c310c4b757ae8b4bbdab3b52be4ac3
Closes-Bug: 1511572
2015-11-03 18:49:38 +09:00