Repository navigation
fix(search): keep activity paging and labels truthful under busy sources and failures - #10561
waleedlatif1 wants to merge 6 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
There was a problem hiding this comment.
All reported issues were addressed across 15 files
Reply with feedback, questions, or to request a fix.
Turn on auto-fix | Re-trigger cubic
[Medium impact] The changes affect activity listings across connected providers and their Assistant and Search MCP callers. Fix the extra-charge path before merging so completed account reads cannot escape the rate allowance. FindingsSummaryThe PR improves activity paging and ties Jira and Confluence entries to the member’s own actions.
Reviews (3) · Last reviewed commit: "fix(search): charge Search MCP activity ..." · Reviewed by Greptile |
|
@cubic-dev-ai review this PR |
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
There was a problem hiding this comment.
All reported issues were addressed across 15 files
Reply with feedback, questions, or to request a fix.
Turn on auto-fix | Re-trigger cubic
|
@cubic-dev-ai review this PR |
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
There was a problem hiding this comment.
All reported issues were addressed across 17 files
Reply with feedback, questions, or to request a fix.
Turn on auto-fix | Re-trigger cubic
…ces and failures - Jira reads its created listing with relative-minute bounds and assigned issues by the moment of assignment (assignee CHANGED TO currentUser() DURING, from each issue's history) - Confluence places pages at the member's own latest edit from version history, dropping pages they did not edit in the window, and reads listings whose order is not the member's action whole; CQL bounds widen by the widest time zone offsets instead of a day - A listing that cannot reach its bound stops only its own account, with an accurate status - A failed account is retried once, then reported - Search MCP charges one rate-limit operation per account read - Continuations may change topK; Assistant items drop the duplicate citationUrl and items drop accountId - Calendar reports an overfull week only when a slice exhausts the whole budget - Removes the never-emitted mentioned action and approximateTime
… activity constants
…ck each item once per window - A page with no progress stops the accounts pinning the horizon; the others page on - A failed account the listing ends before retrying is reported - Confluence pages and Jira assignments are placed at their latest moment in the whole window, so a later page never repeats them; an unread version history reports partial coverage - Confluence comments before the window are left out - Search MCP charges a continuation by the accounts its cursor still names
…h the MCP rate limit
b224e03 to
5f9ea0d
Compare
|
@cubic-dev-ai review this PR |
@waleedlatif1 I have started the AI code review. It will take a few minutes to complete. |
Summary
Follow-ups to
list_my_activity(#10535) from an independent audit.unreachable,crowded,no_progress,failed_again). Other accounts keep paging. Before, the horizon pinned at that bound, so nothing was ready and every account was reported stalled.created >= "-Nm"), widened by a minute. Jira resolves them without the member's time zone, so no/myselftime zone is needed and hidden-profile time zones don't matter.readPastEndis removed.assignednow meansassignee CHANGED TO currentUser() DURING (…), timed by the assignment in the issue's changelog. Issues whose history can't show it are left out and reported partial.mentionedaction andapproximateTime.attended(organized or accepted/tentative), therepliedheuristic, and that a recovered source can return entries older than the page.retrieson its cursor bound), then reportedfailed. Search MCP charges one rate-limit operation per account read instead of a flat 2.topK, since it left the cursor scope. Assistant items drop the duplicatecitationUrl(citations readurl). Items dropaccountId, which no caller read.Type of Change
Testing
activity-page.test.ts: a listing that can't reach its bound stops only its account while the others page through; a failed account is retried once, then reported. Each goes red with its guard reverted.activity-providers.test.ts: a Confluence page is placed at the member's own edit from its history, and pages they didn't edit are dropped; a Jira issue is timed by its assignment, and one without that history is dropped with partial coverage; a busy older Calendar week resumes instead of reading as overfull (red when reverted).activity-paging.integration.ts(real Postgres, fake providers): followingnextCursorwithtopK2 and 10 returns every item of every account exactly once, newest first. Red with the merge horizon removed.activity.integration.ts, plus thelib/sim-search/live,lib/mothership/chat,lib/knowledge/mcpsuites, pass. Full type-check and audits run in CI.Checklist
test-auditauthoring gate)