-
Notifications
You must be signed in to change notification settings - Fork 35
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
Design public API feedback voting #542
Comments
@apinf/developers do you have any ideas how to sort the top voted Feedback submissions? Please review the implementation notes to get an idea of my thinking. |
@brylie I think it is more important to have the voting in place than to be able to sort according to votes, if sorting is blocking the implementation. Besides, we have quite a number of UI improvements in backlog that in my opinion have a higher priority than sorting the votes, for example enhancements for user profile. |
Without sorting is fine for now. |
@frenchbread for future reference, will you please provide a link to the article you mentioned about MongoDB math operations? |
I was talking about an online course MongoDB for Node.js developers. Course is free but requires you to be registered for it to view its materials. I found a similar article that covers main idea of aggregation principles in mongodb described in this course. |
First version of communication channel between consumers and managers allows consumers to send feedback, request etc. about APIs and managers to view the feedback.
Wireframe
FeedbackVotes collection
This feature may use a new collection called
FeedbackVotes
. Each Feedback Vote document will contain the following fields:Collection helper(s)
The following collection helper will be attached to the Feedback collection:
sumOfVotes()
- adds all vote integers together, returns the sum of all votes as an integerServer method(s)
The following method(s) will be defined on the server:
submitVote(vote)
- takes an integer as an argument, checks whether user has already voted, either updates existing or adds new user votePublication(s)
The following publication(s) will be useful:
Template-level subscription(s)
Each feedback template will subscribe to the
getAllVotesForSingleFeedback
publication. This will ensure that only votes for displayed feedback are returned.Sorting by top voted?
The text was updated successfully, but these errors were encountered: