Issues

Select view

Select search mode

 
28 of 28

Sorting by last updated field is done by createdDate

Description

Overview

Sorting by last updated looks like sorting by createdDate

Steps to reproduce:

  1. Login as consortium_admin to FOLIO

  2. Select “Users” application

  3. Search user by “pfilippov_central”

  4. Expand “Reading room access” accordion

  5. Try to sort reading room by last updated

  6. Update note or access for testRoom2

  7. Observe that the correct order is defined by “createdDate”, not by “updatedDate”

    1. TestRoom2 must be the first in descending order, or last in ascending order (excluding “private” room)

Expected result

Ascending order

- test - desks - testRoom1 - testRoom3 - testRoom2 - private

Descending Order

- private - testRoom2 - testRoom3 - testRoom1 - desks - test

Actual result

Ascending order

- test - desks - testRoom1 - testRoom2 - testRoom3 - private

Descending Order

- private - testRoom3 - testRoom2 - testRoom1 - desks - test


Additional info

“Private room”’s metadata field is empty

[ { "id": "07436f52-cf1a-42db-8b02-75380498e12f", "userId": "b69a1fb0-2d68-4626-8b7a-fc9df4f86c3c", "readingRoomId": "f0199761-3596-468f-9170-8ec804c81b98", "readingRoomName": "test", "access": "NOT_ALLOWED", "metadata": { "createdDate": "2025-04-02 15:32:40", "createdByUserId": "da2809d0-7767-45b9-83c1-c5ea6ca0c74d", "updatedDate": "2025-04-02 15:32:40", "updatedByUserId": "da2809d0-7767-45b9-83c1-c5ea6ca0c74d" } }, { "id": "16bcbe06-3e7e-4d76-a365-cae130c72c36", "userId": "b69a1fb0-2d68-4626-8b7a-fc9df4f86c3c", "readingRoomId": "273b4202-c4fd-4451-926e-999b6e8dc164", "readingRoomName": "desks", "access": "NOT_ALLOWED", "metadata": { "createdDate": "2025-04-02 15:32:40", "createdByUserId": "da2809d0-7767-45b9-83c1-c5ea6ca0c74d", "updatedDate": "2025-04-02 15:32:40", "updatedByUserId": "da2809d0-7767-45b9-83c1-c5ea6ca0c74d" } }, { "userId": "b69a1fb0-2d68-4626-8b7a-fc9df4f86c3c", "readingRoomId": "83d165a8-a10e-4f55-b036-ea58defda319", "readingRoomName": "private", "access": "NOT_ALLOWED", "metadata": {} }, { "id": "19321ef1-0105-491d-bb25-febd9b184efe", "userId": "b69a1fb0-2d68-4626-8b7a-fc9df4f86c3c", "readingRoomId": "fe9331e1-8d41-4a80-9de0-3fd6b50a1f59", "readingRoomName": "testRoom1", "access": "ALLOWED", "notes": "Test Note #12", "metadata": { "createdDate": "2025-04-02 15:35:25", "createdByUserId": "da2809d0-7767-45b9-83c1-c5ea6ca0c74d", "updatedDate": "2025-04-02 15:35:25", "updatedByUserId": "da2809d0-7767-45b9-83c1-c5ea6ca0c74d" } }, { "id": "9d10e7c9-64d9-4d47-8664-115c525632ad", "userId": "b69a1fb0-2d68-4626-8b7a-fc9df4f86c3c", "readingRoomId": "c63000f7-b5c3-40ef-a2af-c71d18979c81", "readingRoomName": "testRoom2", "access": "ALLOWED", "notes": "Test Note #22 (updated)", "metadata": { "createdDate": "2025-04-02 15:35:25", "createdByUserId": "da2809d0-7767-45b9-83c1-c5ea6ca0c74d", "updatedDate": "2025-04-02 15:42:07", "updatedByUserId": "da2809d0-7767-45b9-83c1-c5ea6ca0c74d" } }, { "id": "a700f62d-b315-496c-b5de-fc788aac4dd1", "userId": "b69a1fb0-2d68-4626-8b7a-fc9df4f86c3c", "readingRoomId": "b61178f0-5794-4434-b115-e9844afd6e1e", "readingRoomName": "testRoom3", "access": "NOT_ALLOWED", "notes": "Test Note #11", "metadata": { "createdDate": "2025-04-02 15:32:40", "createdByUserId": "da2809d0-7767-45b9-83c1-c5ea6ca0c74d", "updatedDate": "2025-04-02 15:35:25", "updatedByUserId": "da2809d0-7767-45b9-83c1-c5ea6ca0c74d" } } ]

Environment

None

CSP Request Details

None

CSP Rejection Details

None

Potential Workaround

None

Estimation Notes and Assumptions

None

RCA Group Details

None

Checklist

hide

Details

Assignee

Reporter

Development Team

Volaris

Release

Trillium (R2 2025)

RCA Group

TBD

Affected releases

Sunflower (R1 2025)

Priority

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created 3 days ago
Updated 2 days ago

Activity

Show:
Pavel Filippov
updated the description2 days ago
h3. Overview Sorting by last updated looks like sorting by createdDate h3. Steps to reproduce: # Login as consortium_admin to [https://bugfest-sunflower-consortium.int.aws.folio.org/|https://bugfest-sunflower-consortium.int.aws.folio.org/|smart-link] # Select “Users” application # Search user by “pfilippov_central” # Expand “Reading room access” accordion # Try to sort reading room by last updated # Update note or access for testRoom2 # Observe that the correct order is defined by “createdDate”, not by “updatedDate” ## TestRoom2 must be the first in descending order, or last in ascending order (excluding “private” room) h3. Expected result h4. Ascending order {noformat}- test - desks - testRoom1 - testRoom3 - testRoom2 - private{noformat} h4. Descending Order {noformat}- private - testRoom2 - testRoom3 - testRoom1 - desks - test{noformat} h3. Actual result h4. Ascending order {noformat}- test - desks - testRoom1 - testRoom2 - testRoom3 - private{noformat} h4. Descending Order {noformat}- private - testRoom3 - testRoom2 - testRoom1 - desks - test{noformat} h3. Additional info “Private room”’s metadata field is empty *Server response for /reading-room-patron-permission/b69a1fb0-2d68-4626-8b7a-fc9df4f86c3c* {noformat}[ { "id": "07436f52-cf1a-42db-8b02-75380498e12f", "userId": "b69a1fb0-2d68-4626-8b7a-fc9df4f86c3c", "readingRoomId": "f0199761-3596-468f-9170-8ec804c81b98", "readingRoomName": "test", "access": "NOT_ALLOWED", "metadata": { "createdDate": "2025-04-02 15:32:40", "createdByUserId": "da2809d0-7767-45b9-83c1-c5ea6ca0c74d", "updatedDate": "2025-04-02 15:32:40", "updatedByUserId": "da2809d0-7767-45b9-83c1-c5ea6ca0c74d" } }, { "id": "16bcbe06-3e7e-4d76-a365-cae130c72c36", "userId": "b69a1fb0-2d68-4626-8b7a-fc9df4f86c3c", "readingRoomId": "273b4202-c4fd-4451-926e-999b6e8dc164", "readingRoomName": "desks", "access": "NOT_ALLOWED", "metadata": { "createdDate": "2025-04-02 15:32:40", "createdByUserId": "da2809d0-7767-45b9-83c1-c5ea6ca0c74d", "updatedDate": "2025-04-02 15:32:40", "updatedByUserId": "da2809d0-7767-45b9-83c1-c5ea6ca0c74d" } }, { "userId": "b69a1fb0-2d68-4626-8b7a-fc9df4f86c3c", "readingRoomId": "83d165a8-a10e-4f55-b036-ea58defda319", "readingRoomName": "private", "access": "NOT_ALLOWED", "metadata": {} }, { "id": "19321ef1-0105-491d-bb25-febd9b184efe", "userId": "b69a1fb0-2d68-4626-8b7a-fc9df4f86c3c", "readingRoomId": "fe9331e1-8d41-4a80-9de0-3fd6b50a1f59", "readingRoomName": "testRoom1", "access": "ALLOWED", "notes": "Test Note #12", "metadata": { "createdDate": "2025-04-02 15:35:25", "createdByUserId": "da2809d0-7767-45b9-83c1-c5ea6ca0c74d", "updatedDate": "2025-04-02 15:35:25", "updatedByUserId": "da2809d0-7767-45b9-83c1-c5ea6ca0c74d" } }, { "id": "9d10e7c9-64d9-4d47-8664-115c525632ad", "userId": "b69a1fb0-2d68-4626-8b7a-fc9df4f86c3c", "readingRoomId": "c63000f7-b5c3-40ef-a2af-c71d18979c81", "readingRoomName": "testRoom2", "access": "ALLOWED", "notes": "Test Note #22 (updated)", "metadata": { "createdDate": "2025-04-02 15:35:25", "createdByUserId": "da2809d0-7767-45b9-83c1-c5ea6ca0c74d", "updatedDate": "2025-04-02 15:42:07", "updatedByUserId": "da2809d0-7767-45b9-83c1-c5ea6ca0c74d" } }, { "id": "a700f62d-b315-496c-b5de-fc788aac4dd1", "userId": "b69a1fb0-2d68-4626-8b7a-fc9df4f86c3c", "readingRoomId": "b61178f0-5794-4434-b115-e9844afd6e1e", "readingRoomName": "testRoom3", "access": "NOT_ALLOWED", "notes": "Test Note #11", "metadata": { "createdDate": "2025-04-02 15:32:40", "createdByUserId": "da2809d0-7767-45b9-83c1-c5ea6ca0c74d", "updatedDate": "2025-04-02 15:35:25", "updatedByUserId": "da2809d0-7767-45b9-83c1-c5ea6ca0c74d" } } ]{noformat}
Irina Pokhylets
made 2 changes
2 days ago
Release
None
Trillium (R2 2025)
Priority
TBD
P4
Khalilah Gambrell
updated the Development Team3 days ago
None
Volaris
Pavel Filippov
created the Issue3 days ago
TestRail: Cases
TestRail: Runs

Flag notifications