-
Notifications
You must be signed in to change notification settings - Fork 5
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
Comments
can be done in "parallel" to the warning next to deleting a study #467 |
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. |
@elisabettai We already did some trials with ideas. IMO it is feasible to have a first version within a sprint. |
Goal for sprint Jelly Beans
|
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) |
MartinKippenberger Sprintcompleted
open
|
|
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
Tasks
The text was updated successfully, but these errors were encountered: