Versions history of MARC, FOLIO record is not deleted after Retention period gone

Description

Overview: "Version history" of "MARC bibliographic" record is NOT cleared after retention period is gone (was set to "1" day).

Issue was reproduced on Member tenant (College) of ECS Sunflower bugfest environment.

Steps to reproduce:

  1. Authorize as admin user in Member tenant of ECS environment

  2. Create MARC bib record

  3. Update MARC bib record (via Quickmarc) several times

  4. Check “Version history” of updated record and note number of versions.

  5. Send following PUT request to set minimal Retention Period (1 day) via "Postman":

    • Endpoint: "/audit/config/groups/audit.inventory/settings/records.retention.period"

    • Body:
      {
      "key": "records.retention.period",
      "value": 1,
      "type": "INTEGER",
      "description": "Retention period for inventory record in days",
      "groupId": "audit.inventory"
      }

  6. After specified retention period is gone (after 1+ days):
    - Find and open view source pane of updated MARC bib record
    - Click on the “Version history” button

Expected result: "Version history" doesn't contain any cards (they were deleted due to "Retention period")
Actual result: “Version history” was not deleted.
See record from the test on Screenshot:

https://bugfest-sunflower-consortium.int.aws.folio.org/inventory/viewsource/5a8e29f3-6121-4bb6-babc-876198b9b1c5 (on College tenant)
See specified retention period on Member tenant:

Additional information:
Timer exists in response of GET ‘/scheduler/timers?limit=100’:

404 error is returned for POST to “/audit-data/cleanup/timer“ in logs:

Logs:

CSP Request Details

None

CSP Rejection Details

None

Potential Workaround

None

Attachments

5

Checklist

hide

Activity

Show:

Artem Akimov 3 days ago

Following information added to sidecar env setup. Changes will be applied during next update. Thanks!

Artem Akimov 3 days ago

hello . Can you please include this information into release notes? CC

Dima Tkachenko 4 days ago
Edited

sidecar of the scheduler should have the following env var to work properly:

ROUTING_DYNAMIC_ENABLED=true

https://github.com/folio-org/folio-module-sidecar?tab=readme-ov-file#environment-variables

Details

Assignee

Reporter

Priority

Development Team

EBSCO - FSE

Release

Sunflower (R1 2025) Bug Fix

RCA Group

Environmental/deployment issue

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created 4 days ago
Updated 19 hours ago
TestRail: Cases
TestRail: Runs