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

fix: fix delete/overwrite bug with workspaces #119

Merged
merged 1 commit into from
Mar 4, 2024
Merged

Conversation

ejseqera
Copy link
Member

@ejseqera ejseqera commented Mar 4, 2024

Re #115

Fixes bug in keys used to retrieve identifier for workspaces and retrieving ID for workspace for deletion.

Confirmed by adding a workspace:

DEBUG:root: Running command: tw -o json workspaces list
INFO:root:Checking if workspaceName e2e_demo exists in Seqera Platform...
DEBUG:root: Running command: tw workspaces add --name e2e_demo --full-name 'some name' --organization seqerakit_automation --visibility PRIVATE

Followed by deleting:

DEBUG:root: The '--delete' flag has been specified.

DEBUG:root: Running command: tw -o json workspaces list
INFO:root:Checking if workspaceName e2e_demo exists in Seqera Platform...
DEBUG:root: Deleting the workspaces resource.
DEBUG:root: Running command: tw workspaces delete --id 232421996273149

Also by specifying overwrite: true with an existing workspace of same name:

DEBUG:root: Overwrite is set to 'True' for workspaces

DEBUG:root: Running command: tw -o json workspaces list
INFO:root:Checking if workspaceName e2e_demo exists in Seqera Platform...
DEBUG:root: The attempted workspaces resource already exists. Overwriting.

DEBUG:root: Running command: tw workspaces delete --id 183701661549877
DEBUG:root: Running command: tw workspaces add --name e2e_demo --full-name 'some name' --organization seqerakit_automation --visibility PRIVATE

@ejseqera ejseqera merged commit 843b011 into dev Mar 4, 2024
3 checks passed
@ejseqera ejseqera deleted the 115-fix-workspace-del branch March 4, 2024 03:12
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.

1 participant