Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support reacting to comments with emoji #81

Open
gsaslis opened this issue Sep 21, 2023 · 2 comments
Open

Support reacting to comments with emoji #81

gsaslis opened this issue Sep 21, 2023 · 2 comments
Labels
enhancement New feature extending the app's current capabilities
Milestone

Comments

@gsaslis
Copy link
Collaborator

gsaslis commented Sep 21, 2023

It should be possible to add/remove emoji reactions to patch comments.

@gsaslis gsaslis converted this from a draft issue Sep 21, 2023
@gsaslis gsaslis added the enhancement New feature extending the app's current capabilities label Sep 21, 2023
@gsaslis gsaslis moved this from 📋 Up Next to 🆕 Backlog in Radicle VS Code Extension Sep 21, 2023
@gsaslis
Copy link
Collaborator Author

gsaslis commented Dec 13, 2023

@Stelios123 could you please help here by providing the API endpoints and an example request wth payload used for this functionality?

@gsaslis gsaslis moved this from 🆕 Backlog to 📋 Up Next in Radicle VS Code Extension Dec 13, 2023
@Stelios123
Copy link

The API endpoint will change based on this conversation .

Currently for reactions we are using this endpoint for patches /api/v1/projects/<PROJECT_ID>/patches/<PATCHES_ID>
This is a PATCH request with this parameters

{
"type" : "revision.comment.react",
"revision" : "REVISION_ID",
"comment" : "COMMENT_ID",
"reaction" : "EMOJI UNICODE",
"active" : true / false
}

Based on active variable you can add / remove emoji

For issues we are using /api/v1/projects/<PROJECT_ID>/issues/<ISSUE_ID>. This is also a PATCH REQUEST
and the parameters

{
"type" : "comment.react",
"id": "DISCUSSION_ID",
"reaction" : "EMOJI UNICODE",
"active" : true / false
}

Our code : Patch comment react Issue comment react

@maninak maninak changed the title Emoji reactions to comments Post emoji reactions to comments Apr 30, 2024
@maninak maninak changed the title Post emoji reactions to comments Allow reacting to comments with emoji Apr 30, 2024
@maninak maninak changed the title Allow reacting to comments with emoji Support reacting to comments with emoji Apr 30, 2024
@gsaslis gsaslis modified the milestones: v0.6, v0.8 Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature extending the app's current capabilities
Projects
Status: 🆕 Backlog
Development

No branches or pull requests

2 participants