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 isn't sorted in asc. order based on first HH\MM in range #7107

Closed yulianagoncharenko closed 5 days ago

yulianagoncharenko commented 6 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. Ukrainian localisation selected.
  3. Filter by 'half-paid' Payment status is appllied.

Steps to reproduce

  1. Click on the arrow icon near the column heading 'Час вивезення' to sort in desc. order based on first HH\MM in range. Pay attention to the sorting in the column. Click again on the arrow icon near the column heading 'Час вивезення' to sort in asc. order based on first HH\MM in range. Pay attention to the sorting in the column.

Actual result After the first click on arrow icon the items in the column are sorted asc. order based on first HH\MM in range. image After the second click the items in this column are sorted in descending order based on first HH\MM in range. image

Expected result After the first click on arrow icon the items to be sorted in desc. order based on first HH\MM in range. After the second click on arrow icon the items to be sorted in asc. order based on first HH\MM in range.

User story and test case links

3336

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

lukovskyj commented 1 month ago

I tried to reproduce the bug. Here's what I found:

  1. Logged in as admin, ua language, filtering by payment status. зображення

  2. First click on the sorting arrow for the "Час вивезення" column: зображення Column sorted in descending order based on first HH\MM in range.

  3. Second click on the sorting arrow: зображення

Bug did not reproduce.

P.S. Ascending sorting first shows all results with an empty "Час вивезення" column value, and it's normal behavior for the table and database.

lukovskyj commented 5 days ago

Update. This PR 1529 places null value elements at the end of the sorted list.