Skip to content

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

@ammarfaris

Description

@ammarfaris

👟 Reproduction steps

  1. Create a function manually
Image
  1. Wait for it to build
Image
  1. 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?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions