Content-Length: 370082 | pFad | https://github.com/stacklok/codegate/pull/657

D7 Implement basic soft deletion for workspaces by JAORMX · Pull Request #657 · stacklok/codegate · GitHub
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

Implement basic soft deletion for workspaces #657

Merged
merged 5 commits into from
Jan 20, 2025

Conversation

JAORMX
Copy link
Contributor

@JAORMX JAORMX commented Jan 20, 2025

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

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>
@JAORMX JAORMX requested a review from aponcedeleonch January 20, 2025 14:23
@JAORMX JAORMX marked this pull request as ready for review January 20, 2025 14:23
Signed-off-by: Juan Antonio Osorio <ozz@stacklok.com>
@lukehinds lukehinds self-requested a review January 20, 2025 14:45
Copy link
Contributor

@aponcedeleonch aponcedeleonch left a 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.

aponcedeleonch
aponcedeleonch previously approved these changes Jan 20, 2025
Signed-off-by: Juan Antonio Osorio <ozz@stacklok.com>
Copy link
Contributor

@aponcedeleonch aponcedeleonch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs a fix

@aponcedeleonch
Copy link
Contributor

I'm getting

 "Workspace._remove_workspace() takes 2 positional arguments but 3 were given"

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"
Copy link
Contributor

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.

Copy link
Contributor Author

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.

@JAORMX JAORMX merged commit c140e65 into stacklok:main Jan 20, 2025
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/stacklok/codegate/pull/657

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy