InputBase assumes the model is an object with all the form properties... This led to the creation of flattenModel() and unflattenModel() functions in form-utils.ts.
This approach is rather limiting since hacks may be needed to convert the flat form model into a tree-like structure to be passed or fetched from an HTTP request. Hacks like the ones commented on in https://github.com/uyuni-project/uyuni/pull/3381#discussion_r591319788 would be avoided by allowing to use a tree-like data structure as model.
InputBase
assumes the model is an object with all the form properties... This led to the creation offlattenModel()
andunflattenModel()
functions inform-utils.ts
.This approach is rather limiting since hacks may be needed to convert the flat form model into a tree-like structure to be passed or fetched from an HTTP request. Hacks like the ones commented on in https://github.com/uyuni-project/uyuni/pull/3381#discussion_r591319788 would be avoided by allowing to use a tree-like data structure as model.