-
Notifications
You must be signed in to change notification settings - Fork 189
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: ensure models generated Store trait exposes set/update/delete #2348
Conversation
WalkthroughOhayo, sensei! The changes involve renaming multiple methods across various files to enhance clarity and reduce ambiguity. Key methods associated with models and entities have been updated to better reflect their purposes, such as changing Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant EntityStoreImpl
participant ModelEntity
participant ModelImpl
User->>EntityStoreImpl: update(entity)
EntityStoreImpl->>ModelEntity: update_entity(entity)
ModelEntity-->>EntityStoreImpl: success
User->>EntityStoreImpl: delete(entity)
EntityStoreImpl->>ModelEntity: delete_entity(entity)
ModelEntity-->>EntityStoreImpl: success
User->>ModelImpl: set(model)
ModelImpl->>Model: set_model(model)
Model-->>ModelImpl: success
User->>ModelImpl: delete(model)
ModelImpl->>Model: delete_model(model)
Model-->>ModelImpl: success
Recent review detailsConfiguration used: .coderabbit.yaml Files selected for processing (1)
Files skipped from review due to trivial changes (1)
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 as PR comments)
Additionally, you can add Documentation and Community
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2348 +/- ##
==========================================
+ Coverage 67.27% 67.51% +0.24%
==========================================
Files 357 359 +2
Lines 46649 46853 +204
==========================================
+ Hits 31383 31634 +251
+ Misses 15266 15219 -47 ☔ View full report in Codecov by Sentry. |
Description
Due to low compiler inference capabilities, the
Store
traits generated forModel
andModelEntity
were not including theset
,delete
orupdate
function. Which, in some projects resulted in low devX to use theStore
API for models.Summary by CodeRabbit
New Features
Improvements
set
toset_model
,delete
todelete_model
).Bug Fixes
Tests
CaseStore
to the imports in the benchmark tests, allowing for more comprehensive testing scenarios.