Skip to content

bug(feedback): getCategories pagination (skip/take) not working correctly #429

Description

@Sarath1018

Summary

feedback.getCategories() pagination does not work correctly — pageSize and cursor navigation are broken due to a backend bug.

Bug 1: pageSize is ignored

Passing pageSize: 2 returns more than 2 items. The backend does not correctly apply the page size constraint to the full list of categories (which includes system defaults + tenant-specific categories).

const page = await feedback.getCategories({ pageSize: 2 });
// Expected: 2 items
// Actual: up to 5 items (3 system defaults + tenant categories, ignoring pageSize)

Bug 2: hasNextPage is always false

The backend returns totalCount equal to the number of items on the current page rather than the actual total. As a result, hasNextPage is always false and cursor-based navigation is impossible.

const page = await feedback.getCategories({ pageSize: 2 });
page.hasNextPage; // Always false, even when there are more categories

Notes

  • The SDK sends skip and take correctly — this is a backend-only bug. No SDK changes are needed once the backend is fixed.
  • getCategories() without pagination options works correctly and returns all categories.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions