cisagov / manage.get.gov

A Django-based domain name registrar used by the .gov domain to communicate with an EPP registry
https://get.gov
Other
58 stars 18 forks source link

(DRAFT) Update delete domain process to remove hosts and/or contacts #2823

Open vickyszuchin opened 3 days ago

vickyszuchin commented 3 days ago

Issue description

When removing a domain from the registry, the registrar threw the error: "Error deleting this Domain: This subdomain is being used as a hostname on another domain."

We should go ahead and automatically remove the subdomain nameservers first as part of our delete process. Right now on delete we are just removing the domain from the registry. We do not remove the hosts or contacts. We originally didn’t add in a check on the subdomain thing because we were not storing nameservers. Now we are are storing nameservers so it is not overly complex for us to just check for where it is in use and auto remove if it is just in use on the current domain.

Additionally, if the subdomain is in use on another domain we should have a friendly error that shows for you saying “Can’t delete because a subdomain of this domain is in use on: "

Acceptance criteria

Additional context

Slack thread

Links to other issues

No response

vickyszuchin commented 3 days ago

@abroddrick a reminder to refine this ticket. You can remove the "refinement" label afterwards.