Skip to content

[FEATURE REQUEST] Create a new space #4606

@jesmrec

Description

@jesmrec

ACs:

  • FAB in Spaces view
  • Dialog or view to create it, with the following inputs :
    - Name (required)
    - Subtitle
    - Quota -> the easiest way. No limit is also a value (check server)
  • Restrictions for space name (don't apply to subtitle):
    - Space name cannot be empty
    - Space name cannot exceed 255 characters
    - Space name cannot contain the following characters: / \ . : ? * " > < |'
  • Only for users with space admin or admin roles ("Drives.Create.all")

Base request:

POST https://<server>/graph/v1.0/drives

(https://owncloud.dev/libre-graph-api/#/drives/CreateDrive)

(iOS team uses POST https://<server>/graph/v1.0/drives?template=default, any difference?)

with body:

{
            "description": "my space",
            "name": "Space request",
             "quota": {
                   "total": 1000000000
               }
}

There is no information about error handling, so if any error would happen, it'd be enough showing a generic error message.

TASKS

  • Research (if needed)
  • Create branch feature/create_new_space
  • Development tasks
    • Get user permissions with /api/v0/settings/permissions-list request
    • Check if the response contains Drives.Create.all permission and show FAB
    • Show dialog for creating space
    • Set restrictions for space name
    • Create the space with /graph/v1.0/drives post request
    • Implement unit tests (if needed)
  • Code review and apply changes requested
  • Design test plan
  • QA
  • Merge branch feature/create_new_space into master

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions