Skip to content

Conversation

@damienmarchal
Copy link
Contributor

@damienmarchal damienmarchal commented Oct 31, 2025

In sofa it is possible, to have both a parent in a data (so copying the value on change) as well as the data to be not flag as read-only.

This is a questionnable design that can be fixed either by:

  • implementing in BaseData::isReadOnly so that it returns true of there is a parent
  • handle the case in the UI, this avoid do change a core behavior in SOFA

I would prefer that we clarify and fix the expected behavior in BaseData. But until then I would support we reflact that in the UI.

image

An alternative would be to de-parent when we edit or offer the user the choice.

In sofa it is possible, to have both a parent in a data (so copying the value on change)
as well as the data to be not flag as read-only.

This is a very questionnable design that can be fixed either by:
- implementing in BaseData::isReadOnly so that it returns true of there is a parent
- handle the case in the UI, this avoid do change a core behavior in SOFA

I would prefer that we clarify and fix the expected behavior in BaseData. But until then
I would support we reflact that in the UI.
@hugtalbot hugtalbot merged commit 04c373a into sofa-framework:master Nov 6, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants