Unable to edit Manual Patron Blocks

Description

Overview: When opening an existing Manual Patron Block for editing, the fields entered for the Manual Patron Block at creation are missing.

Steps to Reproduce:
1) Login to Lotus BugFest as an admin
2) Go the _User Details" for a selected test patron
3) Select "Create block" form the ACTIONS menu
4) Enter in a value for every field (required or optional) and save the new Manual Patron Block
5) To edit the new Manual Patron Block, click on the row in the Patron Block list within the "Patron blocks* sub-section of the test patron's User Details
6) The edit Manual Patron Block page opens

Expected Results:
The values I originally entered and saved for these fields appear on the edit page...

  • Display description

  • Staff only information

  • Message to patron

  • Expiration date

Actual Results:
The values I originally entered and saved for these fields are NOT appearing on the edit page...

  • Display description

  • Staff only information

  • Message to patron

  • Expiration date

Additional Information:
None

Interested parties:

CSP Request Details

None

CSP Rejection Details

None

Potential Workaround

None

Attachments

2

Checklist

hide

TestRail: Results

Activity

Show:

julie.bickleApril 1, 2022 at 6:36 AM

I confirm that I could not reproduce this issue in Lotus Bugfest, when having 16 manual patron blocks.

Holly MistlebauerMarch 18, 2022 at 5:56 PM

Holly tested this on SNAPSHOT and it works again...thanks...

Stanislau SnapokMarch 17, 2022 at 7:42 AM

Hello .

Tested with Lotus data, works as expected.

Let me please explain why I tested it with Lotus data instead of snapshot.
This issue appears when we have more than 10 active manual patron blocks. Before changes we fetch them all, find neccesary by id and prefill data from responce. But when we have more than 10 records, and our block doesn't appears in them, there are no any prefilled data. Check please attached screenshot (UIU-2548-before.jpg). I worked with your test user, and as you can see in DB we have 69 active manual blocks, and in the response we can see only first 10 of them.
Code was changed to look for blocks only for current user, and limit was raised up from 10 record to 10000 records.
How I tested this: I localy launched ui-users module with master branch, which is used to deploy the snapshot env. It already contains all neccesary changes. All subsequent actions you can see in attached evidence (UIU-2548-evidence.gif). I used the same user to make difference more clear.

On the snapshot env it worked correct by reason of little number of manual patron blocks I believe. To correctly check this behaviour on the snapshot, first of all you need to create more than 10 manual patron blocks. Then you should make sure that block, which you trying to edit is not appear in the responce (but this should not happen more after my changes).

Let me please know if my way for test is not acceptable for you - I'll try to do something else.

Done

Details

Assignee

Reporter

Tester Assignee

Priority

Story Points

Sprint

Development Team

Vega

Fix versions

Release

Lotus (R1 2022) Bug Fix

RCA Group

Implementation coding issue

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created March 15, 2022 at 7:36 PM
Updated April 5, 2022 at 1:33 PM
Resolved March 18, 2022 at 5:56 PM
TestRail: Cases
TestRail: Runs