Skip to content

Clarify isSettable behavior for entity creation in DataProperty #90

Description

@mahish

Hi,
I’d like to confirm the intended behaviour of DataProperty.isSettable. I expected isSettable to control whether a property is updatable (i.e., isSettable === false → property cannot be changed after creation). However, it appears that this flag also affects entity creation. When creating a new entity, properties with isSettable: false end up being initialized as undefined even for initial data from server.

Is this the expected behaviour, or should isSettable only apply to updates?

Reference:

_updateTargetFromRaw(target: StructuralObject, raw: any, rawValueFn: Function) {
// called recursively for complex properties
this.dataProperties.forEach((dp) => {
if (!dp.isSettable) return;

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions