coolify icon indicating copy to clipboard operation
coolify copied to clipboard

Fix: Projects can be deleted with resources

Open peaklabs-dev opened this issue 4 months ago • 0 comments

Note

-> I could have fixed this with a one line change by checking resource_count() > 0 before deleting the project, but I decided to refactor the code a bit to use isEmpty() as we use that in other places as well.

Changes

  • Fix: Project with resources (compose base, services...) can be deleted, but the resources would of course still be there after the project was deleted (before deleting a project, we only checked applications, which is not enough).
  • Improvement: Show better error message when deleting projects and environments.

Issues

  • fix #3747

peaklabs-dev avatar Oct 18 '24 12:10 peaklabs-dev