Skip to content

fix: last update date for kyp

Veeramallu Karthikeya requested to merge fix/kyp_date into develop

Merge Request

Overview

This MR introduces backend support for handling and exposing the latest updated date information in KYP records. The update improves data traceability, consistency, and transparency by ensuring API responses include accurate timestamp details required by the frontend.


What does this MR do and why?

Previously, the backend response for KYP records did not consistently provide the latest updated timestamp. This created difficulties in identifying when records were last modified and caused inconsistencies between frontend display requirements and backend data responses.

This MR updates the backend flow to include the latest updated date in the KYP API response.

Motivation

  • Improve visibility of KYP record updates
  • Ensure frontend/backend data consistency
  • Provide reliable timestamp metadata
  • Improve overall auditability of record changes

Approach Taken

  • Updated response schemas/models
  • Added timestamp handling in service/query layer
  • Ensured null-safe datetime handling
  • Preserved backward compatibility with existing API behavior

Changes Made

  • Added latest updated date field in KYP API response
  • Updated backend schemas/models for timestamp support
  • Modified service/repository logic to fetch updated timestamps
  • Improved datetime serialization handling
  • Added safe handling for nullable timestamp values

Technical Details

  • Updated response models to include latest updated timestamp
  • Ensured proper ISO datetime serialization
  • Added query/service layer support for updated date retrieval
  • Maintained compatibility with existing database structure
  • No breaking API changes introduced

Type of Change

  • 🐛 Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • 💥 Breaking change (fix or feature that would cause existing functionality to change)
  • 📝 Documentation update
  • ️ Refactor (no functional changes)
  • Performance improvement
  • 🧪 Test update
  • 🔧 Configuration change
  • 🚨 Security fix
  • 🗑️ Deprecation (removing deprecated code)

Related Issues / References

  • Related to KYP latest updated date visibility improvements

How to Validate Locally

  1. Checkout the branch
git checkout <branch-name>

Merge request reports

Loading