Skip to content

next_cursor is returned even for offset pagination, with unclear semantics #127

Description

@Darkdruce

Summary

The offset branch also returns a next_cursor derived from the last row, mixing two pagination models in one response.

Location

  • src/api/payments.rs:276-284

Details & impact

Clients may interleave offset and cursor, producing inconsistent/duplicated pages since the two orderings differ (created_at DESC vs created_at DESC, id DESC).

Suggested fix

Pick one model per request and document that mixing is unsupported; ideally deprecate offset.

Acceptance criteria

  • Pagination semantics are unambiguous and documented.

Metadata

Metadata

Assignees

No one assigned

    Labels

    GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial Campaign | FWC26Campaign: Official Campaign | FWC26apiHTTP API surface and handlersdocumentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions