This patch adds basic Breadcrumb nav to the detail pages for Data
Processing, Databases, Metadata Definitions and Routers.
Change-Id: I114e93799b957db39cbe0d4e49d3e6869bc9d92d
Partial-Bug: 1413823
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
* 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
* 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
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
* 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
By adding subsection markers, neutron related settings are
shown in the index and become easy to reach.
Change-Id: Ia8aa28fe026f53efa91990798136bbcdca9e5225
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
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
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
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>
Translation is near 100% complete, well above the 90% criteria
for inclusion in the language list. Add it.
Change-Id: I2790c3479c26d2f501e756e91806ce49247aead5
Closes-bug: #1513601
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
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
This patch adds the Kilo release notes for completion.
Change-Id: I43a93ad10840a29bb87989e6d7ef6fe44120de55
Co-Authored-By: David Lyle <dklyle0@gmail.com>
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
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