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 I load the INDEX view for a resource I always see 2 queries triggered
one with LIMIT 11 and one with LIMIT 31 (the latter is the one I would expect).
I thought I got it but I don't. I'm not able to reproduce it, could you please share the whole log like this:
web | Started GET "/admin/resources/events"for 127.0.0.1 at 2024-09-05 17:31:41 +0300
web | User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2 [["id", 39], ["LIMIT", 1]]
web | Processing by Avo::EventsController#index as HTML
web | Event Count (0.5ms) SELECT COUNT(*) FROM "events"
web | Event Load (0.7ms) SELECT "events".* FROM "events" ORDER BY events.created_at desc LIMIT $1 OFFSET $2 [["LIMIT", 3], ["OFFSET", 0]]
web | Completed 200 OK in 221ms (Views: 175.9ms | ActiveRecord: 1.1ms (2 queries, 0 cached) | GC: 63.6ms)
Describe the bug
When I load the INDEX view for a resource I always see 2 queries triggered
one with LIMIT 11 and one with LIMIT 31 (the latter is the one I would expect).
2 examples
Steps to Reproduce
I have this in every resource I have
Expected behavior & Actual behavior
Only run the actual query
Models and resource files
System configuration
Avo version: 3.12.0
Rails version: 7.2.1
Ruby version: 3.2.2
License type:
Are you using Avo monkey patches, overriding views or view components?
Impact
Urgency
The text was updated successfully, but these errors were encountered: