Repository navigation
fix(jira): collect required fields before changing status - #28588
Merged
Merged
Conversation
Adapt required transition metadata and resolution/comment handling from #10651 onto current Jira modules. Keep unsupported fields actionable, surface retryable load failures, and prevent old remote hosts from silently dropping transition fields. Co-authored-by: Wooseong Kim <[email protected]>
Contributor
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 3 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
8 of 9 tasks
9 tasks done
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.
ELI5
Closing a Jira issue can require a reason and a comment. Orca now asks for those before changing the status, instead of briefly changing it and failing.
What Changed
Status changes load Jira’s required-field information. Simple changes still take one selection; resolution/comment requirements open a small form and are sent together with the status change. Other required fields are named with an Open in Jira action. Loading failures show an error and Retry; save failures stay visible. A successful transition comment appears in the open timeline. Switching Jira host, project, account, or provider identity discards any open transition form, even when the issue key and site are unchanged.
Older Jira servers can fall back to a basic transition list. New field submissions require an advertised remote-host capability, so older Orca servers cannot silently drop them.
Why
Jira validates required fields in the transition request. Collecting them before submission handles the common corporate workflow without guessing defaults or implementing every custom Jira field. The reusable form can also support board moves.
Adapted the classification and request/form design from #10651 by Wooseong Kim (@innocarpe), updated for current modules and design primitives. His contribution is credited in the commit trailer. This PR adds strict allowed-value checks, missing-choice fallback, a remote capability gate, and rendered regression coverage.
Linked Issue
Fixes #10565
Visual Proof
Captured through Playwright CDP in this branch’s hidden Electron renderer on macOS. Screens use labeled Jira fixtures and real Orca components; they do not claim a live Jira account test. The before component comes from the base commit.
Before — Close only sends the status choice:
After — required resolution and comment:
Unsupported field and retryable load error:
Testing
All 143 focused tests pass across 13 suites. Coverage includes required-field classification and allowed choices, Cloud/Server payloads, basic-list fallback, strict and legacy read failures, RPC parsing and older-host capability checks. The composed issue preview retains queued optimistic edits, protected hydration, rollback, same-issue transition retention after failed reloads, StrictMode replay, and late-reply rejection after host changes or close/reopen. A comment submitted with a transition refreshes the open timeline; normal and reopened-issue regressions prevent earlier comment hydration from overwriting it.
The changed-code quality gate passes for 28 source files, including design rules and checked types. Focus reads are 1108 with no baseline increases. RPC generation, English runtime catalog, localization catalog, extraction and coverage checks pass. Node and renderer compiler checks pass for corrected commit
7712b00with stable source hashes. Final current-main composition compiler checks are pending.The original hidden Electron flow selected a resolution, entered a comment, submitted, and rendered Done; unsupported requirements and light-mode Retry were inspected. All 37 fresh hidden Electron checks pass on corrected commit
7712b00. A rejected save retains resolution and comment while metadata reloads or fails; Retry resubmits both without re-entry. Success keeps Done and adds the timeline comment even if issue refresh fails, and late initial comments cannot overwrite it. Unsupported fields, metadata Retry, captured owner/site, and subsequent optimistic title saves were exercised. All seven UI modules remain byte-identical after the final current-main catalog composition; 27 of the proof’s 29 source hashes match. The remaining changes add the landed status-filter type and list entry point, leaving detail/transition calls unchanged. Fixtures use real Orca components with simulated Jira responses. A live corporate Jira workflow, packaging, and native Windows/Linux validation remain untested locally.AI Disclosure
Review
Merge risk: low, pending final compiler checks. The transition branch now includes the landed optimistic queue and current main. Required unsupported fields fall back to Jira, Server comments retain REST v2 text, and the remote capability gate prevents mixed-version field loss. Required-field retry and timeline behavior pass fresh rendered checks and independent review. CI is queued; local checks do not claim CI success.
Agent skill upstream boundary
Notes
Uses existing UI primitives and tokens; no platform-specific paths or shortcuts. Site and source context travel through existing local/SSH runtime routing. Folder workspaces and git-provider behavior are unaffected. Wire additions are optional and field submissions are capability-gated. This does not add a mobile-only editing surface. New strings have English catalog entries with existing locale fallback.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)