Uploaded image for project: 'mod-data-export'
  1. mod-data-export
  2. MDEXP-261

Create API GET/data-export/logs/{jobExecutionID} for error log handling

    XMLWordPrintable

    Details

    • Type: Story
    • Status: Closed (View Workflow)
    • Priority: P3
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 3.0.0
    • Labels:
      None
    • Template:
      MDEXP story template
    • Sprint:
      Concorde - Sprint 97, Concorde - Sprint 98
    • Story Points:
      3
    • Development Team:
      Concorde

      Description

      Purpose/Overview:
      Create API so that UI can retrieve error log and render it to the user.

      Requirements/Scope:
      1. Errors should be grouped by export job id
      2. Errors should contain following elements:

      • date, time
      • log level (set to ERROR in Q3)
      • reason
      • affected record - if applicable

      Additional information:
      1.Type of errors tracked:

      • Underlying data (missing required data, invalid/duplicate keys, null or empty values, too long/large values)
      • Connectivity issue (no response from db, S3)
      • Creating export file (Storage space)
      • Reading input file (UUID not found, invalid data, cannot find the file for reading, file not found)
      • Mappings (null or empty, too long/large value, unsupported mapping)
        Link to MindMap file: https://drive.google.com/file/d/1WLc1YvhwTL4pAiTBpBsiGMAj5mxBJE3x/view?usp=sharing

      2. Details of affected records are tracked in MDEXP-257 (Instances), MDEXP-259 (Holdings), MDEXP-260 (Items)

      Approach:
      Create an API GET/data-export/logs/

      {jobExecutionID}

      . Come up with a schema to handle all the above types of errors.

      Acceptance criteria:

      • Come up with the schema to handle all the above scenarios
      • API is created
      • Unit and API tests are written

        TestRail: Results

          Attachments

          1. Error logs.pdf
            109 kB
            Magda Zacharska
          2. mdexp-261_empty_error_logs.JPG
            55 kB
            Illia Borysenko

            Issue Links

              Activity

                People

                Assignee:
                illia.borysenko Illia Borysenko
                Reporter:
                magdaz Magda Zacharska
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    TestRail: Runs

                      TestRail: Cases