Repository navigation
fix(connectors): leave a revoked orphan grant out of the Tools list (TASK-752) - #3185
Conversation
…TASK-752) A grant whose catalogue entry is gone rendered as a live-looking row even after it was revoked. Orphan grants now drop out of the list once dead; the Connectors trail keeps the record. Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com> Co-authored-by: dart <WyJkYXJ0IiwiZGVmYXVsdCJd@agents.commonly.invalid> Agent-Model: claude/claude-haiku-5-5/default
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Filter orphan grants frontend/src/v2/connectors/ConnectorsPage.tsx, frontend/src/v2/__tests__/ConnectorsPage.tools.test.tsx |
The orphan-grant filter excludes grants for which isDead(grant, m.now) is true. The test checks that an empty catalogue with one live and one revoked grant produces exactly one Tools row, which is not marked dead. |
Estimated code review effort: 2 (Simple) | ~8 minutes
Change: Bug fix
Possibly related PRs
- Team-Commonly/commonly#3143: Introduced the
ConnectorsPageanduseToolConnectorsimplementation that this change updates. - Team-Commonly/commonly#3135: Changes revocation handling; this change uses the revoked state when filtering orphan grants.
- Team-Commonly/commonly#2486: Defines inactive Tools behavior for revoked and expired grants, related to this change’s handling of revoked orphan grants.
Merge Risk: 
Minimal · up to b8147
-
The orphan grant is excluded from Tools while remaining available in the Connectors trail; no merge-blocking risk remains.
Pre-merge checks: 
4
-
Full details: Title check
-
Explanation
The title names the change: revoked orphan grants (grants whose catalogue entry is missing) are kept out of the Tools list. The raw summary confirms the ConnectorsPage orphanGrants filter now excludes dead grants, and the added test covers this case. The title is specific and matches the changeset. It uses the conventional fix(connectors) prefix and includes the TASK-752 reference.
Full details: Description check
-
Explanation
The description states the problem: a revoked grant with no catalogue entry showed as an 'Unknown connector' row in the Tools list. It states the fix: orphan grants leave the list once dead, while the Connectors trail keeps the record. It also lists the regression test and test results. This matches the ConnectorsPage change and the new TASK-752 test in the summary.
-
Finishing Touches
-
Generate docstrings
-
- Commit to this branch
- Create a new PR
Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
lilyshen0722
left a comment
There was a problem hiding this comment.
HEAD: b814789 — GATE: PASS
The one review round (D218, Tier 1 connector UI), by connector-ops at the press. The PR body states a review plan but no verdict was filed as a review, so this is that round.
ConnectorsPage.tsx:orphanGrantsnow also requires!isDead(grant, m.now), so a grant that no catalogue entry covers is listed only while it is live access. A live orphan still lists and can still be revoked, which the existing "keeps a live grant listed…" test pins. The render'snowis used, matching the rule intoolModel.isDeadfor render decisions.- Test: with no catalogue entries and one live plus one revoked grant, exactly one row is listed and it isn't dead. On main both would be listed, so this test fails there.
- It composes with #3194 (TASK-753), which names a live orphan by its server-read connector. The files don't overlap.
- CI is green at this head, and there are no CodeRabbit threads.
GATE: PASS
Written by Dart, a Commonly agent — https://commonly.me/v2/pods/6a692a1be833c668acdb84cf
What
TASK-752 (P1, connectors, D226 #1). A revoked grant whose catalogue entry is gone (the Atlassian walk leftover) rendered as an "Unknown connector" row in the Tools list, next to the live one. Orphan grants now leave the list once dead. The Connectors trail keeps the record.
Proof
TASK-752: a revoked grant whose catalogue entry is gone is not listed in Toolsfails on main (2 rows, the second--dead) and passes with the fix.ConnectorsPagesuites: 193 pass.v2-layout-invariants: 293 pass. ESLint: 0 errors.Review: own subagent review, then CodeRabbit and CI, then PRESS-READY to @connector-ops with the full head SHA.