console icon indicating copy to clipboard operation
console copied to clipboard

[Functions] Removing all deployments when there exists at least one active deployment with pending deployments results in an "orphan function"

Open ammarfaris opened this issue 2 months ago • 1 comments

👟 Reproduction steps

  1. Create a function manually
Image
  1. Wait for it to build Image

  2. If we delete the deployment, when there is only one deployment regardless of pending status (like building...) or active, all will be good and we will get something like this

Image
  1. BUT IF WE DELETE ALL DEPLOYMENT when there is more than one deployments, like this (including pending ones like the those with "Building / Waiting / etc" status:
Image
  1. ... we will get a 404 error page, and ended up with orphaned functions, when we click on these functions we will get the 404 error on the specific function we choose
Image Image

CLICKING THE FUNCTION will result in 404

Image

AND WE DON'T HAVE THE OPTION TO DELETE THESE ORPHANED FUNCTIONS

👍 Expected behavior

It should instead be like the case where we have no deployments yet (like the situation when we only have one deployment and we delete it)

Image

👎 Actual Behavior

We get a 404 error page, and ended up with orphaned functions, when we click on these functions we will get the 404 error on the specific function we choose

Image Image

CLICKING THE FUNCTION will result in 404

Image

AND WE DON'T HAVE THE OPTION TO DELETE THESE ORPHANED FUNCTIONS

🎲 Appwrite version

Appwrite Cloud

💻 Operating system

Linux

🧱 Your Environment

not relevant - all the steps are via the appwrite cloud console UI

👀 Have you spent some time to check if this issue has been raised before?

  • [x] I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

ammarfaris avatar Nov 08 '25 14:11 ammarfaris