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
Logs should follow a consistent data model with appropriate key-value pairs.
Each log entry should contain essential fields such as meta, created_at, and a precise timestamp etc.
Refactored logs should allow for a seamless generation of user timelines, capturing all relevant user activities.
Current Behavior
Logs are not stored in a structured manner and lack uniformity across different parts of the application.
Critical fields like meta, created_at, and timestamp are either missing or inconsistent.
This makes it challenging to build a reliable user timeline and track activity efficiently.
Screenshots
Reproducibility
[x] This issue is reproducible
[ ] This issue is not reproducible
Steps to Reproduce
Check existing log storage in functions where user activity is logged.
Note the absence or inconsistency in key fields like meta and created_at, and body.
Severity/Priority
[ ] Critical
[ ] High
[x] Medium
[ ] Low
Checklist
[x] I have read and followed the project's code of conduct.
[x] I have searched for similar issues before creating this one.
[x] I have provided all the necessary information to understand and reproduce the issue.
[x] I am willing to contribute to the resolution of this issue.
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
meta
,created_at
, and a precisetimestamp
etc.Current Behavior
meta
,created_at
, andtimestamp
are either missing or inconsistent.Screenshots
Reproducibility
Steps to Reproduce
meta
andcreated_at
, andbody
.Severity/Priority
Checklist