[SCALE] list with a dict inside of another dict don't parsecorrectly

Description

<p>When one puts a child dicts, inside of the primary dict within a list in questions.yaml, the child dict gets ignored when parsing the list. However: it does display correctly in the UI:<br>
<br>
See attached example code snipped for an example where a dict, inside a dict, inside a list is used.<br>
<br>
This one leads to the following error:<br>
Error: [EINVAL] attributes.hostPathMounts: Item#0 is not valid per list types: [EINVAL] volumeMount.enabled: Field is not editable. [EINVAL] volumeMount.medium: Field was not expected&nbsp;<br>
<br>
<br>
&nbsp;</p>

<p>Notice how this should've been parsed as:</p>

<pre><code>volumeMount.emptyDir.medium
</code></pre>

<p>But is parsed as:</p>

<pre><code>volumeMount.medium</code></pre>

Problem/Justification

None

Impact

None

SmartDraw Connector

Katalon Manual Tests (BETA)

Activity

Show:

Ievgen Stepanovych June 3, 2021 at 1:34 PM

Resolved by another ticket.

Alex Karpov May 29, 2021 at 12:07 AM

Great, thank you.

Kjeld Schouten-lebbing May 28, 2021 at 10:11 PM
Edited

Created a seperate issue for above newly introduced bug.
I think https://ixsystems.atlassian.net/browse/NAS-110776#icft=NAS-110776 is solved in current nightly now and can be closed.

https://jira.ixsystems.com/browse/NAS-110823

Kjeld Schouten-lebbing May 28, 2021 at 10:03 PM

However, this seems to have created or uncovered another issue:
See this section:

- variable: emptyDir label: "EmptyDir Volume" schema: type: dict attrs: - variable: enabled label: "Use emptyDir volume" schema: type: boolean default: false - variable: medium label: "EmptyDir Medium" schema: type: string default: "" enum: - value: "" description: "Default" - value: "Memory" description: "Memory"

The empty enum option ("") now renders as "object Object" in the GUI:

Kjeld Schouten-lebbing May 28, 2021 at 8:33 PM

For some reason it just started working, thanks!

Complete
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Impact

Medium

Components

Fix versions

Priority

More fields

Katalon Platform

Created May 25, 2021 at 12:05 PM
Updated July 6, 2022 at 8:58 PM
Resolved June 3, 2021 at 1:34 PM