Uploaded image for project: 'mod-circulation-storage'
  1. mod-circulation-storage
  2. CIRCSTORE-140

Implement an endpoint for searching scheduled notices in groups

    XMLWordPrintable

Details

    • Story
    • Status: Closed (View Workflow)
    • P3
    • Resolution: Won't Do
    • None
    • None
    • None
    • EPAM-Veg Sprint 21, EPAM-Veg Sprint 22
    • 5
    • Vega

    Description

      1. Implement an endpoint for searching scheduled notices in groups. Grouping should be performed by the following properties: userId, templateId, triggeringEvent, timing, format.
      2. Expand scheduled notice schema with userId parameter (UUID string) and add "Due date" option to triggeringEvent property.

      Query parameters:

      • query: CQL query to filter scheduled notices;
      • groupSizeLimit: limit for group size;
      • limit: limit for number of groups.

      Example of response:

      {
        "noticeGroups": [
          {
            "userId": "54f65a75-f35b-4f56-86a6-fa4a3d957e57",
            "templateId": "87c1ac4b-3f03-45c5-ab37-3189591d5b4e",
            "triggeringEvent": "Due date",
            "timing": "Before",
            "format": "Email",
            "scheduledNotices": [
              {
                "id": "bedfc14c-4e78-44d8-80e3-f9c2f9399a59",
                "loanId": "aa26986e-bd92-454c-a367-bf1eaf2eaa6a",
                "userId": "54f65a75-f35b-4f56-86a6-fa4a3d957e57",
                "nextRunTime": "2000-07-17T10:15:10.000+0000",
                "triggeringEvent": "Due date",
                "noticeConfig": {
                  "timing": "Before",
                  "templateId": "87c1ac4b-3f03-45c5-ab37-3189591d5b4e",
                  "format": "Email",
                  "sendInRealTime": false
                }
              },
              {
                "id": "8ecb99ee-0ceb-414b-9068-07c00b64547b",
                "loanId": "aa26986e-bd92-454c-a367-bf1eaf2eaa6a",
                "userId": "54f65a75-f35b-4f56-86a6-fa4a3d957e57",
                "nextRunTime": "2000-07-17T10:15:10.000+0000",
                "triggeringEvent": "Due date",
                "noticeConfig": {
                  "timing": "Before",
                  "templateId": "87c1ac4b-3f03-45c5-ab37-3189591d5b4e",
                  "format": "Email",
                  "sendInRealTime": false
                }
              }
            ],
            "totalRecords": 153
          },
          {
            "userId": "66fe5bd9-1129-4b40-b54d-05b4c358463c",
            "templateId": "0807fe0a-4124-472e-8dba-150118fe0bf8",
            "triggeringEvent": "Due date",
            "timing": "Before",
            "format": "Email",
            "scheduledNotices": [
              {
                "id": "bedfc14c-4e78-44d8-80e3-f9c2f9399a59",
                "loanId": "aa26986e-bd92-454c-a367-bf1eaf2eaa6a",
                "userId": "66fe5bd9-1129-4b40-b54d-05b4c358463c",
                "nextRunTime": "2000-07-17T10:15:10.000+0000",
                "triggeringEvent": "Due date",
                "noticeConfig": {
                  "timing": "Before",
                  "templateId": "0807fe0a-4124-472e-8dba-150118fe0bf8",
                  "format": "Email",
                  "sendInRealTime": false
                }
              },
              {
                "id": "8ecb99ee-0ceb-414b-9068-07c00b64547b",
                "loanId": "aa26986e-bd92-454c-a367-bf1eaf2eaa6a",
                "userId": "66fe5bd9-1129-4b40-b54d-05b4c358463c",
                "nextRunTime": "2000-07-17T10:15:10.000+0000",
                "triggeringEvent": "Due date",
                "noticeConfig": {
                  "timing": "Before",
                  "templateId": "0807fe0a-4124-472e-8dba-150118fe0bf8",
                  "format": "Email",
                  "sendInRealTime": false
                }
              }
            ],
            "totalRecords": 57
          }
        ],
        "totalRecords": 10
      }
      

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                Tur Dmytro Tur
                Tur Dmytro Tur
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases