You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
User wants to quickly react to a comment on another activity using emojis/ social media-style reactions 👍 👎 💯
Problems
We need to store reactions somewhere
Proposal
Use activities.data.reactions to store a list of reactions in a form of
{
"user": "Username",
"fullName": "User Full Name",
"reaction": "middle_finger"
}
The same structure will be queriable using graphql on any activity (list[ReactionModel])
A set of endpoints to handle storing the data
[POST] /api/projects/{projectName}/activities/{activityId}/reactions with {"reaction": "thumbup"} payload
[DELETE] /api/projects/{projectName}/activities/{activityId}/reactions/{reaction} where {reaction} is the same value as provided while creating the reaction
reaction is a simple string, no special characters apart from underscores/hyphens
The text was updated successfully, but these errors were encountered:
Story
User wants to quickly react to a comment on another activity using emojis/ social media-style reactions 👍 👎 💯
Problems
We need to store reactions somewhere
Proposal
Use
activities.data.reactions
to store a list of reactions in a form ofThe same structure will be queriable using graphql on any activity (list[ReactionModel])
A set of endpoints to handle storing the data
[POST] /api/projects/{projectName}/activities/{activityId}/reactions
with{"reaction": "thumbup"}
payload[DELETE] /api/projects/{projectName}/activities/{activityId}/reactions/{reaction}
where {reaction} is the same value as provided while creating the reactionreaction is a simple string, no special characters apart from underscores/hyphens
The text was updated successfully, but these errors were encountered: