Skip to content

Pagination and filtering on CV section list endpoints #73

Description

@datvt243

Problem

GET /api/v1/{education|experience|award|certificate|project|reference} (and generalInformation) always return the full collection for a candidate via baseGetAll / baseFindDocument (services/index.ts) — no page/limit/sort support.

Low risk for a single candidate's own CV data (bounded, personal-scale), but worth doing before this pattern gets reused anywhere with larger collections.

Proposal

  • Add optional page/limit query params to baseGetAll (candidate_profile/BaseController.ts), defaulting to returning everything if omitted (backward compatible).
  • Add .skip()/.limit() to the underlying baseFindDocument query in services/index.ts.
  • Optional: basic sort param (e.g. by startDate/createdAt).

Notes

Tracked as a known gap in TODO.md (3.6, 3.7). Lower priority than the other proposals here since current usage is low-volume per user, but flagging so it doesn't get forgotten as the product grows.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestperformancePerformance improvements

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions