You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When submodel like `Checkout` or `Test` node is submitted,
explicit validation takes place in `parse_node_obj` method.
The method also converts request parameters to defined
data types e.g. for storing kernel version, `version` and
`patchlevel` fields will be converted to `int`.
Losing all these conversion and storing object as it received
will raise issues like `kver` job failure.
In order to preserve type casting happened during validation
in `parse_node_obj`, store it to `node`.
If we try to store this node object directly, it will raise
issue while JSON serialization of `Node.data` field in
`_get_node_event_data`. Also, DB will not be able to map
collection name from submodel type as the collection dictionary
uses only one collection for all kind of nodes i.e. `node`.
Fixing above issues will also fix `kver` job failure.
Fixes: b785e19 ("api.main: use node endpoints for all type of Node subtypes")
Signed-off-by: Jeny Sadadia <[email protected]>
0 commit comments