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

PLAT-1245 - Delete command for Data Studio #480

Merged
merged 2 commits into from
Jan 30, 2025

Conversation

georgi-seqera
Copy link
Contributor

Context

Work relates to task: https://seqera.atlassian.net/browse/PLAT-1245

Summary: add the ability to delete a data studio via the CLI.

Testing

./tw studios delete -w data-studios/data-studios -n fresh-copy

  Data Studio fresh-copy deleted at [data-studios / data-studios] workspace.

Copy link
Member

@endre-seqera endre-seqera left a comment

Choose a reason for hiding this comment

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

Looks good to me!

public final String workspaceRef;

public DataStudioDeleted(String sessionId, String userSuppliedStudioIdentifier, Long workspaceId, String workspaceRef) {
this.sessionId = sessionId;
Copy link
Member

Choose a reason for hiding this comment

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

minor: sessionId and workspaceId might be removed, if unused

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good point, updated

Copy link
Contributor

@weronikasosnowskaseqera weronikasosnowskaseqera left a comment

Choose a reason for hiding this comment

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

One question but overall looks good!

""")).withContentType(MediaType.APPLICATION_JSON)
);

ExecOut out = exec(format, mock, "studios", "stop", "-w", "75887156211589", "-n" ,"studio-a66d");
Copy link
Contributor

Choose a reason for hiding this comment

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

PR is implementing delete, are you adding those tests just because you forgot with other PR or It's a mistake?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeaah, in the previous PR I had to resolve a some merge conflicts after rebasing and somehow these couple of tests got dropped accidentally after so I am re-adding them in this PR.

@georgi-seqera georgi-seqera merged commit 1a7904b into master Jan 30, 2025
12 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.

3 participants