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

[Admin Cabinet] The dates on the 'Статус замовлення" column are not sorted in the “Я”-”A” order after clicking on the arrow icon #5102

Closed nata000 closed 5 months ago

nata000 commented 1 year ago

Environment: macOS Big Sur 11.3,Google Chrome 105.0.5195.125 Reproducible:always Build found: 29.01.2023

Preconditions

User is logged in as administrator. User navigated to the Orders tab There is at least two order on the 'Order' table with different statuses

Steps to reproduce

  1. Click on the arrow icon on the 'Статус замовлення' column
  2. Pay attention on the statuses sorting

Actual result The statuses of order are not sorted in the “Я”-”A” format on the 'Статус замовлення" column after clicking on the arrow icon Expected result The statuses of order are sorted in the “Я”-”A” format and icon points upwards on the 'Статус замовлення" column after clicking on the arrow icon

User story and test case links E.g.: "User story #2537

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

Знімок екрана 2023-01-29 о 16 40 50
DanaIuich commented 1 year ago

The statuses of order are not sorted in the “Я”-”A” format on the 'Статус замовлення" column after clicking on the arrow icon

Maxv1z commented 5 months ago

Sorting works only in English localization, since property used for sorting - orderStatus, comes in English only. So when we make a request to fetch data in asc or desc order, system does it accordingly to English alphabet, not depending on the language chosen. The way to resolve the bug is to add orderStatus in both languages in the endpoint https://greencity-ubs.greencity.social/ubs/management/bigOrderTable, so the frontend can get sorted tables depending on the user's language. Без імені

ViktoriyaRyazhska commented 5 months ago

Dublicate #5527