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

Request create endpoint should also override blocks required by the user

    XMLWordPrintable

    Details

    • Type: Story
    • Status: Closed (View Workflow)
    • Priority: TBD
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 20.0.0
    • Labels:
      None
    • Template:
    • Sprint:
      EPAM-Veg Sprint 107, EPAM-Veg Sprint 108, EPAM-Veg Sprint 109
    • Story Points:
      8
    • Development Team:
      Vega
    • Release:
      R1 2021
    • Confidence factor:
      Medium

      Description

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

      Request body of request create/update endpoints (POST /circulation/requests and PUT /circulation/requests) 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",
            ..... 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)

      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

                Assignee:
                OleksandrVidinieiev Oleksandr Vidinieiev
                Reporter:
                oleksandrkurash Alexander Kurash
                Tester Assignee:
                Darcy Branchini Darcy Branchini
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    TestRail: Runs

                      TestRail: Cases