Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue/487 copied instance properties #590

Closed
wants to merge 11 commits into from

Conversation

mburri
Copy link
Member

@mburri mburri commented Jan 21, 2021

Commit 48180f1 fixes the issue: a new property descriptor is created and persisted if the property belongs to the copied resource.

I started to refactor the method afterwards to clean up the code an make the intent more clear. Most refactorings were performed using the extract method/ invert "if" confition refactorings from intellij.

The existing (parametrized) tests already covered almost all affected code - I had to add only one for the case where the value of the origin property is merged into the target property.

fixes #487

@mburri mburri requested a review from yvespp January 21, 2021 10:27
@yvespp yvespp added this to the Version 1.17.23 milestone Feb 2, 2021
@yvespp
Copy link
Member

yvespp commented Feb 2, 2021

I tested this on our env and some values are now not copied when:

  • Descriptor is defined on type
  • The property value is defined on the copied resource.

The same happens for properties that are defined on the relations of the copied resource.

@yvespp
Copy link
Member

yvespp commented Sep 20, 2022

Replaced by #659

@yvespp yvespp closed this Sep 20, 2022
@yvespp yvespp deleted the issue/487-copied-instance-properties branch July 24, 2024 14:54
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.

New release of relation uses old prop descriptor for copied instance property
2 participants