Skip to content

fix: normalise entity_type when resolving draft note links on publish - #223

Merged
camerontarget14 merged 3 commits into
mainfrom
fix/222-publish-note-links-casing
Oct 9, 2026
Merged

camerontarget14 merged 3 commits into
mainfrom
fix/222-publish-note-links-casing

Conversation

@camerontarget14

Copy link
Copy Markdown
Collaborator

ENTITY_MODELS is keyed lowercase but links carry the capitalized type from search results ("Shot"), so every user-added link was silently dropped before reaching the provider. Present since v0.1.8 (#71).

Closes #222

Also made sure link additions were reflected in notes from republishes too.

camerontarget14 and others added 3 commits October 8, 2026 15:12
ENTITY_MODELS is keyed lowercase but links carry the capitalized type
from search results ("Shot"), so every user-added link was silently
dropped before reaching the provider. Present since v0.1.8 (#71).

Closes #222

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Signed-off-by: Cameron Target <camerontarget@gmail.com>
update_note had no links parameter, so a link added after the first
publish never reached ShotGrid. Links are merged into the note's
existing note_links rather than replacing them, so links added by hand
in ShotGrid survive a republish.

Refs #222

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Signed-off-by: Cameron Target <camerontarget@gmail.com>
@camerontarget14
camerontarget14 merged commit aad814e into main Oct 9, 2026
4 checks passed
@camerontarget14
camerontarget14 deleted the fix/222-publish-note-links-casing branch October 9, 2026 21:52
camerontarget14 added a commit to jspada200/dna that referenced this pull request Oct 9, 2026
Resolve conflicts with AcademySoftwareFoundation#223 (draft note links on publish): adopt the
new _draft_note_links/_add_context_links helpers and update_note links
support, adapted to string IDs (SCRATCH_VERSION_ID sentinel, _to_sg_id
at the ShotGrid boundary). Tests from AcademySoftwareFoundation#223 updated to string fixtures.

Signed-off-by: Cameron Target <camerontarget@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Draft note links are silently dropped on publish (entity_type casing mismatch)

1 participant