-
Notifications
You must be signed in to change notification settings - Fork 8
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
MLIBZ-2490: pull with skip should not remove cached records #287
Conversation
@@ -39,7 +39,7 @@ internal class PullOperation<T: Persistable>: FindOperation<T> where T: NSObject | |||
} | |||
|
|||
override var mustRemoveCachedRecords: Bool { |
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.
Where does this get called? Can you link to a line number?
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.
PullOperation
extends from FindOperation
, here's the line in FindOperation
:
swift-sdk/Kinvey/Kinvey/FindOperation.swift
Line 299 in 4032b16
if self.mustRemoveCachedRecords { |
Codecov Report
@@ Coverage Diff @@
## develop #287 +/- ##
===========================================
+ Coverage 88.39% 89.26% +0.87%
===========================================
Files 70 70
Lines 8351 9001 +650
===========================================
+ Hits 7382 8035 +653
+ Misses 969 966 -3
Continue to review full report at Codecov.
|
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
Description
When skip and limit is used we should not remove cached records
Changes
PullOperation
now checks if theskip
andlimit
arenil
to determine if local records should be deleted before save the records pulled from the serverTests