Uploaded image for project: 'ERM Platform'
  1. ERM Platform
  2. ERM-276 Investigate cause and impact of date/timezone issues
  3. ERM-189

Custom coverage dates display with a time offset in some environments

    XMLWordPrintable

Details

    • ERM Sprint 66, ERM Sprint 67, ERM Sprint 68
    • 3
    • Bienenvolk

    Description

      This problem only seems to appear in some environments. To replicate:

      1. Login to http://folio-snapshot-stable.aws.indexdata.com/erm/eresources?filters=class.No%2Ctype.Journal&sort=Name
      2. Select a journal title and add to basket (title not package)
      3. Go to basket
      4. Choose to create new agreement and add title, start date, status
      5. Open Agreement line and add custom coverage for (e.g.) 1st Jan 2018 - 30th June 2018
      6. Click "Create Agreement" button
      7. View Agreement lines in newly created agreement - observe that the custom coverage dates are displayed as 31st Dec 2017 - 29th June 2018

      Example: http://folio-snapshot-stable.aws.indexdata.com/erm/agreements/view/2c9180ad6a002857016a123933091c9d

      See attached screenshot for how custom coverage displays in UI

      Request for entitlements JSON: http://folio-snapshot-644.aws.indexdata.com:9130/erm/entitlements?match=owner.id&term=2c9180ad6a002857016a123933091c9d

      JSON Response:
      ```

      [
        {
          "id": "2c9180ad6a002857016a123933091c9e",
          "owner": {
            "id": "2c9180ad6a002857016a123933091c9d",
            "contacts": [],
            "tags": [],
            "startDate": "2019-04-01T00:00:00Z",
            "linkedLicenses": [],
            "items": [
              {
                "id": "2c9180ad6a002857016a123933091c9e"
              }
            ],
            "docs": [],
            "historyLines": [],
            "name": "Custom coverage test 2",
            "orgs": [],
            "agreementStatus": {
              "id": "2c9180ad6a002857016a0028d2470010",
              "value": "active",
              "label": "Active"
            },
            "externalLicenseDocs": []
          },
          "resource": {
            "id": "2c9180ad6a002857016a005fce5908d8",
            "class": "org.olf.kb.PackageContentItem",
            "name": "'Acquisitions' on Platform 'JSTOR' in Package JSTOR : Arts & Sciences V Collection : NK",
            "coverage": [
              {
                "id": "2c9180ad6a002857016a005fdaa40d8b",
                "startDate": "1974-01-01",
                "endDate": "1996-12-31",
                "startVolume": "1",
                "endVolume": "24",
                "summary": "v1/i*/1974-01-01 - v24/i*/1996-12-31"
              },
              {
                "id": "2c9180ad6a002857016a005fce5c08da",
                "startDate": "1984-01-01",
                "endDate": "1996-12-31",
                "startVolume": "1983",
                "endVolume": "1995",
                "summary": "v1983/i*/1984-01-01 - v1995/i*/1996-12-31"
              }
            ],
            "customCoverage": false,
            "_object": {
              "id": "2c9180ad6a002857016a005fce5908d8",
              "dateCreated": "2019-04-09T04:33:59Z",
              "lastUpdated": "2019-04-09T04:33:59Z",
              "depth": "Fulltext",
              "coverage": [
                {
                  "id": "2c9180ad6a002857016a005fdaa40d8b",
                  "startDate": "1974-01-01",
                  "endDate": "1996-12-31",
                  "startVolume": "1",
                  "endVolume": "24",
                  "summary": "v1/i*/1974-01-01 - v24/i*/1996-12-31"
                },
                {
                  "id": "2c9180ad6a002857016a005fce5c08da",
                  "startDate": "1984-01-01",
                  "endDate": "1996-12-31",
                  "startVolume": "1983",
                  "endVolume": "1995",
                  "summary": "v1983/i*/1984-01-01 - v1995/i*/1996-12-31"
                }
              ],
              "pti": {
                "id": "2c9180ad6a002857016a005fce5608d7",
                "dateCreated": "2019-04-09T04:33:59Z",
                "lastUpdated": "2019-04-09T04:33:59Z",
                "platform": {
                  "id": "2c9180ad6a002857016a005fb0a3003f",
                  "name": "JSTOR"
                },
                "coverage": [
                  {
                    "id": "2c9180ad6a002857016a005fdaa30d8a",
                    "startDate": "1974-01-01",
                    "endDate": "1996-12-31",
                    "startVolume": "1",
                    "endVolume": "24",
                    "summary": "v1/i*/1974-01-01 - v24/i*/1996-12-31"
                  },
                  {
                    "id": "2c9180ad6a002857016a005fce5b08d9",
                    "startDate": "1984-01-01",
                    "endDate": "1996-12-31",
                    "startVolume": "1983",
                    "endVolume": "1995",
                    "summary": "v1983/i*/1984-01-01 - v1995/i*/1996-12-31"
                  }
                ],
                "entitlements": [],
                "titleInstance": {
                  "id": "2c9180ad6a002857016a005fce4408cf",
                  "subType": {
                    "id": "2c9180ad6a002857016a0028d29e0020",
                    "value": "electronic",
                    "label": "Electronic"
                  },
                  "dateCreated": "2019-04-09T04:33:59Z",
                  "lastUpdated": "2019-04-09T04:33:59Z",
                  "identifiers": [
                    {
                      "title": {
                        "id": "2c9180ad6a002857016a005fce4408cf"
                      },
                      "status": {
                        "id": "2c9180ad6a002857016a005fb0000036",
                        "value": "approved",
                        "label": "Approved"
                      },
                      "identifier": {
                        "value": "218251",
                        "ns": {
                          "value": "ezb"
                        }
                      }
                    },
                    {
                      "title": {
                        "id": "2c9180ad6a002857016a005fce4408cf"
                      },
                      "status": {
                        "id": "2c9180ad6a002857016a005fb0000036",
                        "value": "approved",
                        "label": "Approved"
                      },
                      "identifier": {
                        "value": "2460806-3",
                        "ns": {
                          "value": "zdb"
                        }
                      }
                    }
                  ],
                  "coverage": [
                    {
                      "id": "2c9180ad6a002857016a005fdaa60d8c"
                    },
                    {
                      "id": "2c9180ad6a002857016a005fce5e08db"
                    }
                  ],
                  "name": "Acquisitions",
                  "type": {
                    "id": "2c9180ad6a002857016a0028d2a50022",
                    "value": "journal",
                    "label": "Journal"
                  },
                  "work": {
                    "id": "2c9180ad6a002857016a005fce4108ce"
                  },
                  "platformInstances": [
                    {
                      "id": "2c9180ad6a002857016a005fce5608d7"
                    }
                  ]
                },
                "url": "http://www.jstor.org/journals/03621979.html",
                "name": "'Acquisitions' on Platform 'JSTOR'",
                "packageOccurences": [
                  {
                    "id": "2c9180ad6a002857016a005fce5908d8"
                  }
                ]
              },
              "pkg": {
                "id": "2c9180ad6a002857016a005fcdf508b1",
                "dateCreated": "2019-04-09T04:33:59Z",
                "lastUpdated": "2019-04-09T04:33:59Z",
                "vendor": {
                  "id": "2c9180ad6a002857016a005fac69002f",
                  "name": "JSTOR"
                },
                "coverage": [],
                "source": "GOKb",
                "remoteKb": {
                  "id": "2c9180ad6a002857016a0028d343002d",
                  "cursor": "2019-04-09T04:35:55+0000",
                  "active": true,
                  "activationEnabled": false,
                  "name": "GOKb_TEST",
                  "type": "org.olf.kb.adapters.GOKbOAIAdapter",
                  "fullPrefix": "gokb",
                  "uri": "http://gokbt.gbv.de/gokb/oai/index/packages",
                  "supportsHarvesting": true,
                  "rectype": 1
                },
                "entitlements": [],
                "name": "JSTOR : Arts & Sciences V Collection : NK",
                "reference": "JSTOR_:_Arts_&_Sciences_V_Collection_:_NK"
              },
              "addedTimestamp": 1554784439795,
              "entitlements": [
                {
                  "id": "2c9180ad6a002857016a123933091c9e"
                }
              ],
              "name": "'Acquisitions' on Platform 'JSTOR' in Package JSTOR : Arts & Sciences V Collection : NK",
              "lastSeenTimestamp": 1554784439795
            }
          },
          "coverage": [
            {
              "id": "2c9180ad6a002857016a123933091c9f",
              "startDate": "2018-01-01",
              "endDate": "2018-06-30",
              "summary": "v*/i*/2018-01-01 - v*/i*/2018-06-30"
            }
          ],
          "poLines": [],
          "customCoverage": true,
          "explanation": "Agreement includes this item from a package specifically",
          "startDate": null,
          "endDate": null,
          "contentUpdated": null,
          "haveAccess": true
        }
      ]
      

      ```

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                sosguthorpe Steve Osguthorpe
                ostephens Owen Stephens
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases