fix: Problem with submodels id string#898
Conversation
|
Important Review skippedAuto reviews are limited to specific labels. 🏷️ Labels to auto review (1)
Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #898 +/- ##
=======================================
Coverage 67.65% 67.65%
=======================================
Files 152 152
Lines 10050 10050
=======================================
Hits 6799 6799
Misses 2925 2925
Partials 326 326 ☔ View full report in Codecov by Sentry. |
hwbrzzl
left a comment
There was a problem hiding this comment.
Sorry, CI failed, I'm checking it.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
There was a problem hiding this comment.
I didn't want to break the current logic. Added changes.
| "github.com/spf13/cast" | ||
| ) | ||
|
|
||
| func GetID(dest any) any { |
|
Hey @dzham Added you to the contributor list, and if you use Discord, you can send a message to me, I'll add you the contributor role. |
📑 Description
I found an error while working with the model.
link problem with the GetIDByReflect method. This method does not properly handle submodel with id string.
Also, this method does not process variants with double nesting.
The problem is here, not in nested fields it works correctly
The problem with such models
And with nested models
And I also refactored this method a little