-
-
Notifications
You must be signed in to change notification settings - Fork 29
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
Repo Voting #9
Comments
I will setup the project locally and try to fix this bug tonight. |
Now that I think about it, the backend bug isn't a blocker for this feature. We can implement this anyway; and when the bug gets fixed, we won't have to change our code. I'll get started with this soon. |
I was going through api.opensauced docs to implement this - I want an endpoint to check if a user has voted a repo already. In my demo I was doing it by calling the Is there an endpoint like |
No, and, unfortunately, the current design across the frontend implies we somehow cache the |
So you recommend getting 1000 vote entries from the api for the user and finding the repo in one of those? |
Get all current user has voted, 1000 at a time (per page limit)
Yes, it could be set up as a Map or Set and be very efficient |
https://github.com/open-sauced/api.opensauced.pizza/issues/122
The text was updated successfully, but these errors were encountered: