-
Notifications
You must be signed in to change notification settings - Fork 46
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
editoast(feat): 'CacheOperation' only deals with 'ObjectCache' #5924
Conversation
808f6c7
to
a84101f
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## dev #5924 +/- ##
============================================
+ Coverage 26.58% 26.60% +0.02%
Complexity 2123 2123
============================================
Files 931 930 -1
Lines 123165 123171 +6
Branches 2678 2677 -1
============================================
+ Hits 32741 32769 +28
+ Misses 88837 88816 -21
+ Partials 1587 1586 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
a84101f
to
14104b6
Compare
14104b6
to
b299f41
Compare
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.
Just naming, and waiting for the necessary changes in edition.rs
as discussed.
(no front reviewed)
6c95382
to
7fc57c1
Compare
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.
LGTM (no front reviewed)
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.
Reviewed (editoast only) + Tested.
7fc57c1
to
e4f6220
Compare
e4f6220
to
2d40ec4
Compare
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.
Editoast + tested
16c7a7a
to
040c4a6
Compare
`OperationResult`'s purpose is to apply operation on the `InfraCache` object. The naming `OperationResult` come from the fact that `Operation` are applied on DB, and the result of that operation is kept around as `OperationResult` to be reapplied on the `InfraCache`. However, with the implementation of the magic wand, we start to create operations that will not be applied on the DB, but only on the `InfraCache`. Therefore, the naming `OperationResult` doesn't make sense anymore. Since the purpose is to apply these operations on the cache, hence `CacheOperation` name.
`CacheOperation` is only applied on `InfraCache`. There is no point in using `RailjsonObject` at that point. Therefore, `CacheOperation` should only depend on `ObjectCache`.
040c4a6
to
ccd6085
Compare
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.
LGTM editoast part !
LGTM =) |
Preliminary step for #5856