canvas-lms/app/models/discussion_topic
Braden Anderson f5276f7a78 discussion entry liking
fixes CNVS-16277

test plan:
  * create a discussion topic
  * open edit page
  * change Allow liking, Only graders can like, Sort by likes
  * verify that changes persist

  * open topic show page
  * verify that like buttons are present if Allow liking is enabled
      and Only graders can like is disabled or the user can grade

  * click on a Like button
  * verify that the button is activated
  * refresh the page
  * verify that the rating persists
  * verify that the number of likes on each entry is displayed

  * enable Sort by likes
  * wait a minute for the topic's cache to rebuild
  * refresh the page
  * verify that entries are sorted by number of likes

Change-Id: I8e329899c8b81832bdf9132438537bcd7a32e258
Reviewed-on: https://gerrit.instructure.com/42786
Reviewed-by: Joel Hough <joel@instructure.com>
Product-Review: Braden Anderson <braden@instructure.com>
QA-Review: Steven Shepherd <sshepherd@instructure.com>
Tested-by: Jenkins
2015-04-25 03:10:48 +00:00
..
materialized_view.rb discussion entry liking 2015-04-25 03:10:48 +00:00