Uploaded image for project: 'mod-circulation'
  1. mod-circulation
  2. CIRC-408

Change loan time-based notices processing to support multiple-item notices

    XMLWordPrintable

Details

    • Story
    • Status: Closed (View Workflow)
    • P3
    • Resolution: Done
    • None
    • 16.6.0
    • None
    • EPAM-Veg Sprint 21, EPAM-Veg Sprint 22, EPAM-Veg Sprint 23
    • 3
    • Vega

    Description

      1. Change loan time-based notices processing to support multiple-item notices.
      2. Set userId and triggeringEvent property at the time of creating scheduled notice.
      Approach:

      • Use the endpoint implemented in CIRCSTORE-140 to fetch grouped notices. Fetch scheduled notices of the previous day (nextRunTime property).
      • Collect necessary context for each notice (item, holdings, loan etc.);
      • Convert context to json format to match template for multiple items (UICIRC-304)

      Example of multiple-items notice context:

      {
        "user": {
          "firstName": "Alex"
        },
        "loans": [
          {
            "item": {
              "title": "Age of TV heroes"
            },
            "loan": {
              "dueDate": "07/30/2019 10:00",
              "numberOfRenewalsRemaining": "3"
            }
          },
          {
            "item": {
              "title": "Interesting Times"
            },
            "loan": {
              "dueDate": "08/30/2019 23:59",
              "numberOfRenewalsRemaining": "unlimited"
            }
          },
          {
            "item": {
              "title": "14 cows for America"
            },
            "loan": {
              "dueDate": "08/15/2019 15:00",
              "numberOfRenewalsRemaining": "2"
            }
          }
        ]
      }
      
      

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                Tur Dmytro Tur
                Tur Dmytro Tur
                Darcy Branchini Darcy Branchini
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases