Skip to content

Framework-level pagination with view and JSON helpers #27

Description

@eaguad1337

Problem

Pagination currently lives only in the ORM. There is no request-aware paginator at the framework level and no standard JSON shape or view presentation for paginated results.

Proposal

Framework-level paginators that build on the ORM's .paginate():

  • A simple paginator and a length-aware paginator.
  • Read page / per_page from the current request automatically.
  • Expose links and meta (current page, last page, total, per page).
  • Serialize to a consistent JSON envelope (data / meta / links).
  • Render through reusable view partials / helpers for server-rendered pages.

Scope

Paginator classes, request integration, JSON contract, view partials/helpers.

Definition of Done

  • Implementation with a documented JSON contract.
  • pytest covers pagination math, request parsing, and JSON shape (suite green).
  • Docs page + nav entry.
  • Release notes entry.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:dataData layer: ORM integration, pagination, factoriesenhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions