-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Closed
Description
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 adminoradminroles ("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-listrequest - Check if the response contains
Drives.Create.allpermission and show FAB - Show dialog for creating space
- Set restrictions for space name
- Create the space with
/graph/v1.0/drivespost request - Implement unit tests (if needed)
- Get user permissions with
- Code review and apply changes requested
- Design test plan
- QA
- Merge branch feature/create_new_space into master
martin-sucha