Skip to content

model.base: Copy Qualifier and Extension data in update_nss_from - #624

Open
sankalpsthakur wants to merge 1 commit into
eclipse-basyx:developfrom
sankalpsthakur:fix/602-namespaceset-update-nss
Open

sankalpsthakur wants to merge 1 commit into
eclipse-basyx:developfrom
sankalpsthakur:fix/602-namespaceset-update-nss

Conversation

@sankalpsthakur

@sankalpsthakur sankalpsthakur commented Sep 5, 2026

Copy link
Copy Markdown

Matching Qualifier and Extension objects in NamespaceSet.update_nss_from()
were looked up and then left unchanged, so a later copy of the same object
silently kept the old value. Referable already copies in place.

Qualifier.update_from() and Extension.update_from() now copy the
non-identity fields onto the object that already lives in the target set.

Fixes #602

AI/LLM disclosure

AI coding tools assisted with the change and this description.

`NamespaceSet.update_nss_from()` is how backends refresh a namespace
from a newer copy of the same objects. Matching Referable objects get
their attributes copied in place. Matching Qualifier and Extension
objects were only looked up; their value and the rest of the payload
stayed on the old object. A PUT of a Submodel with the same qualifier
type therefore kept the previous value.

Backends already treat a Qualifier of the same type and an Extension of
the same name as the same object, so those fields have to be copied
onto the object that already lives in the target set.

Fixes eclipse-basyx#602
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant