avo icon indicating copy to clipboard operation
avo copied to clipboard

Execute `index_query` when a table is rendered from association field

Open Paul-Bob opened this issue 1 year ago • 0 comments

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 using Avo::ExecutionContext when fetching the query on Avo::AssociationsController
  • [ ] Ensure access to parent_resource

Paul-Bob avatar Feb 05 '24 12:02 Paul-Bob