rancher / kubewarden-ui

Kubewarden's User Interface
Apache License 2.0
11 stars 13 forks source link

Editing policy with form inputs will not complete #15

Closed jordojordo closed 2 years ago

jordojordo commented 2 years ago

Is there an existing issue for this?

Current Behavior

When editing a cluster admission policy from the form page the save will not complete due to having the incorrect spec property values. saving

However, editing from the yaml page there are no issues.

Expected Behavior

The spec should save and return you to the policies page.

Steps To Reproduce

jordojordo commented 2 years ago

Reference

Cause

  1. No action was being called when Save was pressed
  2. The input fields would change the type from an array of strings to just one string, causing the spec to be incorrect

Fix

https://user-images.githubusercontent.com/40806497/156803493-7fe7c0ee-aad2-4dd3-a5b6-eee9bcf9f8c8.mp4