Replies: 1 comment 1 reply
|
Done, in 455b4d9.
Two things beyond what you asked for. The MCP tool needed this more than the REST endpoint did. One correction on the cost, since it affects how much this buys you: it isn't an N+1. It's a single request plus a client-side filter, and the server deserializes the whole namespace on its side either way. What you save is transfer size and client CPU, not server work. Worth having, just less dramatic than the framing suggested. One thing to know before you build on it: |
Uh oh!
There was an error while loading. Please reload this page.
The Cloud API's
GET /v1/tasksacceptsstatus,query,all, anddeletedas query params, but there's no way to filter byisFocusedToday. The field exists on the task model and serializes through the API, but filtering for today's focused tasks requires fetching the full task list and filtering client-side — expensive once the task list grows past a few hundred items.This is especially relevant for AI agent / MCP workflows where a common query is "what am I focused on today?" — currently that's an N+1 client-filter pattern against every task in the namespace.
Request: support
?isFocusedToday=trueonGET /v1/tasks, consistent with howstatusandallare handled.All reactions