-
Notifications
You must be signed in to change notification settings - Fork 91
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
Inject Session Time Out To The Remote Operation Constructors #1597
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: alperozturk <alper_ozturk@proton.me>
Signed-off-by: alperozturk <alper_ozturk@proton.me>
Signed-off-by: alperozturk <alper_ozturk@proton.me>
stable-IT test failed: https://www.kaminsky.me/nc-dev/android-library-integrationTests/3596-IT-stable-09-28/debug/ |
Failing test is unrelated. Example merged PR: #1593 |
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.
Overall, this seems to be working as expected. There are a few minor things that I would suggest changing, for which I've added some comments.
library/src/main/java/com/owncloud/android/lib/resources/e2ee/StoreMetadataV2RemoteOperation.kt
Show resolved
Hide resolved
library/src/main/java/com/owncloud/android/lib/resources/files/CreateFolderRemoteOperation.java
Outdated
Show resolved
Hide resolved
library/src/main/java/com/owncloud/android/lib/resources/files/RemoveFileRemoteOperation.java
Outdated
Show resolved
Hide resolved
...rc/main/java/com/owncloud/android/lib/resources/files/RestoreFileVersionRemoteOperation.java
Outdated
Show resolved
Hide resolved
...main/java/com/owncloud/android/lib/resources/trashbin/RemoveTrashbinFileRemoteOperation.java
Outdated
Show resolved
Hide resolved
...ain/java/com/owncloud/android/lib/resources/trashbin/RestoreTrashbinFileRemoteOperation.java
Outdated
Show resolved
Hide resolved
Signed-off-by: alperozturk <alper_ozturk@proton.me>
Signed-off-by: alperozturk <alper_ozturk@proton.me>
Signed-off-by: alperozturk <alper_ozturk@proton.me>
Signed-off-by: alperozturk <alper_ozturk@proton.me>
Signed-off-by: alperozturk <alper_ozturk@proton.me>
Signed-off-by: alperozturk <alper_ozturk@proton.me>
master-IT test failed: https://www.kaminsky.me/nc-dev/android-library-integrationTests/3603-IT-master-15-50/debug/ |
stable-IT test failed: https://www.kaminsky.me/nc-dev/android-library-integrationTests/3603-IT-stable-15-53/debug/ |
The client must be able to modify the session timeout according to their needs. For example, if the server instance slow, some network operations may fail. This could lead to issues, especially during end-to-end (E2E) operations.
Changes
SessionTimeOut data class has been added.
The default SessionTimeOut is utilized for each remote operation in the first constructor.
A second constructor has been added to allow custom SessionTimeOut injection for each remote operation.
How to Test?
Files client must build without any compile error
Files client must be able to configure SessionTimeOut for any remote operations