Linking a dashboard filter to multiple dashboard tiles, and viewing as a grouped user causes entity keys to appear in the dropdown filter in place of entity names. #47951
When viewing a dashboard with a filter that is linked to multiple questions as a users with grouped permission access, the filters display entity keys rather than entity names.
To Reproduce
Create a new permission group and give it "Can view" access to the "Accounts", "Feedback" and "Invoices" sample database tables.
Verify that the "Account ID" fields within the "Feedback" and "Invoices" tables are linked to "Accounts -> ID", that "filtering on this field" is set to "a list of all values" and that the display value is set to "Use foreign key-> First Name"
Create a new user and assign it to the group created in step 1 (don't log into it yet).
Create a new collection (and allow the user created in step 3 "View" access), and create two simple GUI questions against the Feedback and Invoices tables.
Create a new dashboard, and add The Feedback and Invoices questions created in step 4. Add a new "ID" filter and link it to the "Invoices.Account ID" field.
Log into the account you created in step 3, and verify that the filter correctly loads the first names.
Log back into the admin account, unlink the "ID" filter from the Invoices question, and link it to the "Feedback.Account ID" field.
Log back into the account you created in step 3, and verify that the filter still correctly loads the first names.
At this point, we have verified that the filter works correctly when assigned to either the Invoices or Feedback questions. But, now log back into the admin account, and assign the "ID" filter to both the "Invoices.Account ID" and Feedback.Account ID" fields together.
Log back into the account you created in step 3, and you will now find that the filter displays a list of entity keys rather than entity names.
Expected behavior
When a filter is linked to multiple fields on multiple tiles, the entity names should still display in the filter dropdown when viewed as a user with grouped permission access.
Describe the bug
When viewing a dashboard with a filter that is linked to multiple questions as a users with grouped permission access, the filters display entity keys rather than entity names.
To Reproduce
Expected behavior
When a filter is linked to multiple fields on multiple tiles, the entity names should still display in the filter dropdown when viewed as a user with grouped permission access.
Logs
No response
Information about your Metabase installation
Severity
High
Additional context
No response