Ash FrameworkAF
Ash Framework3y ago
17 replies
Alan Heywood

Error loading aggregate when resource has a relates_to_actor_via policy

Hi Folks, I have encountered an issue when trying to load a count aggregate. The conditions to reproduce seem to be:

- DataLayer is Postgres
- Resource has a relates_to_actor_via policy on read
- The relates_to_actor_via path includes a has_many relationship
- An aggregate is loaded

I tried to debug this down in the authorizer / check layers however was not able to figure it out so far. I've created a failing test on ash_postgres https://github.com/ahey/ash_postgres/commit/f290ae47b83aa2c1148978327d970fe38ec5000b
GitHub
The conditions for this issue to occur seem to be:

- DataLayer is Postgres
- Resource has a relates_to_actor_via policy on read
- The relates_to_actor_via path includes a has_many relationship
- A...
Add failing test for policy + aggregate issue · ahey/ash_postgres@f...
Was this page helpful?