Uploaded image for project: 'mod-oai-pmh'
  1. mod-oai-pmh
  2. MODOAIPMH-258

Clean data for outdated requests from instance table

    XMLWordPrintable

    Details

    • Type: Story
    • Status: Closed (View Workflow)
    • Priority: P2
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 3.2.5
    • Labels:
      None
    • Template:
    • Sprint:
      Concorde - Sprint 102, Concorde - Sprint 103
    • Story Points:
      3
    • Development Team:
      Concorde

      Description

      Background: After implementation of MODOAIPMH-202, there is a table in which all ids which fits request params are inserted on first request to oai-pmh. In the second and all consequent requests are executed, this ids are processed and removed by batches for every request. But if there is no consequent requests with resumption token, these ids are retained in the table.

      In scope of this story is to provide an endpoint that will allow to run the cleanup manually. In later development this endpoint will be used by a periodic job.

      In order to determine which records can be considered as stale, the endpoint will take date and time stand parameter in the format: YYYY-MM-DDThh:mm:ss following requirements of ISO8601 standard and expressed in UTC timezone.

      Acceptance Criteria

      1. Stale records are deleted
      2. Provide the endpoint to allow to run the cleanup. Later this endpoint will be used to run using a periodic job as well.
      3. Write API test

        TestRail: Results

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                TotoroDev Illia Daliek
                Reporter:
                mikhail.fokanov Mikhail Fokanov
                Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    TestRail: Runs

                      TestRail: Cases