Fixed
Chat Threads: Feedback Filters Respect Global Admin Roles
about 5 hours ago
Fixed a bug in chat thread feedback filtering where admin feedback detection only considered account:{accountId} role scope. In workspaces where reviewers had global admin role but no account-scoped admin role, adminFeedback=true could incorrectly return zero results.
What Was Fixed
- Updated admin-feedback classification to treat reviewers as admins when they have either:
adminrole atglobalscope, oradminrole ataccount:{accountId}scope
- Added role-expiration checks to match the existing auth role semantics.
- Applied the same admin-role predicate to both:
- feedback filter query (
userFeedback/adminFeedback) - per-thread feedback aggregation fields (
userFeedbackScore/adminFeedbackScore)
- feedback filter query (
Modified Endpoint
GET /api/v1/accounts/{accountId}/chat-threads