You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When a document has a invalid link, fetch_links=True results in a silent non-resolution to the Link object. This is a hardly debuggable case if a collection of objects is fetched.
and the linked domain was removed, requesting a collection like await Attribute.all(fetch_links=True).to_list() will have both resolved and unresolved links to domain, which is hard to distinguish from await Attribute.all().to_list() without fetched links.
Expected behavior
I would prefer an exception, but alternatively another type can be set, like UnresolvableLink, or None or Link instance with some flag.
The text was updated successfully, but these errors were encountered:
Describe the bug
When a document has a invalid link, fetch_links=True results in a silent non-resolution to the Link object. This is a hardly debuggable case if a collection of objects is fetched.
To Reproduce
So if attribute requires a domain
and the linked domain was removed, requesting a collection like
await Attribute.all(fetch_links=True).to_list()
will have both resolved and unresolved links to domain, which is hard to distinguish fromawait Attribute.all().to_list()
without fetched links.Expected behavior
I would prefer an exception, but alternatively another type can be set, like UnresolvableLink, or None or Link instance with some flag.
The text was updated successfully, but these errors were encountered: