Skip to content

[New architecture] Capabilities #2495

Closed

Description

@davigonz

The sooner we have capabilities within the new architecture the better since some of the app features depend on them:

  • Shares.
  • RefreshFolderOp.
  • FileMenuFilter.

2  Capabilities


TASKS

  • Create OCCapability entity
  • Create OCCapabilityDAO with query to get and insert capabilities
  • Create OCCapabilityLocalDataSource and OCCapabilityRemoteDataSource
  • Create OCCapabilityRepository
  • Create OCCapabilityViewModel
  • Use LiveData in CapabilityDAO
  • Get and insert capabilities when needed
  • Error handling
  • Expose capabilities stored in room by using Content Provider => Not possible yet since capabilities are being used from other parts of the code not related to sharing, we will keep capabilities on old and new databases.
  • Database migration
  • Unit tests:
    • OCCapabilityViewModel
    • OCCapabilityLocalDataSource
    • OCCapabilityRemoteDataSource
    • OCCapabilityRepository
  • Instrumented tests:
    • CapabilityContentProvider
    • OCCapabilityDAO
  • UI tests

PRs

App: #2508
Library: owncloud/android-library#246

Activity

  1. added this to the 2.11.0 milestone on Mar 21, 2019
  2. modified the milestones: 2.11.0, on Mar 26, 2019
  3. self-assigned this
    on Apr 1, 2019
  4. jesmrec commented on Apr 11, 2019

    @jesmrec
    Member

    Test plan for UI tests linked in header message. @davigonz you can check if you miss something.

  5. jesmrec commented on Apr 22, 2019

    @jesmrec
    Member

    Tested password policy app with the new architecture implementation. Everything is OK, currently, if the password created under some policies does not match, an error message is shown with the specific error pointing the user to change it to match every policy.

    Number of expiration days depending on the public link password are also correctly managed.

    CC @michaelstingl

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions