You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Draft note links are silently dropped on publish (entity_type casing mismatch) #222
Links added to a draft note — manually or via a QC suggestion — never make it to ShotGrid. In publish-notes (backend/src/main.py:1142), each link is resolved with ENTITY_MODELS.get(link.entity_type), but ENTITY_MODELS is keyed lowercase ("shot", "version", …) while links store the capitalized type copied from /search results ("Shot"), so the lookup returns None and the link is skipped with no error or log. The published note only gets the links the provider adds itself (version, parent shot, playlist). Pre-existing since #66; reproduced on main and #221. Fix is a one-liner — normalise with .lower() (or key ENTITY_MODELS by the canonical type) — plus a test that a draft with a Shot link produces that link in note_links. Related: to/cc are also never published (to_users=[] # TODO on the same endpoint), which could be fixed in the same pass.
Activity
fix: normalise entity_type when resolving draft note links on publish
fix: carry draft note links through to republished notes
fix: normalise entity_type when resolving draft note links on publish (…