Skip to content

fix(work-items): resolve names in wi show *_name fields - #14

Open
Liewzheng wants to merge 1 commit into
cpatrickalves:mainfrom
Liewzheng:fix/show-detail-names
Open

fix(work-items): resolve names in wi show *_name fields#14
Liewzheng wants to merge 1 commit into
cpatrickalves:mainfrom
Liewzheng:fix/show-detail-names

Conversation

@Liewzheng

Copy link
Copy Markdown

What

Fixes wi show returning UUIDs in fields whose names promise readable values:

  • state_detail_name now holds the state name (colored for the table, plain in JSON)
  • label_names / label_detail_names hold label names
  • assignee_names holds member names

How

The detail endpoint returns state / labels / assignees as bare UUID strings (SDK model mismatch, ADR-0003), and show enriched without lookup maps. It now builds the same cached state/member/label maps that wi ls builds (state ls / label ls / users ls, all cached — no extra API cost on a warm cache) and passes them to the shared _enrich_work_item. On lookup failure the fields fall back to the previous raw-UUID behavior, so this cannot break resolution paths that previously worked.

No interface changes; the fields keep their names and now match what wi ls produces.

Tests

make check — 182 passed, lint clean. Verified live: wi show on an item with state/labels now yields state_detail_name: "In Progress" and label_detail_names: ["fix"] where it previously returned UUIDs.

Closes #13

The detail endpoint returns state, labels, and assignees as bare UUIDs
(SDK model mismatch, ADR-0003), and show enriched without lookup maps —
so state_detail_name held a UUID despite its name. Build the same cached
state/member/label maps wi ls uses; on lookup failure the fields fall
back to raw UUIDs as before.
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.

fix: wi show returns UUIDs in *_name fields

1 participant