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
Breakdown Positive Reactions in the API #6303
Comments
|
Thanks for the issue! We'll take your request into consideration and follow up if we decide to tackle this issue. To our amazing contributors: issues labeled To claim an issue to work on, please leave a comment. If you've claimed the issue and need help, please ping @thepracticaldev/oss and we will follow up within 3 business days. For full info on how to contribute, please check out our contributors guide. |
|
Hey @rhymes could you assign this one to me? |
|
@lucasqueiroz I assigned you the issue. Re GitPod, you can sign in with your GitHub account (via OAuth). |
I tried logging in with GitHub but it redirects me to a 404 page. Do I have to update any environment variable to be able to log in? Thanks |
Sorry, what exactly redirects you to a 404 page? Gitpod itself or the Forem app running inside Gitpod? To set up the Forem app for Github login, please follow the guide from our docs: |
Thanks, somehow I missed that doc page |
|
I finally got it to work locally and was able to change some things on the API to test it out. Do you guys have any idea on how it should be displayed? {
[...]
"public_reactions": {
"count": 2,
"reactions": {
"0": {
"user": {
"name": "Lucas Queiroz",
[...]
},
"category": "like"
},
[...]
}
}Or maybe "public_reactions": {
"count": 2,
"reactions": {
"like": {
"user": {
"name": "Lucas Queiroz",
[...]
},
},
"unicorn": [...],
[...]
}
}What do you think? |
|
I think I'd go with number 1, but have |
So something like {
[...]
"reactions": [
{
"user": {
"name": "Lucas Queiroz",
[...]
},
"category": "like"
},
[...]
]
}? I think this is a good approach. I'll start this way, let me know if there's a better way to use it. Thanks |
|
How about something like this: The advantage of this is you get the total count of reactions and the count by each reaction type without having to do any additional work on the consumer side. Then you can later add filtering on the API calls to decide whether or not to even return the users and other data points or just the counts. |
|
Hey @lucasqueiroz Thanks so much for you work on this issue so far. We recently implemented a new internal RFC process for feature requests. With this new process we are figuring out when a Forem team member or an outside contributor should work on a feature request. Given this process I am going to unassign you from this issue for now. |
|
Thanks again for this request. Since this one has been around a while without much traction I am going to close it here. |
Is your feature request related to a problem? Please describe.
For building functionality into the Unofficial DEV Social Badge, it'd be nice to offer a breakdown of what the positive reactions are.
Describe the solution you'd like
Include the breakdown of the positive reactions in the articles API endpoints
Describe alternatives you've considered
Scraping. But, again, I don't want to go down that path.
The text was updated successfully, but these errors were encountered: