Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃悰 Bug Report: Domains Not Unassigned on Function Delete #8068

Open
2 tasks done
ItzNotABug opened this issue May 3, 2024 · 0 comments
Open
2 tasks done

馃悰 Bug Report: Domains Not Unassigned on Function Delete #8068

ItzNotABug opened this issue May 3, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@ItzNotABug
Copy link
Contributor

馃憻 Reproduction steps

Encountered an issue somewhat similar to the one reported in Issue #7999, where domains added to a function persist even after the function is deleted. This occurs under the same conditions as the previously linked issue; however, you can confirm it by checking the domains tab.


Steps to Manually Reproduce:
You can manually reproduce the issue by disabling the appwrite-worker-deletes service and following these steps:

  1. Initialize a new Function
  2. Attach a custom domain to it
  3. Delete the function
  4. Recreate the function using the same ID.
    The original domain still exists alongside any newly added domain.

Additional Issue:
Another related problem is that until the deletion worker processes removals, the domain document exists in the database which prevents the domain from being reassigned to another function instantly.

馃憤 Expected behavior

Instantly remove the domain or allow its assignment, maybe by checking if the assigned function exists or not by making queried request using $function->getInternalId()?

馃憥 Actual Behavior

  1. Domain re-appears after re-creating a function
  2. Unable to assign a domain to any other function until the worker runs

馃幉 Appwrite version

Appwrite Cloud

馃捇 Operating system

MacOS

馃П Your Environment

No response

馃憖 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?

@ItzNotABug ItzNotABug added the bug Something isn't working label May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant