Skip to content

fix(jira): import JiraUser from its real module in the issue user field - #32964

Merged
brennanb2025 merged 2 commits into
mainfrom
brennanb2025/fix-main-jira-user-import
Oct 24, 2026
Merged

brennanb2025 merged 2 commits into
mainfrom
brennanb2025/fix-main-jira-user-import

Conversation

@brennanb2025

@brennanb2025 brennanb2025 commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 0 0 0 0
Prod 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​1 $\color{#cf222e}{\Huge{\mathbf{−}}}$​1 0

Problem

Main's static-analysis check fails for every PR. In src/renderer/src/components/task-page/jira/IssueUserField.tsx (added in #31972), JiraUser is imported from shared/jira-types, but that module is shared/jira/jira-types. The type resolves to an error type, and type-aware lint (--deny-warnings) rejects it: "JiraUser is an error type acting as any". CI stops at that step, so typecheck and tests never run. Seen on #32963's CI: https://github.com/stablyai/orca/actions/runs/40037238956/job/120699739118

Change

Point the import at the real module, the same path the other Jira components use. Two type-only import corrections, including the adjacent test: nothing changes for users. The Reporter and custom user fields keep working as #31972 built them.

Testing

CI static analysis and typecheck are the checks. The first CI run passed static analysis, then typecheck exposed the same bad module path for JiraCreateField in IssueUserField.test.tsx; that import is now corrected too. Both changes are type-only.

Plan and review classification

Correct the existing type-only imports in the component and its test and verify static analysis and typecheck in CI. No runtime behavior or UI changes.

  • Small: one production file and its test, one line replaced in each.
  • Outside risky areas: only import type module paths change; no runtime auth, saved data, lifecycle, cross-version contract, build, or packaging behavior changes.
  • Not a repeat: the touched file's last 30 days of main history contains only its introduction in Pick Jira users for required Reporter and custom user fields #31972, with no earlier fix, revert, or incident there.
  • Local effect: restore static type resolution to the same JiraUser definition already used by JiraUserPicker; no emitted runtime change.

QA: qa=tests under the light UI and copy row. IssueUserField.test.tsx ran green in CI run 40038174209 on d2fc135, along with static analysis and typecheck. No QA round is needed. The screen's look did not change, so no screenshot run is needed.

@coderabbitai

coderabbitai Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 21dbd718-8a4b-4778-ab9d-3b4691f89168
📥 Commits

Reviewing files that changed from the base of the PR and between 1c09236 and d2fc135.

📒 Files selected for processing: 1
  • src/renderer/src/components/task-page/jira/IssueUserField.test.tsx

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 1 remain after this review.

📝 Walkthrough

The JiraUser import in IssueUserField.tsx and the JiraCreateField import in its test now resolve from shared/jira/jira-types instead of shared/jira-types.

Priority: ⬇️ Low

Merge Risk: ⚪ Minimal · up to d2fc1

The corrected imports restore type resolution without changing runtime behavior or the UI.

Pre-merge checks: Passed 3 · Failed 2

Failed Failed checks: 2 warnings

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 2 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
Description check Warning The description clearly explains the import-path problem, the two-file change, the reason for the change, and the CI testing results. However, it does not follow the required template. It omits the re… Update the description to include all required template sections. Add an actual linked issue using Fixes #<issue-number>, state N/A with a reason under Visual Proof because there is no UI or interaction change, complete the Testing chec…
Passed Passed checks: 3 passed
Check name Status Explanation
Title check Passed The title clearly identifies the main production change: correcting the JiraUser import path. It is concise and specific, although it does not mention the related test import correction.
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Description check

Explanation

The description clearly explains the import-path problem, the two-file change, the reason for the change, and the CI testing results. However, it does not follow the required template. It omits the required ELI5, What Changed, Why, Linked Issue with a Fixes reference, Visual Proof with the exact N/A explanation, Review, Notes, and Checklist sections. The Testing section also does not include the required checklist entries.

Resolution

Update the description to include all required template sections. Add an actual linked issue using Fixes #&lt;issue-number&gt;, state N/A with a reason under Visual Proof because there is no UI or interaction change, complete the Testing checklist, and address the Review, Agent skill upstream boundary, Notes, and Checklist items. Preserve the existing technical explanation and CI results under the matching sections.

✨ Finishing Touches: 💡 1
📝 Generate docstrings: 💡
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@brennanb2025

brennanb2025 commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor Author

Main's static analysis was failing because the Jira issue user field imported JiraUser from a module that does not exist. This PR points the type-only import to the existing Jira type module, allowing CI to resolve the type. Runtime behavior and UI are unchanged.

Light-path review completed on d2fc135d9b66093882cd677297573d169951a9e2: one production line and one test import replaced, no risky runtime mechanism changed, no prior same-symptom fix in the file's 30-day history, and only local type resolution changes. One initial review round and one fix verification in this session, as the launcher required one Codex session for this job. The initial CI run passed static analysis but found the same bad module path in the adjacent test; one fixer round corrected that type-only JiraCreateField import in d2fc135d9b6. No open findings or deferrals.

Verified the corrected paths resolve to the exported JiraUser definition already consumed by JiraUserPicker and the exported JiraCreateField definition used by the test. A repository-wide search found no remaining imports from shared/jira-types; the complete diff has no whitespace errors. CI static analysis and typecheck passed on this head. QA: qa=tests under the light UI and copy row. The renderer test src/renderer/src/components/task-page/jira/IssueUserField.test.tsx ran green in CI run 40038174209 on this head. Static analysis, typecheck, all five test shards, both packaging checks, and the aggregate gate passed. The screen's look did not change, so no screenshot run is needed. No QA round was needed. Current main was the direct parent when final CI started, so no main merge was needed.

For Brennan's review: the single import correction.

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.

1 participant