Skip to content

fixes #396: remove orphaned project applications before deletion - #407

Open
amr807 wants to merge 1 commit into
futrx-com:qafrom
amr807:qa
Open

amr807 wants to merge 1 commit into
futrx-com:qafrom
amr807:qa

Conversation

@amr807

@amr807 amr807 commented Nov 15, 2026

Copy link
Copy Markdown

Summary

Fixes #396

When a project is deleted, its project-scoped application instances were not being uninstalled. These orphaned instances remained in the applications store and were picked up by subsequent application upgrade operations, causing project not found errors.

Changes

  • Add DeleteProjectApplications to the applications service to uninstall all applications belonging to a project.
  • Reuse the existing package-removal uninstall lifecycle.
  • Integrate application cleanup into project deletion before removing the project container and record.
  • Abort project deletion if application cleanup fails, preserving the project for a safe retry.
  • Add regression tests covering successful cleanup, isolation between projects, and uninstall failures.

Tests

  • go -C backend test -count=1 ./internal/service/project
  • go -C backend test -count=1 ./internal/service/applications
  • git diff --check

Copilot AI balanced review requested due to automatic review settings November 15, 2026 07:35

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.

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.

[bug] When removing a project app update still tries to update it

2 participants