Implement the code for the feature UXPROD-5005

Description

UXPROD-5005 - Updating a Virtual Patron’s Group via Edge API

Current Behavior:
If a user already exists in FOLIO, the system uses the user data as-is without making any changes.

Expected Behavior:

  • If the patron group in the incoming request differs from the patron group of the existing user, the system should update the patron group.

  • This update should only be implemented for users with LENDER or PICKUP roles, as it applies exclusively to virtual users.

Note:
The patron group of real users should not be modified under any circumstances.

Implementation is almost done, may be few loggers can be added or some code refactoring can be done if needed and needs to be thoroughly tested

You can find the draft code changes here

Environment

None

Potential Workaround

None

Attachments

5

relates to

Checklist

hide

Activity

Show:

Irina PokhyletsJanuary 29, 2025 at 12:54 PM

Works as expected.

Polina UstimenkoJanuary 29, 2025 at 11:01 AM

Tested on Eureka snapshot. Update of patron group for Lender transaction:

For Pickup transaction:

Group can not be updated for Borrower and Borrowing-pickup roles:

Circulation rules are applied correctly when patron group is changed:

please review, thank you

Done

Details

Assignee

Reporter

Priority

Story Points

Sprint

Development Team

Volaris

Fix versions

Release

Sunflower (R1 2025)

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created December 9, 2024 at 7:12 AM
Updated March 12, 2025 at 10:36 AM
Resolved January 27, 2025 at 11:37 AM
TestRail: Cases
TestRail: Runs