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

Voting feature for anonymous users #60

Open
1 of 2 tasks
AdiChat opened this issue Feb 22, 2018 · 5 comments · May be fixed by #73
Open
1 of 2 tasks

Voting feature for anonymous users #60

AdiChat opened this issue Feb 22, 2018 · 5 comments · May be fixed by #73

Comments

@AdiChat
Copy link
Member

AdiChat commented Feb 22, 2018

This is a:

  • bug report
  • feature request

Description:

Add a voting feature ⭐ that works for anonymous users.

For this, you may assign a voting to each category of codes in the meta-data. When a user votes for a particular search result, store the vote assigned along with the IP address of the user in a database. On displaying, calculate the average vote and display it.

This will provide a social feature and provide some interactivity.
We will provide more social searching feature soon as the user profile and authentication system are ready. The anonymous social features will be permanent as everyone deserves to enjoy a good search. 👍

@Shweta4321
Copy link
Contributor

I would like to work on this issue

@AdiChat
Copy link
Member Author

AdiChat commented Feb 23, 2018

@Shweta4321 Feel free to work on this feature. Keep us updated on your progress 👍

@Shweta4321
Copy link
Contributor

@AdiChat What should be the key for different codes in database to store avg rating done by the user?

@AdiChat
Copy link
Member Author

AdiChat commented Feb 25, 2018

You may use the key in metadata.json as the key for the average_rating table. For instance, string_algorithms/src/kmp_algorithm may have an average rating.

@Shweta4321 Shweta4321 linked a pull request Feb 28, 2018 that will close this issue
2 tasks
@Shweta4321
Copy link
Contributor

@AdiChat review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants