avo
avo copied to clipboard
Execute `index_query` when a table is rendered from association field
Feature
Some context here.
The self.index_query
block isn't executed when a table is rendered from an association field.
It should be called always when a index resource is loading.
Current workarounds
As workaround you can use scopes, not ideal since may lead to duplicated code increasing maintainability complexity.
Approach
- [ ] Execute
self.index_query
usingAvo::ExecutionContext
when fetching thequery
onAvo::AssociationsController
- [ ] Ensure access to
parent_resource