Skip to content

Conversation

cgrabenstein
Copy link

Q A
Bug fix? yes
New feature? no
Issues Fix #1953
License MIT

This PRs allows changes in arrays of DTOs, see the linked issue for more background information.

There is one limitation though: For now it is not possible to generally set nested properties to be writable (i.e. something like writable: 'items.*.prop', or items[].prop). You either have to set everything to writable (writable: true), or a very specific element (writable: items.1.prop).

@carsonbot carsonbot added Bug Bug Fix Status: Needs Review Needs to be reviewed labels Jul 15, 2024
@cgrabenstein cgrabenstein changed the title Allow updates in arrays of DTOs [LiveComponent] Allow updates in arrays of DTOs Jul 15, 2024
@WebMamba
Copy link
Contributor

Thanks a lot for this PR @cgrabenstein! I was pretty sure most of the code was already one! Nice work! 🧡

Copy link
Contributor

@WebMamba WebMamba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just tested, it work well! Thanks a lot @cgrabenstein to took the time to look at it! And to write good tests! See you soon! 🧡

@carsonbot carsonbot added Status: Reviewed Has been reviewed by a maintainer and removed Status: Needs Review Needs to be reviewed labels Jul 15, 2024
@cgrabenstein
Copy link
Author

Thank you for checking it. What about the fabbot.io errors? I did not change the exception messages, so I'm not sure if I should apply the suggested patch.

@kbond
Copy link
Member

kbond commented Jul 18, 2024

Great first contribution Christoph, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Bug Fix Status: Reviewed Has been reviewed by a maintainer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[LiveComponent] Can not update parent component with array of DTOs
4 participants