omi icon indicating copy to clipboard operation
omi copied to clipboard

Asana project chooser relies on one unpaginated project request (bounty proposal)

Open kaijakagi-sys opened this issue 2 months ago • 0 comments

The Asana setup chooser takes its complete project list from get_asana_projects, which makes one /projects request without limit/offset and returns only result.data. It neither follows next_page nor exposes a continuation to the chooser. Asana’s official endpoint documentation documents limit (1–100) and returned offset tokens for subsequent pages, and warns that this endpoint can time out for large domains.

With the unchanged handler exercised offline against stubbed storage/auth/HTTP, a response containing one project plus a non-null next_page produced just that project and one HTTP request; complete-page and empty-page controls behaved normally. This proves the continuation is ignored when present. The current request omits a page limit and may return the entire collection unpaginated; this is not proof of a live truncated response. No live Asana account or project suite was used.

I propose one scoped change: request bounded pages (an explicit limit up to 100) and consume the returned offset while preserving workspace/archive filters, the existing token-retry helper, and the chooser’s response shape. Validation would exercise the production handler for multiple pages, empty/final pages, later-page errors/token refresh, and repeated cursors, in the existing backend test lane. OAuth design, task creation and other integrations stay out of scope; implementation and full checks are not yet complete.

@josancamon19 Would you approve this project-list pagination scope as a US$25 bounty and confirm eligibility under the contribution guide? This is a proposed amount, not an existing funded bounty.

kaijakagi-sys avatar Sep 08 '26 17:09 kaijakagi-sys