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
Columns are alphabetized by header name when a secondary instance is built. This hasn't been noticeable since secondary instances haven't been exposed anywhere without each value being pulled out explicitly. The new map appearance on select_ones shows additional properties in order from the XForm and it would be ideal for that order to reflect user intent.
Steps to reproduce the problem
Convert a form with a select that becomes a secondary instance (e.g. this one). Notice that in the XForm, node names are ordered alphabetically.
…rm#602)
- found this issue because `error__contains` is the correct spelling, so
the message was not being checked (the pyxformtestcase kwarg
validation does not occur if the form has errors).
- the error for the entities sheet should report the problematic columns
in the order they appear. Until XLSForm#602 is merged, the incoming dict
may have random key order. This change avoids re-introducing the same
sort of issue via set usage, instead doing the same with dict keys.
- to avoid tests randomly failing, test `error__contains` looks for
each column individually.
Software and hardware versions
pyxform v1.9.0 and prior
Problem description
Columns are alphabetized by header name when a secondary instance is built. This hasn't been noticeable since secondary instances haven't been exposed anywhere without each value being pulled out explicitly. The new
map
appearance onselect_one
s shows additional properties in order from the XForm and it would be ideal for that order to reflect user intent.Steps to reproduce the problem
Convert a form with a select that becomes a secondary instance (e.g. this one). Notice that in the XForm, node names are ordered alphabetically.
Expected behavior
The order of columns is preserved.
Other information
Tangentially related to #590
The text was updated successfully, but these errors were encountered: