beckn / beckn-ui-workspace

Mono Repo for Beckn UI Workspace
9 stars 12 forks source link

Policy Portal - Sorting is working on a single page instead of the entire data set in pagination #2122

Open omkar-em opened 2 months ago

omkar-em commented 2 months ago

Bug Description

The sorting functionality is only applying to the data on the current page, rather than sorting the entire data set across all pages. This leads to incorrect sorting when using pagination.

Steps to Reproduce

  1. Navigate to the policies list table with pagination enabled.
  2. Sort the data by any column (e.g., policy name or date or status).
  3. Observe that the sorting only affects the data on the current page and not the entire data set.

Expected Behavior

Sorting should apply to the entire data set across all pages, not just the visible data on a single page.

Actual Behavior

The sorting is limited to the data on the current page, resulting in inconsistent sorting across pages.

Figma

NA

Environment

Screenshots/Logs

NA

aniketceminds commented 1 month ago

The sorting is working as expected @omkar-em could you please check it once

aniketceminds commented 1 month ago

Image Image

SanketEminds commented 1 month ago

Created ticket #2175. Once done, I will do QA for this ticket again. Note-Displaying the timestamp for the status change would be helpful. cc @emmayank @PritiEM @aniketceminds @omkar-em

SanketEminds commented 1 month ago

Working Fine.