-
-
Notifications
You must be signed in to change notification settings - Fork 155
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
Fix crash when object to object mapping #340
Conversation
Codecov Report
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more @@ Coverage Diff @@
## main #340 +/- ##
==========================================
+ Coverage 91.71% 91.96% +0.25%
==========================================
Files 109 118 +9
Lines 3379 3723 +344
Branches 438 502 +64
==========================================
+ Hits 3099 3424 +325
- Misses 189 205 +16
- Partials 91 94 +3
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, as you already considered, I'd introduce a diagnostic for this case object mapped to another object without deep clone
with a default severity of Info.
The commit message indicates that this is a feature. I'd say this is more of a bug fix and therefore the commit message should start with fix:
ddc7de1
to
8997138
Compare
Keep getting RS2007, where should I put the new rule? |
7e3cecc
to
a686d5b
Compare
I don't know the exact format of the unshipped file format. However, you can add it to the shipped file directly anyway. Just re-use the format of the last line in that file. We don't do the manual transition from Unshipped to Shipped. |
I was eventually able to add it to the unshipped file 😅 |
a686d5b
to
841fb08
Compare
The upcoming release is 2.8.0 not 2.9.0. You can add it to 2.8.0 |
841fb08
to
a326e93
Compare
🎉 This PR is included in version 2.8.0-next.2 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Resolves #313
Resolve ide hanging/crash when object to object mapping when deep clone is enabled. I mentioned my concerns in the issue, is it correct for a simple copy to be used when deep cloning is enabled? Should I instead make this a diagnostic errror or would updating the docs and adding a note to the
UseDeepCloning
attribute be enough?SpecialTypeMappingBuilder
for object->object edge case