Real-Dev-Squad / website-backend

The backend code for all our website-related apps
https://api.realdevsquad.com/
MIT License
55 stars 258 forks source link

Refactor User Logs for Timeline Feature and Standardize Log Collection #2193

Open vinit717 opened 1 month ago

vinit717 commented 1 month ago

Issue Description

To implement a user timeline feature or any logs query functionality, we need to refactor the current user activity logs. The existing log storage is not consistent with the data model and lacks essential fields like metadata, timestamps, and proper key-value structure. The current logging implementation at certain functions is inadequate and needs to be refactored to align with the desired user timeline functionality.

Expected Behavior

Current Behavior

Screenshots

image image

Reproducibility

Steps to Reproduce

  1. Check existing log storage in functions where user activity is logged.
  2. Note the absence or inconsistency in key fields like meta and created_at, and body.

Severity/Priority

Checklist