Details
-
Type:
Story
-
Status: Closed (View Workflow)
-
Priority:
P3
-
Resolution: Done
-
Affects Version/s: None
-
Template:customfield_11100 17589
-
Sprint:eHoldings Sprint 40
-
Story Points:2
-
Analysis Estimate:Small < 3 days
-
Estimation Notes and Assumptions:
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" } }