Gap: No pagination support for project listing #10

Closed
opened 2026-05-09 05:18:48 +00:00 by Mark · 1 comment
Owner

Severity: Low

get_projects() in both vikunja_cli/api/client.py and vikunjatool/api/client.py does not support pagination parameters (page, per_page).

def get_projects(self):
    response = self._make_request('GET', '/projects')
    return self._normalize_list_response(response, [...])

By contrast, most other list endpoints (tasks, labels, users, teams, webhooks, shares, attachments) support page and per_page parameters.

Impact: Users with many projects cannot paginate through them. The Vikunja API may return truncated results for large project lists.

Fix: Add optional page and per_page parameters to get_projects(), propagate them as query params, and update the CLI command handler to expose --page and --per-page flags.

**Severity: Low** `get_projects()` in both `vikunja_cli/api/client.py` and `vikunjatool/api/client.py` does not support pagination parameters (page, per_page). ```python def get_projects(self): response = self._make_request('GET', '/projects') return self._normalize_list_response(response, [...]) ``` By contrast, most other list endpoints (tasks, labels, users, teams, webhooks, shares, attachments) support `page` and `per_page` parameters. **Impact:** Users with many projects cannot paginate through them. The Vikunja API may return truncated results for large project lists. **Fix:** Add optional `page` and `per_page` parameters to `get_projects()`, propagate them as query params, and update the CLI command handler to expose `--page` and `--per-page` flags.
Author
Owner

Fixed in commit. Closing.

Fixed in commit. Closing.
Mark closed this issue 2026-05-14 21:57:55 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Mark/vikunja-cli#10
No description provided.