Disallow >1 Open Request on Same Item by Same Requester

Description

User story:
As a folio administrator
I want the system to prevent requests from being created by the same user for the same item
Because that could cause weird behavior

Scenarios:

  1. Scenario

    • Given User A has an open request on Item X (open - not yet filled, open - awaiting pickup, open - in transit)

    • When a request is created for Item X with User A as requester

    • Then:

      • Request is not created

      • Modal popup should display:

        • Header: Request not allowed

        • Body: This requester already has an open request for this item.

        • Actions:

          • Close button - closes modal

          • X - same as close button

Environment

None

Potential Workaround

None

Attachments

1

Checklist

hide

TestRail: Results

Activity

Show:

Anatolii Starkov April 3, 2019 at 11:51 AM

Cool, nice to hear that

Cate Boerema April 3, 2019 at 10:51 AM

This works perfectly. Thanks !

Cate Boerema March 29, 2019 at 4:22 PM

Oops - I guess the fix just isn't in folio-testing yet. I will test tomorrow

Cate Boerema March 29, 2019 at 4:13 PM

This isn't working for me in http://folio-testing.aws.indexdata.com Steps:

  1. Go to inventory and find an item that is available

  2. Go to requests and create a request for that item with requester = Jazmin Becker (it's a page request and the status is open - not yet filled)

  3. Create a new request in requests for the same item also for Jazmin Becker

Expected: Should show modal

Actual: modal doesn't show

Magda Zacharska March 28, 2019 at 8:13 PM
Edited

Created for Title Level Requests scenario.

Done

Details

Assignee

Reporter

Priority

Story Points

Sprint

Development Team

Prokopovych

Fix versions

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs
Created March 1, 2019 at 5:10 PM
Updated April 23, 2019 at 4:10 PM
Resolved April 3, 2019 at 10:51 AM
TestRail: Cases
TestRail: Runs