-
Notifications
You must be signed in to change notification settings - Fork 31
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
Dynamics repeating groups error #734
Comments
Sadly, this looks to me like it's caused by your component IDs clashing with our internal state-keeping in app-frontend. When in a repeating group, a component can appear multiple times (i.e. have multiple instances), and for some reason we keep that state inside a mutated component id, in order to keep component IDs unique across multiple groups. So, if you have defined a This is documented in detail here. When you've chosen to name your components like This is part of the reason why I want to create a validator, as described in #648 (see For now, I suggest (as I believe I've suggested before) that you name your component something else that does not clash with our internal state. Sorry! |
I agree that the long term goal would be to not have these kind of requirements on user supplied ids. Would it be hard to change the "reserved" suffix from |
@ivarne Sadly, yes, that would be hard. It's mostly about test coverage and safety (i.e. try search-replacing a single dash in the entire codebase and make sure you caught all the code paths that used a dash for this thing). It could absolutely be a short-term solution, but right now it's much easier to just change the component IDs. I belive this wasn't caught as a likely problem, since Studio always used to generate long UUIDs as IDs at the point in time this was first implemented. |
In #758 I try to indicate which component IDs are problematic via the regex in the layout JsonSchema. I hope this will be somewhat helpful, at least! |
Description of the bug
Values in the first repeating group affects the readonly and required properties of the second group
Steps To Reproduce
Additional Information
Changing (1) should not affect readonly and required status of (3)
Link tt02: https://krt.apps.tt02.altinn.no/krt/krt-1230a-1/
Link to layout json: https://altinn.studio/repos/krt/krt-1230a-1/src/branch/master/App/ui/layouts/Innsending.json#L355-L575
The text was updated successfully, but these errors were encountered: