Skip to content

feat: add completedAt and canceledAt to CLI lean types#132

Merged
flipbit03 merged 4 commits intomainfrom
feat/131-feat-add-completedat-and-canceledat-to-c
Mar 26, 2026
Merged

feat: add completedAt and canceledAt to CLI lean types#132
flipbit03 merged 4 commits intomainfrom
feat/131-feat-add-completedat-and-canceledat-to-c

Conversation

@flipbit03
Copy link
Copy Markdown
Owner

Summary

  • Add completed_at and canceled_at fields to IssueSummary, SearchSummary, and IssueDetail lean types so the CLI requests these timestamps from the Linear API
  • Enables filtering/sorting by completion date in JSON output (e.g. "what issues did I close this week?")
  • No changes to human table output, codegen, schema, or SDK

Closes #131

Test plan

  • make check passes (lint + doc + build)
  • make test passes (offline tests)
  • make test-online — verify completedAt/canceledAt appear in JSON output for completed/canceled issues via issues list --format json and issues read --format json

Add completed_at and canceled_at fields to IssueSummary, SearchSummary,
and IssueDetail so the CLI actually requests these timestamps from the
API. Enables filtering/sorting by completion date in JSON output and
answering questions like "what issues did I close this week?".

Closes #131
Add the fields to IssueRow with #[tabled(skip)] so they serialize in
JSON but stay hidden from the human table. Populate them in the From
impls for IssueSummary and SearchSummary.
@flipbit03 flipbit03 force-pushed the feat/131-feat-add-completedat-and-canceledat-to-c branch from b0899a0 to 5d9e1f6 Compare March 26, 2026 12:42
Switch online tests from `cargo test` to `cargo nextest run --fail-fast`
so the suite aborts on the first failure instead of running all remaining
tests. Applies to Makefile and both CI workflows.
The test workspace is a dedicated free-plan Linear account with hard
resource limits (e.g. max 1 team). Zombie resources from crashed runs
block subsequent test runs entirely.

- Broaden cleanup to delete all resources unconditionally (except the
  default workspace team, which can't be deleted on free plans)
- Add `cleanup-test-workspace` binary to lineark-test-utils
- Run it as pre-step and always-run post-step in both CI workflows
- Run it before tests in `make test-online`
@flipbit03 flipbit03 force-pushed the feat/131-feat-add-completedat-and-canceledat-to-c branch from beaf299 to 8d6d121 Compare March 26, 2026 13:50
@flipbit03 flipbit03 merged commit bb3c3e3 into main Mar 26, 2026
8 checks passed
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.

feat: add completedAt and canceledAt to CLI lean types

1 participant