Uploaded image for project: 'mod-circulation'
  1. mod-circulation
  2. CIRC-1061

Check-out endpoint should also override blocks required by the user

    XMLWordPrintable

Details

    • Story
    • Status: Closed (View Workflow)
    • TBD
    • Resolution: Done
    • None
    • 20.0.0
    • None
    • EPAM-Veg Sprint 105, EPAM-Veg Sprint 106, EPAM-Veg Sprint 107, EPAM-Veg Sprint 108
    • 8
    • Vega
    • R1 2021
    • Medium

    Description

      Design doc: https://wiki.folio.org/display/DD/Overriding+blocks+in+mod-circulation

      Request body of a check-out endpoint (POST /circulation/check-out-by-barcode) needs to include a list of blocks that the requester wants to override. New (optional) field should be added to JSON schema:

      "overrideBlocks": {
        "description": "Blocks that user wants to override",
        "type": "array",
        "items":{
          "type": "string",
          "enum": [
            "patron-block",
            "item-limit-block",
            "item-not-loanable-block"
          ]
        }
      }
      

      If this parameter is included in the request, the server should override all of the specified blocks if the user has sufficient permissions. If the user doesn't have some of the required override permissions, a list of missing permissions should be included in the response. An error should be added to the response body with these parameters:

      • key: "overridableBlocks", value: comma-separated string
        A list of blocks that need to be overridden in order to complete this action.
      • key: "missingOverridePermissions", value: comma-separated string (optional)

      Overridable blocks keys:

      • patron-block
      • item-limit-block
      • item-not-loanable-block

      Override permissions:

      • circulation.override-patron-block
      • circulation.override-item-limit-block
      • circulation.override-item-not-loanable-block

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                roman-barannyk Roman Barannyk
                oleksandrkurash Alexander Kurash
                Darcy Branchini Darcy Branchini
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases