[Authority Audit] Consume domain event

Description

To allow efficient access to the data in the audit table it is required to:

  1. Create a table with partitioning by UUID, date ranges (a quarter of a year) ( )

  2. Create Kafka consumer for domain event

  3. Persist entity diff

Acceptance Criteria:

  1. Entity diff object should contain "added", "removed", and "modified" lists with old-new values for any affected field

  2. Changes in metadata should be ignored

  3. Audit records related to the "create" event should contain only "added" sub-objects without previous values

  4. Audit records related to "delete" events should contain no body

Environment

None

Potential Workaround

None

Checklist

hide

Activity

Show:

Natalia Zaitseva January 6, 2025 at 3:45 PM

will be fully covered by

Won't Do

Details

Assignee

Reporter

Priority

Development Team

None

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created December 19, 2024 at 10:10 AM
Updated January 6, 2025 at 3:45 PM
Resolved January 6, 2025 at 3:45 PM
TestRail: Cases
TestRail: Runs