Skip to content

fix(graph): normalize short parent filters - #209

Draft
bdarcus wants to merge 1 commit into
hmans:mainfrom
bdarcus:codex/fix-list-parent-short-id
Draft

fix(graph): normalize short parent filters#209
bdarcus wants to merge 1 commit into
hmans:mainfrom
bdarcus:codex/fix-list-parent-short-id

Conversation

@bdarcus

@bdarcus bdarcus commented Aug 2, 2026

Copy link
Copy Markdown

Summary

  • normalize BeanFilter.ParentID through Core.NormalizeID
  • make beans list --parent <short-id> consistent with show and relationship mutations
  • add a regression test covering a prefixed parent and short filter ID

Why

Parent links are stored with full IDs such as beans-parent1, while the CLI
accepts short IDs such as parent1 elsewhere. The list filter compared those
strings literally, so a valid short parent filter returned no children.

Validation

  • go test ./pkg/beangraph ./pkg/beancore ./internal/graph

The full suite is currently blocked by unrelated repository/environment issues:
missing frontend/dist embed assets, existing gitutil diff-format expectations,
and a terminal environment timeout.

Resolve --parent IDs through the same prefix normalization used by other bean commands.
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.

1 participant