Uploaded image for project: 'ui-eholdings'
  1. ui-eholdings
  2. UIEH-396

BUG: mod-kb-ebsco: Issue updating a custom package using Postman

    XMLWordPrintable

    Details

    • Template:
    • Sprint:
      eHoldings Sprint 40
    • Story Points:
      2
    • Analysis Estimate:
      Small < 3 days
    • Estimation Notes and Assumptions:
      Hide
      T-shirt estimate is based on validating UIEH-361 works to resolve this issue. AND if not then the investigation to resolve the issue.
      Show
      T-shirt estimate is based on validating UIEH-361 works to resolve this issue. AND if not then the investigation to resolve the issue.

      Description

      This seems pretty strange but when we try to update a custom package from UI-Eholdings, things seem to be working fine.

      However, when we run server on local using latest master, send a PUT request using Postman, we get a 200 response but none of the fields actually get updated.

      For Example: PUT http://0.0.0.0:8081/eholdings/packages/123355-2848228

      Request Body:

      {
      	"data": {
      		"type": "packages",
      		"attributes": {
                  "name": "SD's test package for documentation",
                  "contentType": "E-Book",
      			"customCoverage": {
      				"beginCoverage": "2003-01-01",
      				"endCoverage": "2003-12-01"
      			},
      			"isSelected": true,
      			"allowKbToAddTitles": true,
      			"visibilityData": {
      				"isHidden": true
      			}
      		}
      	}
      }
      

      Response: 200 OK

      {
      "data": {
      "id": "123355-2848228",
      "type": "packages",
      "attributes": {
      "contentType": "E-Journal",
      "customCoverage": {
      "beginCoverage": "2003-01-01",
      "endCoverage": "2004-01-01"
      },
      "isCustom": true,
      "isSelected": true,
      "name": "SD's test package for documentation again",
      "packageId": 2848228,
      "packageType": "Custom",
      "providerId": 123355,
      "providerName": "API DEV CORPORATE CUSTOMER",
      "selectedCount": 0,
      "titleCount": 0,
      "vendorId": 123355,
      "vendorName": "API DEV CORPORATE CUSTOMER",
      "visibilityData": {
      "isHidden": true,
      "reason": ""
      },
      "allowKbToAddTitles": false
      },
      "relationships": {
      "resources": {
      "meta": {
      "included": false
      }
      },
      "vendor": {
      "meta": {
      "included": false
      }
      },
      "provider": {
      "meta": {
      "included": false
      }
      }
      }
      },
      "jsonapi": {
      "version": "1.0"
      }
      }
      

      I get similar response when I do a GET after the PUT:

      GET http://0.0.0.0:8081/eholdings/packages/123355-2848228

      {
      "data": {
      "id": "123355-2848228",
      "type": "packages",
      "attributes": {
      "contentType": "E-Journal",
      "customCoverage": {
      "beginCoverage": "2003-01-01",
      "endCoverage": "2004-01-01"
      },
      "isCustom": true,
      "isSelected": true,
      "name": "SD's test package for documentation again",
      "packageId": 2848228,
      "packageType": "Custom",
      "providerId": 123355,
      "providerName": "API DEV CORPORATE CUSTOMER",
      "selectedCount": 0,
      "titleCount": 0,
      "vendorId": 123355,
      "vendorName": "API DEV CORPORATE CUSTOMER",
      "visibilityData": {
      "isHidden": true,
      "reason": ""
      },
      "allowKbToAddTitles": false
      },
      "relationships": {
      "resources": {
      "meta": {
      "included": false
      }
      },
      "vendor": {
      "meta": {
      "included": false
      }
      },
      "provider": {
      "meta": {
      "included": false
      }
      }
      }
      },
      "jsonapi": {
      "version": "1.0"
      }
      }
      

        TestRail: Results

          Attachments

            Activity

              People

              Assignee:
              elrickvm Elrick Ryan
              Reporter:
              sduvvuri Sobha Duvvuri
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  TestRail: Runs

                    TestRail: Cases