Wiki history (web)
Route/View: WikiPageController::history → templates/wiki/page_history.html.twig
Problem: Returns all revisions.
Add: ?page=&limit=. Show pager.
Service/Repo: add WikiPageService::getHistory($title, int $page, int $limit) returning { revisions, total }; repo methods countRevisionsByTitle(...), findRevisionsByTitle($normalized, $limit, $offset).
Wiki history (API)
Route: GET /api/wiki/history/{title} (WikiPageApiController::history)
Problem: Returns full list.
Add: ?page=&limit= and return { items, page, limit, total, total_pages }.
Full-text search results (web)
Route/View: WikiPageController::deepTextSearch (/wiki/search/full) → templates/wiki/page_search_results.html.twig
Problem: Supports limit only; no paging in controller/template.
Add: ?page=&limit=. Compute offset = (page-1)*limit.
Service: You already have WikiPageService::deepTextSearch($query, $limit, $offset) — just pass offset through and return total if your repo can provide it (or a “has_more” flag).
Full-text search results (API)
Route: GET /api/wiki/search/full (WikiPageApiController::deepTextSearch)
Problem: Accepts limit only.
Add: ?page=&limit= and return paging meta (page, limit, total/has_more).
My contributions (web)
Route/View: WikiPageController::contribution → templates/wiki/page_my_contribution.html.twig
Problem: Fixed size (service uses limit: 50, offset: 0).
Add: ?page=&limit= UI pager.
Service/Repo: expose params in WikiPageService::getContributions(?User $user, int $page, int $limit); repo method should accept limit, offset + a count query.
My contributions (API)
Route: GET /api/wiki/contribution (WikiPageApiController::contribution)
Problem: No paging.
Add: ?page=&limit= and return { items, page, limit, total }.
Recent changes (optional but recommended)
Sidebar fragment: WikiPageController::recentChanges currently returns top N (no paging).
If you add a full page (e.g. /wiki/recent-changes/all), support ?page=&limit=.
Service/Repo: extend WikiPageService::getRecentChanges(...) and repo to accept offset, and (ideally) return total. Update cache key to include page.
Nice-to-have refinements
Comments endpoints: you already accept page/limit; consider returning total (or has_more) so the frontend can show a proper pager:
댓글 (0)
댓글 남기기