-
Notifications
You must be signed in to change notification settings - Fork 1
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
update save votes endpoint #189
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Additionaly I encounter the following error when hitting the Save All Votes
button in the UI using this branch (in branch develop it works):
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>Cannot GET /api/users/0615974f-1517-41e9-a701-3950ea783c34/cycles/a0767d41-a775-4319-9705-e4eb882f7255/votes</pre>
</body>
</html>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! What I also like about this PR is that we seperate thequite complex former saveVote
function into smaller more managable parts.
closes #184
overview
accept saving votes as an array of votes you want to save, this will help the frontend not have to loop over changes and just be able to send everything in one request
breaking api changes
The reason why it was moved there it made more sense in hierarchy
function overviews