-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
[FEATURE] Respect capability for Avatar support. #3438
Conversation
4bbfb72
to
4f1e312
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.
No syntax error found 🥇 , however, let's wait for @abelgardep to review this
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.
Some suggestions here @fesave
owncloudApp/src/main/java/com/owncloud/android/presentation/manager/AvatarManager.kt
Outdated
Show resolved
Hide resolved
owncloudData/src/main/java/com/owncloud/android/data/migrations/Migration_36.kt
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.
Some suggestions here @fesave
owncloudApp/src/main/java/com/owncloud/android/presentation/manager/AvatarManager.kt
Outdated
Show resolved
Hide resolved
...oudData/src/androidTest/java/com/owncloud/android/data/roommigrations/MigrationToDB36Test.kt
Outdated
Show resolved
Hide resolved
...oudData/src/androidTest/java/com/owncloud/android/data/roommigrations/MigrationToDB36Test.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.
Good job @fesave! Let's move it to QA
QA checks:
|
(1) [FIXED]Server returning
is also showing the avatar. Nexus 6P |
@jesmrec this is ready to test, but I have seen that sometimes the avatar call is called before the capabilities have been recovered. In the worst case the call is only made only once with this new check, avoiding saturating the server with constant calls. |
c7f6cf6
to
7e07298
Compare
7e07298
to
f2da72f
Compare
Regarding (1). When browsing to root, the
will recheck this |
It should be fixed now. @jesmrec The avatar was retrieved from the SyncProfileOperation where we ask for the user info, user quota, and also avatar. From now on, we will ask for the user info, user quota, and depending on the capability, we will ask for the avatar. |
(1) is fixed. Actually, capabilities are being moved to the new DB in the scope of the new architecture. For this reason, not every capability is supported with the new stuff yet. The current capability ( With the current approach, this PR is ready to go. |
6ce727d
to
4187f11
Compare
Kudos, SonarCloud Quality Gate passed! |
Related Issues
App: #3285
Library: owncloud/android-library#442
QA
QA checklist: #3438 (comment)