-
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
New arch/capabilities #2508
New arch/capabilities #2508
Conversation
f82ba8c
to
852c46c
Compare
dc9921a
to
01977a3
Compare
01977a3
to
fb56ffd
Compare
98722e0
to
f82ba8c
Compare
…ent provider and modify capability insert method to use lists
…es and use them in UI tests
owncloudApp/src/androidTest/java/com/owncloud/android/shares/ui/ShareFileFragmentTest.kt
Show resolved
Hide resolved
owncloudApp/src/main/java/com/owncloud/android/capabilities/db/OCCapability.kt
Outdated
Show resolved
Hide resolved
owncloudApp/src/main/java/com/owncloud/android/capabilities/db/OCCapability.kt
Outdated
Show resolved
Hide resolved
owncloudApp/src/main/java/com/owncloud/android/capabilities/db/OCCapability.kt
Outdated
Show resolved
Hide resolved
owncloudApp/src/main/java/com/owncloud/android/capabilities/db/OCCapabilityDao.kt
Show resolved
Hide resolved
owncloudApp/src/test/java/com/owncloud/android/NetworkBoundResourceTest.kt
Outdated
Show resolved
Hide resolved
owncloudApp/src/test/java/com/owncloud/android/NetworkBoundResourceTest.kt
Outdated
Show resolved
Hide resolved
owncloudApp/src/test/java/com/owncloud/android/NetworkBoundResourceTest.kt
Outdated
Show resolved
Hide resolved
owncloudApp/src/test/java/com/owncloud/android/NetworkBoundResourceTest.kt
Outdated
Show resolved
Hide resolved
...c/test/java/com/owncloud/android/capabilities/repository/RemoteCapabilitiesDataSourceTest.kt
Outdated
Show resolved
Hide resolved
@davigonz Some changes requested |
@abelgardep changes applied |
owncloudApp/src/main/java/com/owncloud/android/shares/ui/fragment/ShareFileFragment.kt
Show resolved
Hide resolved
owncloudApp/src/main/java/com/owncloud/android/shares/ui/fragment/ShareFileFragment.kt
Show resolved
Hide resolved
owncloudApp/src/main/java/com/owncloud/android/shares/viewmodel/OCShareViewModel.kt
Outdated
Show resolved
Hide resolved
...loudApp/src/main/java/com/owncloud/android/capabilities/repository/OCCapabilityRepository.kt
Outdated
Show resolved
Hide resolved
...src/main/java/com/owncloud/android/capabilities/datasource/OCRemoteCapabilitiesDataSource.kt
Outdated
Show resolved
Hide resolved
Code approved, ready to test @jesmrec , great job @abelgardep with the code review |
(1) [FIXED]Capabilities are not being refresh after opening share view. For example, if in UI you enable "Allow users to share via link", after opening share view, the "Public Share" section is visible. Same happens with the password enforcing options. |
(2) [FIXED]Check these steps:
Current: feature was enabled but public link section keeps hidden. By going back again to file list, and re-opening share, everything is correct. Seems that the first opening refresh capabilities, but do not apply changes in UI. Nexus 6P v7 NOTE: the mentioned capability is the only affected. Any other capability related to public sharing is working as expected. |
@jesmrec #2508 (comment) is ready to test but you will notice the public link section disappearing every time you open the shares view when Allow users to share via link option is disabled. I do not like how it looks honestly, but since we are getting capabilities from network when opening the sharing view, there's nothing else we can do in terms of UI. Maybe we can improve this behaviour during the implementation of capabilities when refreshing folders and just get capabilities from the database instead of server on the sharing view. |
Could you post a GIF? |
Ah, got it. Reverse it? Disabling items (empty for a few milliseconds), and enable only those that are valid? |
I kept it that way because I thought users will likely have the public shares enabled instead of disabled and the effect would not appear most of the times. |
yes, it is not usual that the capabilities are changing standly, they use to be static. Fix is correct. Approved. |
Implements #2495
Needs owncloud/android-library#246
Bugs & improvements