[FOLIO-1584] Add mod-patron to folio-testing Created: 17/Oct/18  Updated: 12/Nov/18  Resolved: 08/Nov/18

Status: Closed
Project: FOLIO
Components: None
Affects versions: None
Fix versions: None

Type: Story Priority: P3
Reporter: Craig McNally Assignee: Wayne Schneider
Resolution: Done Votes: 0
Labels: ci, integration, sprint50
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original estimate: Not Specified

Sprint:

 Description   

Please add mod-patron to folio-testing.

Github:
https://github.com/folio-org/mod-patron

Docker:
https://hub.docker.com/r/folioci/mod-patron/tags/

ModuleDescriptor:

{
  "id": "mod-patron-1.1.1-SNAPSHOT.22",
  "name": "Patron Services Module",
  "provides": [
    {
      "id": "patron",
      "version": "1.0",
      "handlers": [
        {
          "methods": ["GET"],
          "pathPattern": "/patron/account/{accountId}",
          "permissionsRequired": ["patron.account.item.get"],
          "modulePermissions": [
            "users.item.get",
            "circulation.loans.collection.get",
            "circulation.requests.collection.get",
            "accounts.collection.get",
            "inventory.items.item.get",
            "inventory-storage.items.collection.get",
            "inventory-storage.holdings.item.get",
            "inventory.instances.item.get",
            "feefines.item.get"
          ]
        },
        {
          "methods": ["POST"],
          "pathPattern": "/patron/account/{accountId}/item/{itemId}/renew",
          "permissionsRequired": ["patron.renew.item.post"],
          "modulePermissions": [
            "circulation.renew-by-id.post"
          ]
        },
        {
          "methods": ["POST"],
          "pathPattern": "/patron/account/{accountId}/item/{itemId}/hold",
          "permissionsRequired": ["patron.hold.item.post"],
          "modulePermissions": [
            "circulation.requests.item.post"
          ]
        },
        {
          "methods": ["PUT"],
          "pathPattern": "/patron/account/{accountId}/item/{itemId}/hold/{holdId}",
          "permissionsRequired": ["patron.hold.item.put"],
          "modulePermissions": [
            "circulation.requests.item.put"
          ]
        },
        {
          "methods": ["DELETE"],
          "pathPattern": "/patron/account/{accountId}/item/{itemId}/hold/{holdId}",
          "permissionsRequired": ["patron.hold.item.delete"],
          "modulePermissions": [
            "circulation.requests.item.delete"
          ]
        }
      ]
    }
  ],
  "requires": [
    {
      "id": "users",
      "version": "15.0"
    },
    {
      "id": "circulation",
      "version": "3.3 4.0"
    },
    {
      "id": "feesfines",
      "version": "14.0"
    },
    {
      "id": "inventory",
      "version": "5.2 6.0 7.0"
    },
    {
      "id": "holdings-storage",
      "version": "1.2 2.0"
    }
  ],
  "permissionSets": [
    {
      "permissionName": "patron.account.item.get",
      "displayName": "patron - get account details",
      "description": "Get user account details"
    },
    {
      "permissionName": "patron.renew.item.post",
      "displayName": "patron - renew a loan",
      "description": "Renew a loan for this patron"
    },
    {
      "permissionName": "patron.hold.item.post",
      "displayName": "patron - create a hold",
      "description": "Creates a hold on the specified item for this patron"
    },
    {
      "permissionName": "patron.hold.item.put",
      "displayName": "patron - update a hold",
      "description": "Updates the specified hold"
    },
    {
      "permissionName": "patron.hold.item.delete",
      "displayName": "patron - remove a hold",
      "description": "Removes the specified hold"
    },
    {
      "permissionName": "patron.all",
      "displayName": "patron - all permissions",
      "description": "Entire set of permissions needed to use patron",
      "subPermissions": [
        "patron.account.item.get",
        "patron.renew.item.post",
        "patron.hold.item.post",
        "patron.hold.item.put",
        "patron.hold.item.delete"
      ]
    }
  ],
  "launchDescriptor": {
    "dockerImage": "${artifactId}:${version}",
    "dockerArgs": {
      "HostConfig": { "PortBindings": { "8081/tcp":  [{ "HostPort": "%p" }] } }
    },
    "dockerPull" : false
  }
}


 Comments   
Comment by Wayne Schneider [ 08/Nov/18 ]

We are adding this as requested to folio-testing.aws.indexdata.com, but not to the folio/testing-backend Vagrant VM due to memory limitations (see FOLIO-1548 Closed )

Comment by Wayne Schneider [ 08/Nov/18 ]

mod-patron will be included in the next build of folio-testing.aws.indexdata.com.

Generated at Thu Feb 08 23:14:25 UTC 2024 using Jira 1001.0.0-SNAPSHOT#100246-sha1:7a5c50119eb0633d306e14180817ddef5e80c75d.