Skip to content
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

Feature to undo a delete - "recycle bin" style #468

Open
5 of 12 tasks
KZzizzle opened this issue May 4, 2021 · 7 comments
Open
5 of 12 tasks

Feature to undo a delete - "recycle bin" style #468

KZzizzle opened this issue May 4, 2021 · 7 comments
Assignees
Labels
Feedback Feedback through frontend PO issue Created by Product owners Team Black NIH Team Black (Issues/UI improvements) type:enhancement Feature requests (functionality and UI)
Milestone

Comments

@KZzizzle
Copy link
Contributor

KZzizzle commented May 4, 2021

Create a "folder" for deleted studies during the last 30 days so that they can be retrieved if the deletion was a mistake.

Event Horizon

Preview Give feedback
  1. a:frontend t:enhancement
    odeimaiz

Tasks

Preview Give feedback
  1. a:database a:webserver
    pcrespov
  2. a:api a:webserver
    pcrespov
  3. a:api a:webserver
    pcrespov
@KZzizzle KZzizzle added enhancement Feedback Feedback through frontend labels May 4, 2021
@KZzizzle KZzizzle self-assigned this May 4, 2021
@KZzizzle
Copy link
Contributor Author

KZzizzle commented May 4, 2021

can be done in "parallel" to the warning next to deleting a study #467

@pcrespov pcrespov self-assigned this Oct 19, 2021
@elisabettai elisabettai added the Team Black NIH Team Black (Issues/UI improvements) label Jun 7, 2022
@pcrespov pcrespov added Feedback Feedback through frontend and removed Feedback Feedback through frontend labels Jun 9, 2022
@elisabettai
Copy link
Contributor

This has come up as well from Team Black on today's meeting (19.10). And will help also other users who might delete a study by mistake.
How difficult is to implement @pcrespov?

@pcrespov
Copy link
Member

pcrespov commented Oct 19, 2022

This has come up as well from Team Black on today's meeting (19.10). And will help also other users who might delete a study by mistake. How difficult is to implement @pcrespov?

@elisabettai We already did some trials with ideas. IMO it is feasible to have a first version within a sprint.

@pcrespov pcrespov added this to the Jelly Beans milestone Apr 4, 2023
@sanderegg sanderegg assigned KZzizzle and odeimaiz and unassigned KZzizzle Apr 6, 2023
@pcrespov
Copy link
Member

Goal for sprint Jelly Beans

  • entrypoint to :delete (i.e. force-delete)
  • entrypoint to :recycle
    • configurable expiration date
  • list recycled studies
  • entrypoint to :restore

@pcrespov
Copy link
Member

  • projects._delete_utils.py
async def mark_project_as_deleted(
    app: web.Application, project_uuid: ProjectID, user_id: UserID
):
    """
    ::raises ProjectInvalidRightsError
    ::raises ProjectNotFoundError
    """
    db: ProjectDBAPI = ProjectDBAPI.get_from_app_context(app)
    # TODO: tmp using invisible as a "deletion mark"
    # Even if any of the steps below fail, the project will remain invisible
    # TODO: see https://github.com/ITISFoundation/osparc-simcore/pull/2522
    await db.check_delete_project_permission(user_id, f"{project_uuid}")

    await db.check_project_has_only_one_product(project_uuid)

    # NOTE: if any of the steps below fail, it might results in a
    # services/projects/data that might be incosistent. The GC should
    # be able to detect that and resolve it.
    await db.set_hidden_flag(project_uuid, enabled=True)

@pcrespov pcrespov modified the milestones: Jelly Beans, Pastel de Nata May 9, 2023
@pcrespov pcrespov modified the milestones: Jelly Beans, Watermelon Jun 8, 2023
@elisabettai elisabettai added type:enhancement Feature requests (functionality and UI) and removed enhancement labels Aug 31, 2023
@pcrespov
Copy link
Member

pcrespov commented Oct 27, 2024

MartinKippenberger Sprint

completed

open

  • folders can be trashed
  • workspaces can be trashed
  • improving deletion operation (connected to issues detected on pubic API)
  • improve periodic background task that deletes trashed items after retention time

@mguidon
Copy link
Member

mguidon commented Nov 5, 2024

  • its about folders, workspaces and projects
  • 3 entrypoints in the backend
  • UX: We are following established ideas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feedback Feedback through frontend PO issue Created by Product owners Team Black NIH Team Black (Issues/UI improvements) type:enhancement Feature requests (functionality and UI)
Projects
None yet
Development

No branches or pull requests

7 participants