The server should provide information on the rating of apps, This need to be displayed
also this module should provide a way to rate an app.
The server issue #1407022: API and Storage for Ratings needs to be complete before or along side this one.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jec006’s picture

Assigned: Unassigned » jec006

assigning to myself

jec006’s picture

Here is an initial patch that has viewing of ratings only - it doesn't allow a client site to vote.

I made quite a few cleanup changes to the theming system for apps, so I wanted to put a patch up that is basically only theming so these can be easily reviewed.

Note there is a new image in this patch, which is basically just the stars but grey.

jec006’s picture

Assigned: jec006 » Unassigned
Status: Active » Needs review
FileSize
17.61 KB
42.93 KB

Here is a new patch with full functionality.

The basic workflow is like so:

  • User sees ratings and rating count on teaser view (as always except with real data).
  • Once the user goes to the detail page, and can vote and see their previous ratings for an app (if they've voted before).
  • Voting records the vote and updates the site via ajax.

There is a configuration option to turn off voting, which will allow the users to see the rating, but not to vote.

Generally however, to make use of this functionality, the appserver which each app console points to much also have the associated functionality (as provided in the patch in the linked issue).

I've also attached a screenshot of how the widget looks.

jec006’s picture

Status: Needs review » Fixed

Committed a cleaned up version to 7.x-1.x so we can get some feedback on how its working. Suggest updating to the voting branch of appserver.

Please put bugs found in new issues so we can deal with them separately.

Automatically closed -- issue fixed for 2 weeks with no activity.