-
Notifications
You must be signed in to change notification settings - Fork 50
Engine EC #3534
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
Engine EC #3534
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #3534 +/- ##
==========================================
+ Coverage 24.81% 24.97% +0.16%
==========================================
Files 674 677 +3
Lines 50133 50201 +68
==========================================
+ Hits 12440 12538 +98
+ Misses 36698 36669 -29
+ Partials 995 994 -1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
5f051e0 to
deb0a96
Compare
| ) | ||
|
|
||
| // ObjectID is an object ID as error. | ||
| type ObjectID oid.ID |
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.
this is done only for unwrapping? will there be such real cases? cant it be more descriptive like UnreadableObject?
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.
unwrapping, yes. We often wrap IDs, like return fmt.Errorf("failed to handled object %s: %w", id, err). In some cases caller may wish to handle the ID specifically. This allows to get it for free w/o additional return statement
cant it be more descriptive like UnreadableObject?
i wanna keep it as simple as is, so that each use case can give it a special meaning
will there be such real cases?
may be, this is very generic element
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.
i meant this is used in engine pkg and returned only by shard pkg, so maybe that is a good place for it. i do understand that it can be used in the future in some other packages. but ok
deb0a96 to
a7d61c8
Compare
Will be used to implement #3422. Signed-off-by: Leonard Lyubich <[email protected]>
Object address is always passed, so it's excessive to polymorph its interface. Signed-off-by: Leonard Lyubich <[email protected]>
a7d61c8 to
782ad58
Compare
No description provided.