You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Prepare a safe way to read the favourite filters already saved in one Jira site. This is the first, read-only part of replacing the stale filter PR #13395; it does not yet add a menu or apply imported queries.
What Changed
Add one explicit-site favourite-filter read through the existing authenticated Jira request, host runtime, desktop bridge and web bridge. Cloud uses /rest/api/3/filter/favourite?expand=jql; Server/Data Center uses its v2 equivalent.
Limit the upstream HTTP body to 2 MiB, then validate and bound the returned catalogue to 100 filters and 512 KiB after JSON encoding. Preserve each originating site, omit unusable queries with an explicit truncated flag, and reject malformed or cross-site transport responses.
Return an explicit unsupported result when an older host lacks the method. Permission, authentication, network and malformed-response failures remain visible; a failed read never deletes credentials or switches to another host's account.
Why
The original PR duplicates the custom JQL filters now stored by the host and targets files that no longer exist. This narrower read is independently reviewable and does not replace the current filter store, task resume data or issue search.
Imported JQL can contain site-local numeric references. The follow-up UI must keep its selected site and query together rather than copying that JQL into the current host-only custom-filter store. It also needs owner/site lifetime fences before it can safely apply queries. This PR deliberately separates that remaining medium-risk work.
Linked Issue
Part of #13395 and #17686. Neither is completed by this foundation.
Visual Proof
N/A — no user-visible UI or interaction changes; the new catalogue has no UI consumer in this slice.
Testing
I manually tested these changes locally
Automated tests added/updated, or explained why not below
121 focused tests passed across ten files. Full pnpm tc, all seven changed-code quality stages, formatting, generated RPC catalog and diff checks passed. Local platform: macOS arm64. Full build/lint and cross-platform matrix are left to required PR CI; local checks used focused tests, full types and the changed-code quality gate. Cloud and Server/DC requests use fixtures; no live Jira account was exercised. Paired runtime, desktop and web routing, malformed/oversized data, auth failures, cancellation and older-host handling are covered by automated tests. Linux/Windows CI remains required.
Review
Independent review identified and corrected an in-flight authentication race, response schemas that rejected additive fields from newer hosts, and web bridge error classification. Final independent source review found no remaining findings.
Agent skill upstream boundary
Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.
Notes
Unusually large Jira HTTP responses fail explicitly at the 2 MiB limit. No credentials are stored, no query is executed, and no task/filter persistence schema changes. The caller explicitly identifies the execution owner and one connected site. No repository/worktree assumption is added, so folder workspaces use the same account-owned transport. No platform-specific APIs or remote stream opcodes change.
Checklist
This PR is small and focused
I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
Before/after screenshots or videos attached for UI changes, or N/A with reason
Self-reviewed for correctness, security, and performance
Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)
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 change adds a Jira favourite-filter listing operation. Shared schemas validate site IDs and filter data, and normalization enforces list limits. The Jira service fetches filters with a bounded response size. IPC, RPC, preload, and renderer APIs expose the operation for local and environment targets.
Priority: ➖ Normal
Merge Risk:⚪ Minimal · up to 45c03
This adds a read-only, bounded way to list favourite Jira filters for one selected site. It has no UI or persistence changes, and older hosts report an explicit unsupported result. No merge-blocking issue was found. Server/Data Center behavior was tested only against fixtures.
Pre-merge checks: 4 · 1
Failed checks: 1 warning
Check name
Status
Explanation
Resolution
Docstring Coverage
Docstring coverage is 7.69% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 13 functions across 20 files.
Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed checks: 4 passed
Check name
Status
Explanation
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Title check
The title clearly and concisely describes the main change: adding a bounded, site-specific Jira favourite-filter catalogue.
Description check
The description is complete and aligned with the template. It explains the change, motivation, scope, testing, compatibility considerations, and limitations. It also documents that visual proof is not…
Fix all pre-merge checks with AI
✨ Finishing Touches: 💡 2
📝 Generate docstrings: 💡
Commit to this branch
Create a new PR
🛠️ Fix failing CI checks: 💡
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.
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
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
Prepare a safe way to read the favourite filters already saved in one Jira site. This is the first, read-only part of replacing the stale filter PR #13395; it does not yet add a menu or apply imported queries.
What Changed
/rest/api/3/filter/favourite?expand=jql; Server/Data Center uses its v2 equivalent.truncatedflag, and reject malformed or cross-site transport responses.Why
The original PR duplicates the custom JQL filters now stored by the host and targets files that no longer exist. This narrower read is independently reviewable and does not replace the current filter store, task resume data or issue search.
Imported JQL can contain site-local numeric references. The follow-up UI must keep its selected site and query together rather than copying that JQL into the current host-only custom-filter store. It also needs owner/site lifetime fences before it can safely apply queries. This PR deliberately separates that remaining medium-risk work.
Linked Issue
Part of #13395 and #17686. Neither is completed by this foundation.
Visual Proof
N/A — no user-visible UI or interaction changes; the new catalogue has no UI consumer in this slice.
Testing
121 focused tests passed across ten files. Full
pnpm tc, all seven changed-code quality stages, formatting, generated RPC catalog and diff checks passed. Local platform: macOS arm64. Full build/lint and cross-platform matrix are left to required PR CI; local checks used focused tests, full types and the changed-code quality gate. Cloud and Server/DC requests use fixtures; no live Jira account was exercised. Paired runtime, desktop and web routing, malformed/oversized data, auth failures, cancellation and older-host handling are covered by automated tests. Linux/Windows CI remains required.Review
Independent review identified and corrected an in-flight authentication race, response schemas that rejected additive fields from newer hosts, and web bridge error classification. Final independent source review found no remaining findings.
Agent skill upstream boundary
Notes
Unusually large Jira HTTP responses fail explicitly at the 2 MiB limit. No credentials are stored, no query is executed, and no task/filter persistence schema changes. The caller explicitly identifies the execution owner and one connected site. No repository/worktree assumption is added, so folder workspaces use the same account-owned transport. No platform-specific APIs or remote stream opcodes change.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)