ita-social-projects / GreenCity

The main aim of “GreenCity” project is to teach people in a playful and challenging way to have an eco-friendly lifestyle. A user can view on the map places that have some eco-initiatives or suggest discounts for being environmentally aware (for instance, coffee shops that give a discount if a customer comes with their own cup). А user can start doing an environment-friendly habit and track their progress with a habit tracker.
MIT License
65 stars 80 forks source link

[Pick up City. Admin cabinet. Orders] The 'Дата вивезення' column is missing values when sorting from newest to oldest #7106

Open yulianagoncharenko opened 4 months ago

yulianagoncharenko commented 4 months ago

Environment: Windows 10 Pro for Workstations, Firefox 126.0b8 (32-bit) Reproducible: always Build found: 06 May 2024 (test)

Preconditions

  1. Log in as Admin https://www.greencity.social/#/ubs-admin/orders
  2. Select Ukrainian localisation.
  3. Apply filter by 'half-paid' Payment status.

Steps to reproduce

  1. Click on the arrow icon near the column heading 'Дата вивезення' to sort oldest to newest order. Pay attention to the sorting in the column.
  2. Click again on the arrow icon near the column heading 'Дата вивезення' to sort in newest to oldest order. Pay attention to the sorting in the column.

Actual result After the first click on arrow icon the items in the column are sorted from the oldest dates to the newest ones. After the second click on arrow icon the items are sorted from the newest dates to the oldest ones and these newest orders with export date 06 May 2024 onwards are missing. image image image

Expected result Orders with latest export date are shown first when sorting from newest to oldest order by 'Дата вивезення' column.

User story and test case links

3336

Labels to be added "Bug", Priority ("pri: "), Severity ("severity:"), Type ("UI, "Functional"), "API" (for back-end bugs).

Daria811 commented 3 months ago

The sort in descending order by 'Дата вивезення' column should work correctly without using filters. The first entry in the table should display the order number 153 with the export date 01/06/2047. The second entry in the table should display the order number 210 with the date of export, 12/15/2024, and so on.

https://github.com/ita-social-projects/GreenCity/assets/165039674/6f7afbed-804b-4a6e-a6ef-ae702fc78938