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

DRAFT: fix(core): Add non-cloneable attributes functionality #6375

Draft
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

BenJamesBen
Copy link
Contributor

Even though the mirrored paths' Points are cloned, Uma displays warning messages for 2 points:
Screenshot 2024-03-17 at 6 35 42 AM

To fix this issue, this PR adds non-cloneable attributes (designated by having noclone in the key) that are filtered out during a clone() operation. It also makes the plugin-mirror's data-mirrored attribute non-cloneable. The idea is that cloned Points should be considered to be fresh, new Points that haven't been mirrored before.

(There are other ways this issue could be fixed, like renaming non-cloneable attributes to "get rid" of them while also preserving them. Or, setting data-mirrored count back to zero. But, I chose the method that has non-cloneable attributes that simply get omitted.)

(There is another bug in plugin-mirror where it uses the non-existent point.name in the warning message, resulting the Point undefined wording. But, I think I want to handle it in a separate PR.)

Creating as a Draft PR for review, to see if the idea is okay. Also, I need to add tests for this new functionality.

Copy link

vercel bot commented Mar 17, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
freesewing-dev ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 17, 2024 2:00pm

Copy link

vercel bot commented Mar 17, 2024

Someone is attempting to deploy a commit to the freesewing Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

codecov bot commented Mar 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.21%. Comparing base (c0d8c12) to head (eaf617c).
Report is 54 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #6375   +/-   ##
========================================
  Coverage    97.21%   97.21%           
========================================
  Files           15       15           
  Lines         4493     4496    +3     
  Branches       535      536    +1     
========================================
+ Hits          4368     4371    +3     
  Misses         122      122           
  Partials         3        3           
Flag Coverage Δ
core 97.21% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant