Repository navigation
fix(domains): do not ask a switched-off registrar about availability - #534
Merged
Panelica merged 1 commit intoNov 30, 2026
Merged
Conversation
The availability check asked the registrar set on a TLD, or the default registrar, whether or not it was switched on. A registrar the operator had switched off, its credentials perhaps removed, was still asked on every search, and each lookup waited for its error before falling back to RDAP and WHOIS. A switched-off registrar is now skipped as a TLD without one is, by the same rule the modules screen uses (ModuleSwitchboard::isActive). The test fixtures that configured DomainNameAPI's credentials now also switch it on, as the registrars screen does.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The availability check asked the registrar set on a TLD, or the default registrar, whether or not it was switched on. A registrar the operator had switched off, its credentials perhaps removed, was still asked on every search, and each lookup waited for its error before falling back to RDAP and WHOIS.
A switched-off registrar is now skipped the way a TLD without one is, using the rule the modules screen already uses (
ModuleSwitchboard::isActive('registrar', ...): on when itsvisiblesetting is1).Test fixtures that set DomainNameAPI's credentials now also switch it on, as the registrars screen does when it is saved.
Left for you to decide, not changed here:
OrderService::registrarForTld()also uses a switched-off registrar for new domain orders. Skipping it there would send the domain to Manual, which marks it active without registering it, so it needs a decision rather than a quick guard.default_registraralso has no settings field, and defaults todomainnameapiinDomainAvailabilitybut to empty inOrderService.