-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Fix viewing unattached domain records #19545
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 10.0/bugfixes
Are you sure you want to change the base?
Fix viewing unattached domain records #19545
Conversation
Could you give a link to the corresponding code ? |
Domain records explicitly inherit entity info from domains but only if they are linked: Domain dropdown in record form doesn't have the empty option hidden: Domain dropdown in records tab to "Link a record" has SQL criteria to show records with a |
It's been a while since this has been added; but I do not remember we explicitely want records not linked to domain; I see ne case when it really makes sense.
Therefore, those both seems bugs that should be fixed. Current PR seems wrong to me; correct fix is probably to ensure records are all linked. |
I agree. It does not make sense to have records not linked to a domain. Maybe it was a behaviour present in the @orthagh, what your opinion on this ? |
None, really. |
On PowerDNS side, records are depending on a domain. |
So, same as #18360. We have a case where a child itemtype is supposed to always be linked but that wasn't previously designed like that. We cannot force users to fix orphan records, and therefore essentially have to keep supporting orphaned domain records except maybe preventing new orphans from being created. |
#18360 is about transfer, that's not really the scope here (I'm almost sure there are still lot of issues in transfer process). Domains record must be linked to a domain - that makes no sense to have standalone ones. If transfer allows that, that's a transfer bug. Current PR is still not acceptable. |
Checklist before requesting a review
Description
It seems like having domain records not linked to a domain was an intentional design since there is even a UI feature to link unattached records to domains. However, domain records use a
CommonDBChild
class which by default requires they be attached to a parent item (domain). While you could create records without a domain (probably another bug, but I don't want to dive into that right now), you would not be able to view them because it would fail a permission check. WhencanChildItem
can't find a parent item, it will return false if it must be attached.