activerecord-multi-tenant icon indicating copy to clipboard operation
activerecord-multi-tenant copied to clipboard

Include original call-site in QueryMonitor

Open lfittl opened this issue 8 years ago • 0 comments

The next release is going to add a query monitor feature that hints you at queries that might be missing the tenant_id filter because there is no wrapping MultiTenant.with(..) block:

https://github.com/citusdata/activerecord-multi-tenant/commit/b048e43b07795d8643d6d65a7063986e6b2dadf2

It might be worthwhile to include the original call site, as proposed for Rails' own statement logging here: https://github.com/rails/rails/pull/26815

lfittl avatar Apr 24 '17 23:04 lfittl