-
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] Get Personal spaces quota from GraphAPI #4401
Conversation
2672d16
to
b365045
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.
Some suggestions and questions here @joragua 👍
owncloudApp/src/main/java/com/owncloud/android/operations/SyncProfileOperation.kt
Outdated
Show resolved
Hide resolved
owncloudApp/src/main/java/com/owncloud/android/operations/SyncProfileOperation.kt
Outdated
Show resolved
Hide resolved
owncloudData/src/main/java/com/owncloud/android/data/spaces/repository/OCSpacesRepository.kt
Outdated
Show resolved
Hide resolved
8c49ad5
to
09dde3c
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.
Check the reply to one of the comments of the previous CR round and we're done 😉 @joragua
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! 💯
(1) [FIXED]How or when is the quota checked? i mean, after adding an account, qouta data is retrieved and displayed. But, if quota changes later, is it rechecked and updated? i wasn't able to. |
Let's do a quick look over the current behaviour
that means, i see changes in the quota in both master and 4.2.1 for both backends. The new current scenario is where i don't see updates. |
79ab30c
to
484062c
Compare
(2) [FIXED]
Current: This is what GraphAPI returns:
and this is displayed in app: Expected: If "total" == 0 , there is no limit, so the amount to display would be only the "used" (365MB in the example) Pixel 2, Android 11 |
(3)[IMPROVEMENT]In case the quota is exceeded, we are showing a message In this case, GraphAPI returns something like:
so, we have information about it (state == exceeded)... options that come to my mind:
As extra ball.. apart of "normal" and "exceeded", there is another value for the status that is "nearing" when the quota is close to the limit. Also, adding the request after adding/deleting. For sure, these are improvements and could be addressed to another issue. |
FIXESAbout (1): A refresh for spaces has been added when About (2) : At first, the value of |
(1) and (2) fixed. will create a new issue for (3) |
(4)App crashes with frecuency after fresh install.. not always (unfortunately). I was diving a little bit, and i fount the following stacktrace
pointing to
that comes to my mind together with #4408, where the null account is protected. |
(4) can be fixed refreshing all spaces when the account is set (
|
(4) fixed, and PR approved Merge blocked till 4.2.2 is out |
…ivity is being created
ad83e29
to
52c04c5
Compare
Related Issues
App: #3874
ReleaseNotesViewModel.kt
creating a newReleaseNote()
with String resources (if required)QA
Test plan: https://github.com/owncloud/QA/blob/master/Mobile/Android/Executions/Release_4.3/Quota.md
Reports: