Skip to content

[FEATURE REQUEST] Disable/Remove space #4611

@jesmrec

Description

@jesmrec

An space could be disabled, so, no one can interact with it (like blocked). A disabled space:

  • could be finally removed
  • could be enabled again

AC:

  • Add a new option to the bottom menu: Disable space. Only available if the user is Space Admin, Admin (platform permission: Drives.DeleteProject.all) or Space manager (space permission: libre.graph/driveItem/permissions/delete)

  • If space is disabled:

    • Add two new options to the bottom menu: Enable space (re-enable the space) and Delete space (remove the space after asking for confirmation). Only available if the user is Space manager
  • Refresh list after every operation

  • Extra ball: showing an option in the view to show/hide disabled spaces. By default, disabled spaces are hidden, but web and iOS have an option to list them (as disabled). This one could be moved to another issue

Base Requests:

Disable | Delete

DELETE https://<server>/graph/v1.0/drives/<drive-id> (with header Purge: T for delete operation)

Enable

PATCH https://<server>/graph/v1.0/drives/<drive-id> (with header Restore: T and empty body)

persist in DB the status (enabled/disabled) -> new field?
remove from DB if deleted (automatically when removed from backend)

TASKS

  • Research (if needed)
  • Create branch feature/space_lifecycle_operations
  • Development tasks
    • Add a menu option to disable a space
    • Implement the required methods and operations to disable a space and refresh the list
    • Add a button/option to display the disable spaces in the list
    • Add a new menu option to enable a space
    • Implement the required methods and operations to enable a space and refresh the list
    • Add a new menu option to delete a space
    • Implement the required methods and operations to delete a space and refresh the list
    • ...
    • Implement unit tests (if needed)
  • Code review and apply changes requested
  • Design test plan
  • QA
  • Merge branch feature/space_lifecycle_operations

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions