-
Notifications
You must be signed in to change notification settings - Fork 83
Implement basic soft deletion for workspaces #657
Conversation
this adds a `deleted_at` column to workspaces that implements a basic soft-deletion mechanism. All relevant queries have been modified to reflect this. At the moment, there is no hard deletion of workspaces; this will be implemented in the future. We also have no way of showing "archived" or "soft-deleted" workspaces. This will come in due time. Signed-off-by: Juan Antonio Osorio <[email protected]>
Signed-off-by: Juan Antonio Osorio <[email protected]>
Signed-off-by: Juan Antonio Osorio <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couple of comments. The one that I would like to get attended is the one about listing the workspaces. I didn't see the query update.
Signed-off-by: Juan Antonio Osorio <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs a fix
I'm getting
|
Signed-off-by: Juan Antonio Osorio <[email protected]>
except crud.WorkspaceDoesNotExistError: | ||
return f"Workspace **{workspace_name}** does not exist" | ||
except Exception: | ||
return "An error occurred while removing the workspace" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should give the user a clearer error message of what's going on. I got this when trying to delete the active workspace. It's ok to fix on a later PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you open a bug about this? I can fix it tomorrow.
this adds a
deleted_at
column to workspaces that implements a basicsoft-deletion mechanism. All relevant queries have been modified to reflect this.
At the moment, there is no hard deletion of workspaces; this will be
implemented in the future.
We also have no way of showing "archived" or "soft-deleted" workspaces.
This will come in due time.
Signed-off-by: Juan Antonio Osorio [email protected]