{"action":"created","issue":{"url":"https://api.github.com/repos/hydroshare/hydroshare/issues/611","labels_url":"https://api.github.com/repos/hydroshare/hydroshare/issues/611/labels{/name}","comments_url":"https://api.github.com/repos/hydroshare/hydroshare/issues/611/comments","events_url":"https://api.github.com/repos/hydroshare/hydroshare/issues/611/events","html_url":"https://github.com/hydroshare/hydroshare/issues/611","id":106968566,"number":611,"title":"+1 rating functionality","user":{"login":"dtarb","id":3456833,"avatar_url":"https://avatars.githubusercontent.com/u/3456833?v=3","gravatar_id":"","url":"https://api.github.com/users/dtarb","html_url":"https://github.com/dtarb","followers_url":"https://api.github.com/users/dtarb/followers","following_url":"https://api.github.com/users/dtarb/following{/other_user}","gists_url":"https://api.github.com/users/dtarb/gists{/gist_id}","starred_url":"https://api.github.com/users/dtarb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dtarb/subscriptions","organizations_url":"https://api.github.com/users/dtarb/orgs","repos_url":"https://api.github.com/users/dtarb/repos","events_url":"https://api.github.com/users/dtarb/events{/privacy}","received_events_url":"https://api.github.com/users/dtarb/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/hydroshare/hydroshare/labels/Appearance","name":"Appearance","color":"027c15"}],"state":"open","locked":false,"assignee":{"login":"hyi","id":476302,"avatar_url":"https://avatars.githubusercontent.com/u/476302?v=3","gravatar_id":"","url":"https://api.github.com/users/hyi","html_url":"https://github.com/hyi","followers_url":"https://api.github.com/users/hyi/followers","following_url":"https://api.github.com/users/hyi/following{/other_user}","gists_url":"https://api.github.com/users/hyi/gists{/gist_id}","starred_url":"https://api.github.com/users/hyi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hyi/subscriptions","organizations_url":"https://api.github.com/users/hyi/orgs","repos_url":"https://api.github.com/users/hyi/repos","events_url":"https://api.github.com/users/hyi/events{/privacy}","received_events_url":"https://api.github.com/users/hyi/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/hydroshare/hydroshare/milestones/9","html_url":"https://github.com/hydroshare/hydroshare/milestones/Release%201.6.0%20(Access%20Control%20and%20Base%20Class%20Refactoring)","labels_url":"https://api.github.com/repos/hydroshare/hydroshare/milestones/9/labels","id":1012512,"number":9,"title":"Release 1.6.0 (Access Control and Base Class Refactoring)","description":"Focus on stability.\r\n\r\n- Should be tested with testing capability setup in Jenkins\r\n- Should include refactoring to single concrete class with proxy classes for each resource\r\n- Should implement authorization according to access control policy document\r\n- Should implement groups according to access control policy document\r\n- Should have appearance and profile improvements\r\n- New functionality that can be achieved without holding up the above \r\n\r\n\r\n\r\n","creator":{"login":"mjstealey","id":5332509,"avatar_url":"https://avatars.githubusercontent.com/u/5332509?v=3","gravatar_id":"","url":"https://api.github.com/users/mjstealey","html_url":"https://github.com/mjstealey","followers_url":"https://api.github.com/users/mjstealey/followers","following_url":"https://api.github.com/users/mjstealey/following{/other_user}","gists_url":"https://api.github.com/users/mjstealey/gists{/gist_id}","starred_url":"https://api.github.com/users/mjstealey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mjstealey/subscriptions","organizations_url":"https://api.github.com/users/mjstealey/orgs","repos_url":"https://api.github.com/users/mjstealey/repos","events_url":"https://api.github.com/users/mjstealey/events{/privacy}","received_events_url":"https://api.github.com/users/mjstealey/received_events","type":"User","site_admin":false},"open_issues":15,"closed_issues":53,"state":"open","created_at":"2015-03-09T14:51:31Z","updated_at":"2015-10-06T18:37:10Z","due_on":"2015-10-14T06:00:00Z","closed_at":null},"comments":19,"created_at":"2015-09-17T12:04:13Z","updated_at":"2015-10-06T18:47:11Z","closed_at":null,"body":"[ ] When a resource or comment (item) has no +1 ratings the message should say \"Be the first to +1 this.\" Delete the word resource so that the same comment applies to both resources and comments. \r\n\r\n[ ] When an item already has +1 ratings the message should say \"nn others +1 this.\" if there are other ratings, or \"You and nn others +1 this.\" if the user has already rated and there are other ratings, or \"You +1 this.\" if the user is the only to rate the item so far.  Here nn designates the number of other ratings of the item.\r\n  \r\n[ ] When a user clicks +1 the message should change to \"You and nn others +1 this.\" or \"You +1 this.\" according to the rule above.  \r\n\r\n[ ] A user can not +1 an item more than once, but should be able to withdraw a +1 rating.  To facilitate this, when a user has already rated an item, the +1 button should change to \"Withdraw +1\".\r\n\r\n\r\n\r\n "},"comment":{"url":"https://api.github.com/repos/hydroshare/hydroshare/issues/comments/145961709","html_url":"https://github.com/hydroshare/hydroshare/issues/611#issuecomment-145961709","issue_url":"https://api.github.com/repos/hydroshare/hydroshare/issues/611","id":145961709,"user":{"login":"hyi","id":476302,"avatar_url":"https://avatars.githubusercontent.com/u/476302?v=3","gravatar_id":"","url":"https://api.github.com/users/hyi","html_url":"https://github.com/hyi","followers_url":"https://api.github.com/users/hyi/followers","following_url":"https://api.github.com/users/hyi/following{/other_user}","gists_url":"https://api.github.com/users/hyi/gists{/gist_id}","starred_url":"https://api.github.com/users/hyi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hyi/subscriptions","organizations_url":"https://api.github.com/users/hyi/orgs","repos_url":"https://api.github.com/users/hyi/repos","events_url":"https://api.github.com/users/hyi/events{/privacy}","received_events_url":"https://api.github.com/users/hyi/received_events","type":"User","site_admin":false},"created_at":"2015-10-06T18:47:11Z","updated_at":"2015-10-06T18:47:11Z","body":"@dtarb Just created a PR for this to target for release 1.6. Want to point out one thing, though. I did not change anything on comments for anonymous users, but only addressed ratings reflected in this issue. So comments will behave in the same way as before, i.e., the comment button will show for anonymous users, and once clicked, anonymous users will be taken to login screen. Since the comments don't have the +1 vs withdraw +1 issue as ratings, no confusion would result from exposing comment button to anonymous users. I don't have strong feelings that we need to keep ratings presentation to be consistent with comments presentation for anonymous users, but if you think we need to, you can create a different issue addressing comments presentation for anonymous users specifically after you get a chance to test for the new rating presentation. "}}