feat: issues batch-update for bulk issue updates#107
feat: issues batch-update for bulk issue updates#107flipbit03 merged 3 commits intoflipbit03:mainfrom
issues batch-update for bulk issue updates#107Conversation
First batch mutation in the codebase. Enhances codegen to detect list entity fields in mutation payloads and generate `Result<Vec<T>>` return types with a new `execute_batch_mutation` client method. Adds full CLI subcommand with status, priority, assignee, labels, project, and cycle flags.
|
Hey @lightstrike, thanks for working on this! We've been looking at the approach here and think there's a simpler path that avoids the codegen duplication and the new The key insight is that What's needed instead:
We have push access to your branch, so we'll push a simplified version that takes this approach. The mutation itself ( |
…or Vec<T> Instead of a separate execute_batch_mutation method and duplicated codegen paths for list entity fields, use the same approach as Option<T>: a blanket impl that delegates selection to the inner type. execute_mutation::<Vec<T>> handles JSON array deserialization via serde natively. Also migrates batch-update tests to TeamGuard pattern, fixes usage column alignment, and merges with origin/main. Closes flipbit03#120
Summary
emit_mutations.rsto detect list entity fields and generateResult<Vec<T>>return typesexecute_batch_mutationto SDKClientfor mutations returning entity arraysissueBatchUpdatemutation tooperations.tomland regenerate SDKlineark issues batch-update ID1 [ID2...] --status/--priority/--assignee/--labels/--project/--cycleIssueUpdateInputto multiple issues at once, returns updated issue tablelineark usagereferenceTest plan
cargo fmt --check— cleancargo clippy --workspace -- -D warnings— cleancargo test --workspace— all offline tests pass (81)--priority,--status "Done", invalid ID error pathtest_withrunner before new tests execute