mirror of
https://github.com/formbricks/formbricks.git
synced 2026-05-19 19:38:39 -05:00
cfff6b1495
Scope every chart to a specific FeedbackRecordDirectory so Cube.js queries are filtered by tenant_id. This ensures data isolation when multiple FRDs exist in a workspace. - Add feedbackRecordDirectoryId FK to Chart model + migration - Add tenantId dimension to FeedbackRecords Cube schema - Inject tenant filter server-side before every Cube.js query execution - Require FRD selection when creating charts (FrdPicker component) - Show FRD as immutable field when editing charts - Pass feedbackRecordDirectoryId through all chart creation flows - Update tests and add injectTenantFilter test coverage - Add i18n keys for FRD selection UI to all locale files Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>