-
Notifications
You must be signed in to change notification settings - Fork 174
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: avoid model classhash conflicts when some models have a same name #2457
Conversation
WalkthroughOhayo, sensei! The changes in this pull request focus on the Changes
Possibly related PRs
Suggested labels
Recent review detailsConfiguration used: .coderabbit.yaml Files selected for processing (4)
Additional comments not posted (22)
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
Documentation and Community
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2457 +/- ##
=======================================
Coverage 68.29% 68.30%
=======================================
Files 365 365
Lines 48034 48034
=======================================
+ Hits 32805 32809 +4
+ Misses 15229 15225 -4 ☔ View full report in Codecov by Sentry. |
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.
Thanks @remybar!
Related to #2349.
Replaced the PR #2406 as @glihm noticed that model name conflicts came from classhash conflicts.
This is due to the fact that all model contract functions call
dojo::model::Model<>
and so, two model contract with a same model name but in 2 different namespaces produce the same code and so, the same classhash.This PR just replaces some calls to
dojo::model::Model<>
by directly returning the hardcoded value, as it is done indojo::model::Model<>
.Summary by CodeRabbit
New Features
Bug Fixes
Documentation