Issue Summary
The frontend team requires a createdAt timestamp field and "profilePictureURL" for the friendRequest object to calculate the time elapsed since an invitation was sent.
Task Description
- Add a
createdAt field to the friendRequest object in the backend. This field should be a LocalDateTime indicating when the friend request was created.
- Add a
profilePictureURL to the friendRequest object in the backend. This field should be a string indicating the url of the sender's profile picture.
Current Object Structure
{
"friendRequestUsername": "string",
"friendRequestUserId": "string",
"status": "SENT",
"requestId": "string"
}
Updated Object Structure
{
"friendRequestUsername": "string",
"friendRequestUserId": "string",
"status": "SENT",
"requestId": "string",
"createdAt": "LocalDateTime" // Example: "2023-10-05T14:48:00"
"profilePictureURL" : "string"
}
Acceptance Criteria
Notes
- Use the appropriate format for
LocalDateTime.
- Coordinate with the frontend team to ensure they can access and use the new field appropriately.
Issue Summary
The frontend team requires a
createdAttimestamp field and "profilePictureURL" for thefriendRequestobject to calculate the time elapsed since an invitation was sent.Task Description
createdAtfield to thefriendRequestobject in the backend. This field should be aLocalDateTimeindicating when the friend request was created.profilePictureURLto thefriendRequestobject in the backend. This field should be astringindicating the url of the sender's profile picture.Current Object Structure
{ "friendRequestUsername": "string", "friendRequestUserId": "string", "status": "SENT", "requestId": "string" }Updated Object Structure
{ "friendRequestUsername": "string", "friendRequestUserId": "string", "status": "SENT", "requestId": "string", "createdAt": "LocalDateTime" // Example: "2023-10-05T14:48:00" "profilePictureURL" : "string" }Acceptance Criteria
createdAtfield to thefriendRequestobject as aLocalDateTime.profilePictureURLfield to thefriendRequestobject as astring.createdAtupon creation of the friend request.profilePictureURLupon creation of the friend request.Notes
LocalDateTime.