default floating_ip_enabled in cluster_template creation form is false in the UI but is set to true in the backend

Bug #1912151 reported by Md Safiyat Reza
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Magnum UI
In Progress
Undecided
Md Safiyat Reza

Bug Description

While creating a new cluster template, in the `cluster_template` creation form, `floating_ip_enabled` defaults to unchecked i.e `False` in the UI. But when the `cluster_template` gets created, the value of `floating_ip_enabled` is set to True.

Analysis:
- When sending the cluster_template create request, `floating_ip_enabled` key was not present in the payload (because it was not updated by the user) and `floating_ip_enabled` gets set to true in the backend.
- When the `floating_ip_enabled` option is checked, and then unchecked, there is no issue as `floating_ip_enabled` key is sent in the payload and has a value of `False`.

So the is issue only when the `floating_ip_enabled` key is not present in the payload and magnum assumes the default value as `True` for `floating_ip_enabled` in the backend. It leads to an inconsistent UX.

Therefore, the floating_ip_enabled should default to the `checked` state (i.e True) in the UI (consistent with backend).

Revision history for this message
Md Safiyat Reza (reza-safiyat) wrote :
Changed in magnum-ui:
assignee: nobody → Md Safiyat Reza (reza-safiyat)
status: New → In Progress
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.