manila-ui/manila_ui/tests/dashboards
Goutham Pacha Ravi 6ad8fd882a Fix parsing names in switched fields
In the share creation form dialog, share network
selection is optionally provided based on whether
the share type chosen supports the DHSS extra-spec.
This selection breaks often when dealing with share
types that have a name matching the format: ".*-\d+.*".
For example: test-700. The root cause of this seems to
be in javascript code for "switchable" fields [1] that
doesn't get triggered as expected.

A similar issue manifests in the share Network Creation
form where we setup switched fields with the Neutron
network IDs (dashed format UUIDs) and in the Share
Group Creation form where we setup switched fields
with the Share Group Type IDs (dashed format UUIDs).

So, we could encode the "-" in these field names to
workaround this issue.

Closes-Bug: #1931641
[1] 647c2b7530/horizon/static/horizon/js/horizon.forms.js (L491-L613)

Change-Id: Id924fc55debdc38ae2131bf8cef396f28caa3e77
Signed-off-by: Goutham Pacha Ravi <gouthampravi@gmail.com>
(cherry picked from commit 37e5b2f053)
(cherry picked from commit b7d87e886a)
2021-06-18 14:34:26 -07:00
..
admin User messages panel 2020-09-09 18:13:44 -03:00
identity Updated to get quotas data for Modify Quotas dialog Share tab 2019-09-13 15:15:57 -07:00
project Fix parsing names in switched fields 2021-06-18 14:34:26 -07:00
__init__.py Place all unit tests under single subdir 2016-05-04 13:52:09 +03:00
test_utils.py Remove unnecessary noqa 2018-06-03 08:39:43 +09:00