feat(issue): add IssueRelation resource and lc issue relation list command (EXT-40) - #239
Merged
ruby-automation merged 2 commits intoSep 5, 2026
Merged
Conversation
…command (EXT-40) - New `LinearCli.Linear.IssueRelation` Ash resource (no data layer, ManualRead) fetches both `relations` (outbound) and `inverseRelations` (inbound) concurrently, paginating each direction independently up to 100 records - Domain code interface `issue_relations/1` added to `LinearCli.Linear` - `lc issue relation list ISSUE` command (alias: `ls`) added via 3-level Optimus nesting; `normalize_subcommand_aliases/1` extended to handle the new depth - `lc issue view` now renders relations in directional sections (Blocks / Blocked by / Related to / Duplicate of / Similar to) via `Display.relations_block/1` - `Issue.full_fields/0` and `Issue.from_map/1` updated to include nested `relations` and `inverseRelations` edges in full-fragment responses - `documents/ash-domain-erd.adoc` updated: IssueRelation entity, new associations, updated resource count and code-interface matrix row
…-40) - 7 new display tests covering Blocks/Blocked-by/Related-to sections, full-issue view integration, all sections in order, and JSON output - 4 new issue_commands_test tests covering text and JSON output for issue_relation_list, and empty-relations edge case Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
ruby-automation
force-pushed
the
EXT-40-issue-relation-domain-and-list-command
branch
from
September 5, 2026 13:12
05276fd to
b1b7f7f
Compare
ruby-automation
deleted the
EXT-40-issue-relation-domain-and-list-command
branch
September 5, 2026 13:13
This was referenced Sep 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
LinearCli.Linear.IssueRelationAsh resource (no data layer,ManualRead) that fetches both outbound (relations) and inbound (inverseRelations) relations concurrently, paginating each direction up to 100 recordslc issue relation list ISSUEcommand added (alias:ls) via 3-level Optimus nesting;normalize_subcommand_aliases/1extended to handle this depthlc issue viewnow renders relations in directional sections: Blocks, Blocked by, Related to, Duplicate of, Similar toIssue.full_fields/0andIssue.from_map/1updated to include nestedrelations/inverseRelationsedges in full-fragment responsesdocuments/ash-domain-erd.adocupdated: newIssueRelationentity, associations, resource count, and code-interface matrix rowTest plan
mix precommitpasses (format, credo, usage_rules, all 417 tests)test/linear_cli/linear/issue_relation_test.exs: outbound/inbound direction tagging, concurrent fetch, empty list, not-found, API error, pagination,from_map/2decodinglc issue relation list EXT-Nresolves to the new commandlc issue relation ls EXT-Nalias resolves correctlylc issue view EXT-Nshows relations block when relations exist, omits section when none🤖 Generated with Claude Code