Rework sandboxing QP middleware to use `sandboxes` table as source of truth (#27985)
* rework sandbox enforcement to use sandboxes table as source of truth * remove test that no longer reflects expected behavior * cleanup & refactor * clarify docstring * update segmented-user? to use new helper functions * fix tests * address comments
Showing
- enterprise/backend/src/metabase_enterprise/sandbox/api/util.clj 42 additions, 10 deletions...rise/backend/src/metabase_enterprise/sandbox/api/util.clj
- enterprise/backend/src/metabase_enterprise/sandbox/query_processor/middleware/row_level_restrictions.clj 30 additions, 36 deletions...box/query_processor/middleware/row_level_restrictions.clj
- enterprise/backend/test/metabase_enterprise/sandbox/models/params/chain_filter_test.clj 2 additions, 1 deletion...se_enterprise/sandbox/models/params/chain_filter_test.clj
- enterprise/backend/test/metabase_enterprise/sandbox/query_processor/middleware/row_level_restrictions_test.clj 0 additions, 7 deletions...uery_processor/middleware/row_level_restrictions_test.clj
- src/metabase/query_processor/util/persisted_cache.clj 3 additions, 1 deletionsrc/metabase/query_processor/util/persisted_cache.clj
- test/metabase/driver/common/parameters/values_test.clj 120 additions, 119 deletionstest/metabase/driver/common/parameters/values_test.clj
Loading
Please register or sign in to comment