cosmos-search icon indicating copy to clipboard operation
cosmos-search copied to clipboard

Voting feature for anonymous users

Open AdiChat opened this issue 7 years ago • 5 comments

This is a:

  • [ ] bug report
  • [x] feature request

Description:

Add a voting feature :star: 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. :+1:

AdiChat avatar Feb 22 '18 18:02 AdiChat

I would like to work on this issue

Shweta4321 avatar Feb 22 '18 19:02 Shweta4321

@Shweta4321 Feel free to work on this feature. Keep us updated on your progress :+1:

AdiChat avatar Feb 23 '18 16:02 AdiChat

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

Shweta4321 avatar Feb 24 '18 14:02 Shweta4321

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.

AdiChat avatar Feb 25 '18 13:02 AdiChat

@AdiChat review.

Shweta4321 avatar Apr 02 '18 12:04 Shweta4321