manila-ui/manila_ui
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
..
api User messages panel 2020-09-09 18:13:44 -03:00
dashboards Fix parsing names in switched fields 2021-06-18 14:34:26 -07:00
local User messages panel 2020-09-09 18:13:44 -03:00
locale Imported Translations from Zanata 2020-04-26 07:13:36 +00:00
tests Fix parsing names in switched fields 2021-06-18 14:34:26 -07:00
utils Remove the get_item method 2019-06-26 16:32:50 +08:00
__init__.py Fix pep8 violations 2015-04-09 16:34:30 -07:00
exceptions.py Register Manilaclient exceptions in Horizon 2016-05-10 13:26:31 +03:00
features.py Add support of share groups 2017-07-27 20:05:15 +03:00