[Instance Audit] Rest Endpoint for history

Description

Query list of diffs per entity by entity identifier from the database with pagination by event date. Return list of diff records, the response should contain 15 records of version history to default

 

Approach

  1. Use the seek method for pagination by event date.

  2. entity identifier - path parameter

  3. event date - query parameter that contains last object’s date from which fetch next records (not including).

Environment

None

Potential Workaround

None

Attachments

8

Checklist

hide

Activity

Show:

Valery_Pilko February 12, 2025 at 10:00 AM

Re-tested on Eureka Snapshot environment - found issue is fixed.
See attached screenshots:

Pavlo Smahin February 10, 2025 at 9:59 AM
Edited

, based on the default should be 10. And you could check that changing the configuration will return a different number of records.

Valery_Pilko February 10, 2025 at 9:56 AM
Edited

Hey
Tested on Snapshot for FOLIO instances, could you fix following issues?

  1. Invalid UUID is used in GET request - code of returned response is “500”. I would expect “400” code. Message is ok.

     

  2. Only 10 of Instance Updates are returned in response of GET ‘/audit-data/inventory/instance/a345749d-e178-41d4-8f38-7bbb0e7d32a7' by default.
    According to description response must contain 15 Instance “Updates”.
    I’ve updated record from screenshot more than 11 times, but only 10 “Updates” are returned in response:

    UPD: 10 is expected, according to

 

Following scenarios are verified:

  1. Create new Instance - all fields of Instance record are existing in response, works as expected.

     

  2. Update existing instance (add, update or delete some field) - works as expected. Added, updated fields are existing in response. Removed fields are removed.

     

  3. Filtering by “eventTs” works as specified in description - update of entered Event time stamp is not included in response, but all preceding updates are included.

Pavlo Smahin January 8, 2025 at 10:53 AM

, how “with pagination by quarter of the year” should be implemented, could you provide more details?

Done

Details

Assignee

Reporter

Priority

Story Points

Sprint

Development Team

Spitfire

Fix versions

Release

Sunflower (R1 2025)

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created December 19, 2024 at 10:10 AM
Updated March 14, 2025 at 3:50 AM
Resolved February 13, 2025 at 3:38 PM
TestRail: Cases
TestRail: Runs