-
Notifications
You must be signed in to change notification settings - Fork 94
Album remote operations #1736
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
base: master
Are you sure you want to change the base?
Album remote operations #1736
Conversation
library/src/main/java/com/owncloud/android/lib/common/utils/WebDavFileUtils.java
Outdated
Show resolved
Hide resolved
library/src/main/java/com/owncloud/android/lib/resources/albums/PhotoAlbumEntry.kt
Outdated
Show resolved
Hide resolved
library/src/main/java/com/owncloud/android/lib/resources/albums/PhotoAlbumEntry.kt
Show resolved
Hide resolved
library/src/main/java/com/owncloud/android/lib/resources/albums/PhotoAlbumEntry.kt
Show resolved
Hide resolved
.../src/main/java/com/owncloud/android/lib/resources/albums/CopyFileToAlbumRemoteOperation.java
Outdated
Show resolved
Hide resolved
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.
Thank you for the update. You can use the following command to fix spot bugs and formatting.
./gradlew detekt
→ it detects and gives HTML output, so that you can check it.
./gradlew :app:spotlessApply
→ reformats Kotlin code
...ary/src/main/java/com/owncloud/android/lib/resources/albums/CreateNewAlbumRemoteOperation.kt
Outdated
Show resolved
Hide resolved
...ry/src/main/java/com/owncloud/android/lib/resources/albums/CopyFileToAlbumRemoteOperation.kt
Outdated
Show resolved
Hide resolved
...ary/src/main/java/com/owncloud/android/lib/resources/albums/CreateNewAlbumRemoteOperation.kt
Outdated
Show resolved
Hide resolved
library/src/main/java/com/owncloud/android/lib/resources/albums/PhotoAlbumEntry.kt
Outdated
Show resolved
Hide resolved
library/src/main/java/com/owncloud/android/lib/resources/albums/PhotoAlbumEntry.kt
Outdated
Show resolved
Hide resolved
library/src/main/java/com/owncloud/android/lib/resources/albums/ReadAlbumsRemoteOperation.kt
Outdated
Show resolved
Hide resolved
library/src/main/java/com/owncloud/android/lib/resources/albums/ReadAlbumsRemoteOperation.kt
Outdated
Show resolved
Hide resolved
library/src/main/java/com/owncloud/android/lib/resources/albums/RemoveAlbumRemoteOperation.kt
Outdated
Show resolved
Hide resolved
library/src/main/java/com/owncloud/android/lib/resources/albums/RenameAlbumRemoteOperation.kt
Outdated
Show resolved
Hide resolved
library/src/main/java/com/owncloud/android/lib/resources/albums/RenameAlbumRemoteOperation.kt
Outdated
Show resolved
Hide resolved
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.
The following issues were found during analysis. Please fix them where possible. Thank you.
NestedBlockDepth (You can suppress with annotation if you are not able to extract the nested blocks) → ReadAlbumItemsRemoteOperation.kt:28:18
TooGenericExceptionCaught (You can suppress with annotation since error handling in remote operation is not well-designed in the current architecture) →
→ CopyFileToAlbumRemoteOperation.kt:88:18
→ CreateNewAlbumRemoteOperation.kt:57:18
→ ReadAlbumItemsRemoteOperation.kt:68:18
→ ReadAlbumsRemoteOperation.kt:57:18
→ RemoveAlbumFileRemoteOperation.kt:45:18
→ RemoveAlbumRemoteOperation.kt:53:18
→ RenameAlbumRemoteOperation.kt:55:18
MagicNumber (You can create constants in companion object and use them):
→ CopyFileToAlbumRemoteOperation.kt:131:76
→ PhotoAlbumEntry.kt:83:61
NewLineAtEndOfFile (You can add a new line at the end of the file):
→ PhotoAlbumEntry.kt:91:2
→ ToggleAlbumFavoriteRemoteOperation.kt:73:2
→ PhotoAlbumEntryTest.kt:57:2
ReturnCount (You can try to reduce return counts. If not possible, you can use annotation to suppress it):
→ CopyFileToAlbumRemoteOperation.kt:42:18
Signed-off-by: A117870935 <surinder.kumar@t-systems.com>
Addressed all the issues. Can you please check? |
@tobiasKaminsky @AndyScherzinger Why REUSE Complicance Check is failing? e.g.
It should be SPDX-License-Identifier: MIT instead of AGPL-3.0-or-later? |
@alperozturk96 @surinder-tsys Correct, the lib is MIT hence any contribution to it has to be MIT |
Hello there, We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process. Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6 Thank you for contributing to Nextcloud and we hope to hear from you soon! (If you believe you should not receive this message, you can add yourself to the blocklist.) |
This PR contains the Remote operations for the Albums functionality.