-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disallow string downcast for groups and repeat groups #381
Comments
We had some issues creating forms and form drafts while QAing v1.3. I thought that it might be related to the new Notes that I posted to Slack:
This issue was discussed in the QA document as part of v1.3, item 1. There, Marzena wrote:
|
As part of the form schema migration in PR #725, I removed the trigger and replaced it with a simpler downcast checking function. If we need to add back a specific kind of downcast disallow, we can do that there. |
Maybe we do that as part of v2023.2 while this area is fresh in your mind? Unless you want a break from thinking about form schemas. 😅 |
2023.2 is fine! As long as it's not through the trigger! Though maybe I'd even feel brave enough to attempt to bring back the trigger if people really wanted it. |
Tested with success! |
Right now, Backend will allow any field to be downcast to string. I just checked, and it looks like that includes groups and repeat groups. Is that something we want to prevent? My instinct is that it would make it easier to reason about types (and maybe also XML traversal?) if we could assume that structures never become strings.
The text was updated successfully, but these errors were encountered: