Skip to content

Undefined sorting in Get All Transactions #72

@samfromlv

Description

@samfromlv

Get All Transactions (/v1/transactions) endpoint does not have defined sorting and also does accept sorting parameter. Without defined sorting or sorting parameter it is impossible to build normal paging in the app or infinite scroll list. Infinite scroll list is list of all transactions sorted by date in descending order.

To reproduce the issue:

  1. Get a token for an account with a lot of transactions (1000+)
  2. Call /v1/transactions?limit=25&start_date=2023-01-01&end_date=2026-02-26
  3. Observe that the transaction page has 25 transactions in ascending date order, observe earliest transaction date
  4. Call /v1/transactions?limit=25&start_date=2023-01-01&end_date=2026-02-26&offset=25

EXPECTED: Call with offset parameter returns transactions with a date earlier or equal to the earliest date you observed in step 4. This way you can easily build an infinite list of transactions, transactions are loaded automatically when you scroll to the bottom.
ACTUAL: Call with offset the parameter may return transactions with a date greater than the date from step 4. It is not possible to build a paging of an infinite scroll list, because order or transactions will not make sense to the user.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions