video-accessibility/backend/app
Vadym Samoilenko 8dee0b6ff5 fix(membership): guard against missing/invalid role_in_org in membership docs
list_org_members and _membership_from_doc used bracket access on role_in_org
which raises KeyError if the field is absent (old docs or direct DB inserts).
Also handles ValueError if the stored value doesn't match a valid OrgRole.
Falls back to OrgRole.MEMBER in both cases.

Fixes 500 on GET /organizations/{org_id}/members.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-01 14:35:09 +01:00
..
api/v1 fix(rbac): allow reviewer role to assign linguists and reviewers 2026-05-01 14:29:15 +01:00
core fix(tts): revert pro TTS to gemini-2.5-pro-preview-tts (3.1 pro TTS doesn't exist yet) 2026-04-30 21:01:22 +01:00
lib test: fix all unit tests — 168 passing, 0 failures 2026-04-30 14:02:04 +01:00
middleware chore: push all session changes — backend hardening, tests, apache config, deploy scripts 2026-04-30 15:52:14 +01:00
migrations fix(migrations): correct listCollections cursor parsing, add processing_failed+cancelled to status enum 2026-04-30 20:47:21 +01:00
models feat(briefs+notify+downloads): fix projects dropdown, add assignee, expand languages, fix PM email, add Download All 2026-04-30 21:47:28 +01:00
prompts feat: per-client glossary — hybrid exact/vector retrieval + AI injection 2026-04-29 13:03:38 +01:00
schemas fix(schema): empty string → None for captions/AD VTT fields (Bug 2B) 2026-05-01 12:06:09 +01:00
services fix(membership): guard against missing/invalid role_in_org in membership docs 2026-05-01 14:35:09 +01:00
tasks feat(briefs+notify+downloads): fix projects dropdown, add assignee, expand languages, fix PM email, add Download All 2026-04-30 21:47:28 +01:00
telemetry chore: push all session changes — backend hardening, tests, apache config, deploy scripts 2026-04-30 15:52:14 +01:00
main.py chore: push all session changes — backend hardening, tests, apache config, deploy scripts 2026-04-30 15:52:14 +01:00