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
When attempting to use Ash.Sort.expr_sort with a resource or relationship that does not exist, the error message suggests reporting a bug instead of providing a clear and direct error message about the invalid resource/relationship.
** (Ash.Error.Framework.AssumptionFailed) Assumption failed: Listing refs in not_existing_resource_or_relationship.attribute:
Found reference :attribute at path [:not_existing_resource_or_relationship]
No related resource at path [:not_existing_resource_or_relationship] from Cvs.MatchingTable.Entry
This should not be possible, please report a detailed bug at:
https://github.com/ash-project/ash/issues/new?assignees=&labels=bug%2C+needs+review&template=bug_report.md&title=
Expected Behavior
A more specific error message pointing directly to the Ash.Sort.expr_sort call and that it is a human error. Not asying that you should report a bug here.
Bug Report
Describe the Bug
When attempting to use
Ash.Sort.expr_sort
with a resource or relationship that does not exist, the error message suggests reporting a bug instead of providing a clear and direct error message about the invalid resource/relationship.To Reproduce
Add the following code to a resource:
And you get the error
Expected Behavior
A more specific error message pointing directly to the Ash.Sort.expr_sort call and that it is a human error. Not asying that you should report a bug here.
Runtime
[ - Elixir version](elixir: "> 1.16",)
{:ash, "> 3.4.37"},
{:ash_postgres, "> 2.4.12"},
{:ash_phoenix, "> 2.0"},
{:ash_admin, "> 0.11.9"},
{:ash_authentication, "> 4.2.7"},
{:ash_authentication_phoenix, "~> 2.1.2"},
The text was updated successfully, but these errors were encountered: