-
- Downloads
Recents API Improvements (#42660)
* handle recent view for non-existant entity * test that recent views works with missing entities - just doesn't return them. * dont count on there being entities in the app-db * Query for the entity data upfront for recent-views - Still need to check for the model_object due to popular-items calls * cleanup, fix ellide logic memoize get-parent-coll * more cleanup * rewire half of the queries * rewrite the other queries, and improve docs * align some queries * lookup all entities ahead of time - always return effective parent collections * seperate n+1 tests * use = instead of a set * no need for a vector * fixup simple table test * go from effective-location-path to id instead of hydrating
Showing
- src/metabase/api/activity.clj 3 additions, 3 deletionssrc/metabase/api/activity.clj
- src/metabase/models/recent_views.clj 184 additions, 101 deletionssrc/metabase/models/recent_views.clj
- test/metabase/models/recent_views_test.clj 277 additions, 108 deletionstest/metabase/models/recent_views_test.clj
This diff is collapsed.
Please register or sign in to comment