Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

(fix) Delete App by path #169

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

Merged
giulio93 merged 1 commit into main from fix_delete_app_by_path
Dec 19, 2025
Merged

(fix) Delete App by path #169

giulio93 merged 1 commit into main from fix_delete_app_by_path
Dec 19, 2025

Conversation

@giulio93
Copy link
Contributor

@giulio93 giulio93 commented Dec 17, 2025
edited
Loading

Motivation

DeleteApp method should stop and destroy each application selected for deletion by the user.
As of now just starting or restarting app are running or starting. So all the application that are in other status will be deleted (removed) but the resource will be not destroyed. This will create an inconsistent state for the app that will be created with the same name (app path)

Copy link
Contributor

@lucarin91 lucarin91 left a comment

Choose a reason for hiding this comment

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

We should verify that we don't reintroduce the issue solved here #112

// just consume the iterator
}
// We try to remove docker related resources at best effort
for range StopAndDestroyApp(ctx, dockerClient, app) {
Copy link
Contributor

@lucarin91 lucarin91 Dec 18, 2025

Choose a reason for hiding this comment

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

I am wondering if we by default we should return an error if the app is running or if it has some data, and maybe have a parameter to force this behaviour

Copy link
Contributor

@mirkoCrobu mirkoCrobu Dec 18, 2025

Choose a reason for hiding this comment

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

I was wondering whether it would be useful to add a parameter to make the command more customizable.
Then I thought: "But in this case, we would need to modify both the CLI and the API."
Looking at the code, I just realized that we don't have a CLI command for app deletion!
I am going to open an issue for that.

Copy link
Contributor

@lucarin91 lucarin91 Dec 18, 2025

Choose a reason for hiding this comment

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

already done here #170

mirkoCrobu reacted with heart emoji
@giulio93 giulio93 merged commit 5b1dbf2 into main Dec 19, 2025
10 checks passed
@giulio93 giulio93 deleted the fix_delete_app_by_path branch December 19, 2025 08:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@lucarin91 lucarin91 lucarin91 approved these changes

@mirkoCrobu mirkoCrobu mirkoCrobu left review comments

@martacarbone martacarbone Awaiting requested review from martacarbone

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /