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

BUG:Package Edit: Visibility,Select New Titles Toggle Switches and Coverage Dates are not working

    XMLWordPrintable

    Details

    • Template:
    • Sprint:
      eHoldings Sprint 39
    • Story Points:
      5

      Description

      .Go to Package Details Record (for example I went to 'Academic Academy of Orthopaedic Surgeons')
      From either in-line edit or full page edit Toggle Visibility or Automatically select new titles or attempt to set custom coverage.
      Note - in either case the toggle status does not update to the new setting or the custom coverage settings do not get applied
      No error message is displayed

      Sample PUT Request to mod-kb-ebsco to toggle allowKbToAddTitles to false

      PUT https://okapi.frontside.io/eholdings/packages/114569-1597443
      

      Body - Request Payload (note - attempting to set allowKbToAddTitles to false)

      {"data":{"id":"114569-1597443","type":"packages","attributes":{"allowKbToAddTitles":false,"contentType":"Aggregated Full Text","customCoverage":{"beginCoverage":"","endCoverage":""},"isCustom":false,"isSelected":true,"name":"American Academy of Orthopaedic Surgeons","packageType":"Variable","providerId":114569,"providerName":"American Academy of Orthopaedic Surgeons","selectedCount":100,"titleCount":100,"visibilityData":{"isHidden":false,"reason":""}}}}
      

      Response is a 200 and body is as follows (note - allowKbToAddTitles = true in the response, whereas PUT request body attempted to toggle to false:

      {"data":{"id":"114569-1597443","type":"packages","attributes":{"allowKbToAddTitles":true,"contentType":"Aggregated Full Text","customCoverage":{"beginCoverage":"","endCoverage":""},"isCustom":false,"isSelected":true,"name":"American Academy of Orthopaedic Surgeons","packageId":1597443,"packageType":"Variable","providerId":114569,"providerName":"American Academy of Orthopaedic Surgeons","selectedCount":100,"titleCount":100,"vendorId":114569,"vendorName":"American Academy of Orthopaedic Surgeons","visibilityData":{"isHidden":false,"reason":""}},"relationships":{"resources":{"meta":{"included":false}},"vendor":{"meta":{"included":false}},"provider":{"meta":{"included":false}}}},"jsonapi":{"version":"1.0"}}
      

      Sample Request Payload for a coverage date update (note setting of customCoverage dates)

      {"data":{"id":"114569-1597443","type":"packages","attributes":{"allowKbToAddTitles":null,"contentType":"Aggregated Full Text","customCoverage":{"beginCoverage":"2018-05-01","endCoverage":"2018-05-31"},"isCustom":false,"isSelected":true,"name":"American Academy of Orthopaedic Surgeons","packageType":"Variable","providerId":114569,"providerName":"American Academy of Orthopaedic Surgeons","selectedCount":100,"titleCount":100,"visibilityData":{"isHidden":false,"reason":""}}}}
      

      Response is a 200 and body is as follows (note -customCoverage is not set in the response, whereas PUT request body attempted to set it

      {"data":{"id":"114569-1597443","type":"packages","attributes":{"allowKbToAddTitles":true,"contentType":"Aggregated Full Text","customCoverage":{"beginCoverage":"","endCoverage":""},"isCustom":false,"isSelected":true,"name":"American Academy of Orthopaedic Surgeons","packageId":1597443,"packageType":"Variable","providerId":114569,"providerName":"American Academy of Orthopaedic Surgeons","selectedCount":100,"titleCount":100,"vendorId":114569,"vendorName":"American Academy of Orthopaedic Surgeons","visibilityData":{"isHidden":false,"reason":""}},"relationships":{"resources":{"meta":{"included":false}},"vendor":{"meta":{"included":false}},"provider":{"meta":{"included":false}}}},"jsonapi":{"version":"1.0"}}
      

      Some added Notes - trying to figure out why existing unit tests are not failing - I deleted fixture put-package-isselected-toggle-add-titles.yml to re-run/re-record 1 of the packages-spec.rb related test - attached recording from test run (note - there is a 400 bad request from rm api (for the PUT) followed by a successful GET. Looks like an issue here with contentType being set for Managed Package. So this issue may have both front-end and back end problems

      This issue is specific for Managed Packages .

        TestRail: Results

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                joe.lasala Joe LaSala
                Reporter:
                cgodfrey Carole Godfrey
                Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    TestRail: Runs

                      TestRail: Cases