-
-
Notifications
You must be signed in to change notification settings - Fork 735
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
feat: Implementing encrypted local storage for user sessions with tests #1211
base: master
Are you sure you want to change the base?
Conversation
…f the same ParseFile from multiple threads
This reverts commit 8d8a00d
Thanks for opening this pull request!
|
return store.getAsync() | ||
.continueWithTask( | ||
new Continuation<T, Task<T>>() { | ||
@Override | ||
public Task<T> then(Task<T> task) throws Exception { | ||
if (task.getResult() != null) return task; | ||
return legacy.getAsync() | ||
.continueWithTask( | ||
new Continuation<T, Task<T>>() { | ||
@Override | ||
public Task<T> then(Task<T> task) | ||
throws Exception { | ||
T object = task.getResult(); | ||
if (object == null) return task; | ||
return legacy.deleteAsync() | ||
.continueWith( | ||
task1 -> | ||
ParseTaskUtils.wait( | ||
store | ||
.setAsync( | ||
object))) | ||
.onSuccess(task1 -> object); | ||
} | ||
}); | ||
} | ||
}); |
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.
Is there a better way to structure this code?
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.
Will look into it.
@@ -46,7 +46,9 @@ public boolean isCancellationRequested() { | |||
} | |||
} | |||
|
|||
/** @return the token that can be passed to asynchronous method to control cancellation. */ |
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.
Please revert these unrelated changes in bolts, twitter and wherever you find these comment-only refactors.
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.
Okay.
As this PR is a continuation of #1191, did you consider the PR review comments and discussion feedback there when creating this PR? |
Yes, I did. Did i missed something during the discussion feedback? I will again look into the discussion. Thanks for the attention. |
Noting specific, I didn't check the discussion there, only noticed that there has been extensive discussion. |
New Pull Request Checklist
Issue Description
From an existing PR:
Closes: #1192
Approach
EncryptedFileObjectStore
to enable encryption and support CRUD operations.ParseCorePlugins
whengetCurrentUserController()
is invoked byParseObjectStoreMigrator
.ParseFileUtils
to support CRUD operations for encrypted objects.Testing:
TODOs before merging
gradle clean test