-
Notifications
You must be signed in to change notification settings - Fork 75
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
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 <ozz@stacklok.com>
Signed-off-by: Juan Antonio Osorio <ozz@stacklok.com>
Signed-off-by: Juan Antonio Osorio <ozz@stacklok.com>
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 <ozz@stacklok.com>
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 <ozz@stacklok.com>
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 ozz@stacklok.com