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

Renewal endpoints 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 108, EPAM-Veg Sprint 109
    • 8
    • Vega
    • R1 2021
    • Medium

    Description

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

      Request body of renewal endpoints (POST /circulation/renew-by-barcode and /circulation/renew-by-id) 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-is-not-renewable",
            "item-is-not-loanable-block",
            "loan-has-reached-renewal-limit",
            "loan-has-recall-request",
            "item-is-lost",
            ..... or
            "all-blocks"
          ]
        }
      }
      

      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)

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases