Skip to content

FELIX-6892: DM decorator removes the wrong dependency copy - #612

Open
pderop wants to merge 1 commit into
apache:masterfrom
pderop:FELIX-6892
Open

pderop wants to merge 1 commit into
apache:masterfrom
pderop:FELIX-6892

Conversation

@pderop

@pderop pderop commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

Motivation:

When a dependency is removed from an adapter, aspect or factory component with several instances, only the copy of the last instance was remembered, and it was removed from the first instance. That instance stopped a dependency it did not own, and the other instances kept theirs. The copies of removed instances also remained referenced by the decorator.

Modification:

Remember the dependency copy of each instance and remove from each instance its own copy. Forget the copies of an instance once it is no longer instantiated. Factory configuration deletions are now handled in the decorator queue, like updates.

Result:

Removing a dependency from a decorator removes it from every instance, and removed instances are no longer referenced.

Motivation:

When a dependency is removed from an adapter, aspect or factory component
with several instances, only the copy of the last instance was remembered,
and it was removed from the first instance. That instance stopped a
dependency it did not own, and the other instances kept theirs. The
copies of removed instances also remained referenced by the decorator.

Modification:

Remember the dependency copy of each instance and remove from each
instance its own copy. Forget the copies of an instance once it is no
longer instantiated. Factory configuration deletions are now handled in
the decorator queue, like updates.

Result:

Removing a dependency from a decorator removes it from every instance,
and removed instances are no longer referenced.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@pderop pderop self-assigned this Nov 27, 2026
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