-
Notifications
You must be signed in to change notification settings - Fork 47
Short IDs not normalised when storing relationship links #49
Copy link
Copy link
Closed
Description
When setting parent or blocking relationships via CLI flags or GraphQL mutations, short IDs get stored verbatim in the frontmatter rather than being normalised to full IDs.
Reproduction:
beans update X --blocking camu # stores blocking: [camu] → broken
beans update X --blocking beans-camu # stores blocking: [beans-camu] → worksSame behaviour with --parent and the GraphQL mutations (addBlocking, setParent, etc.).
Root cause:
The bean(id:) query resolver already handles short ID → full ID normalisation via Core.Get(), but the mutations write the input ID directly without normalising first.
Affected mutations:
SetParentAddBlockingRemoveBlockingCreateBean(parent and blocking fields)
I needed this fix myself so I put together a branch with tests: https://github.com/Isoceth/beans/tree/fix/short-id-normalization
Happy to open a PR if you'd like.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels