ash-project / ash-project/ash

Missing Read on Join Resource for many_to_many complains about destination resource missing read action

Open
#1,468 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Elixir
Stars
2.5k
Forks
426
Avg merge
23h 26m
Merged PRs (30d)
46

Description

**Describe the bug**
When loading a resource through a many to many and missing a read action on the join table an error is thrown complaining the destination resource is missing the read action. In my case the destination resource had a read but not the join resource.

**To Reproduce**
A many to many relationship where the join table doesn’t contain a read but others have.

**Expected behavior**
Error should say the join resource is missing the read action.

**Runtime**
- Elixir version 1.17.3
- Erlang version 27.1
- OS MacOS
- Ash version 3.4.14
- any related extension versions ash_postgres

**Additional context**
Add any other context about the problem here.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing a many-to-many relationship where the join resource lacks a read action while the destination resource has one. Trace the validation or error-reporting path for the missing action; done means the error identifies the join resource rather than the destination resource.

Written by the indexing model from the issue text.

Assessment

Tech stack
elixir
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.