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

[Core] Add RenamedData component for data symbol renaming #4814

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

bakpaul
Copy link
Contributor

@bakpaul bakpaul commented Jul 5, 2024

The current lifecycle mechanism when renaming the symbol of a Data object is depreciating the old data and setting the new data as a parent of the old one :
_oldData.setParent(d_newData)

This is not 100% working, because a setValue on the old data will not be applied on the new one, because a child is only link to the parent by a callback (and not a feedForward).

This means that a lot of the recent refactoring pr renaming data symbols are breaking. This pr aims at solving this, and is meant to be applied to all the recent pr to solve this issue.


By submitting this pull request, I acknowledge that
I have read, understand, and agree SOFA Developer Certificate of Origin (DCO).


Reviewers will merge this pull-request only if

  • it builds with SUCCESS for all platforms on the CI.
  • it does not generate new warnings.
  • it does not generate new unit test failures.
  • it does not generate new scene test failures.
  • it does not break API compatibility.
  • it is more than 1 week old (or has fast-merge label).
@bakpaul bakpaul added pr: fix Fix a bug pr: status to review To notify reviewers to review this pull-request labels Jul 5, 2024
@bakpaul
Copy link
Contributor Author

bakpaul commented Jul 16, 2024

[ci-build][with-all-tests]

@hugtalbot hugtalbot added pr: status wip Development in the pull-request is still in progress and removed pr: status to review To notify reviewers to review this pull-request labels Jul 17, 2024
@bakpaul
Copy link
Contributor Author

bakpaul commented Jul 17, 2024

Comments from SOFA-dev meeting have been applied. Wait for merge to make a full refacto of the compat layer of previous PR.

@bakpaul bakpaul added pr: status to review To notify reviewers to review this pull-request and removed pr: status wip Development in the pull-request is still in progress labels Jul 17, 2024
@bakpaul
Copy link
Contributor Author

bakpaul commented Jul 17, 2024

[ci-build][with-all-tests]

bakpaul and others added 2 commits July 17, 2024 17:09
Co-authored-by: Alex Bilger <alxbilger@users.noreply.github.com>
…ty with accessors and some methods requiring BaseData pointers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr: fix Fix a bug pr: status to review To notify reviewers to review this pull-request
3 participants