Issue with update-ratings-entry?Issue with update-ratings-entry?https://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785333&threadId=1144363942024-03-28T22:14:33Z2024-03-28T22:14:33ZRE: Issue with update-ratings-entry?László Tóthhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1146092452019-08-05T11:28:13Z2019-08-05T11:28:13ZThank you, It works!László Tóth2019-08-05T11:28:13ZRE: Issue with update-ratings-entry?Javier Gamarrahttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1144822772019-07-29T14:35:03Z2019-07-29T14:35:03ZHere it is: <a href="https://github.com/brianchandotcom/liferay-portal/pull/76266">https://github.com/brianchandotcom/liferay-portal/pull/76266</a> <img alt="emoticon" src="@theme_images_path@/emoticons/happy.gif" >Javier Gamarra2019-07-29T14:35:03ZRE: Issue with update-ratings-entry?Andrew Jardinehttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1144799872019-07-29T14:33:00Z2019-07-29T14:33:00ZBeat me to it -- but I would not have had the recommendation for the own interactor, so thanks for sharing Javier. When you get a minute, can you reply with a link to the PR -- just in case anyone comes along and wants to see the changes you are proposing?Andrew Jardine2019-07-29T14:33:00ZRE: Issue with update-ratings-entry?Javier Gamarrahttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1144773102019-07-29T10:00:42Z2019-07-29T10:00:42ZYou are right, the permission check is wrong, sent a PR fixing it. Meanwhile I recommend you to use your own interactor with your service (or the already existing update rating one)Javier Gamarra2019-07-29T10:00:42ZRE: Issue with update-ratings-entry?László Tóthhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1144526792019-07-26T06:42:24Z2019-07-26T06:42:24ZI use the jsonws api. On /screens.screensratingsentry/get-ratings-entries form I fill the following parameters <br />p_auth String - this is fix, authenticated user's token<br />assetEnryId long - 110120, valid article's entryId, I got it from the webContent <br />ratingsLength int - 1<br />The result of this call I get the result JSON that I attached above. From the result JSON I copy the params into the /screens.screensratingsentry/update-ratings-entry form: <br />p_auth String - this is fix, authenticated user's token same as what is in the get-ratings-entries<br />classPK long - from get-ratings-entries result classPK value, as above: 110114<br />className java.lang.String - from get-ratings-entries result className value, as above: com.liferay.journal.model.JournalArticle <br /><span style="font-size: 18px;">Result double - the user's rating, for example: 0.2</span><br />ratingsLength int - 1<br />The result is I mentioned above. László Tóth2019-07-26T06:42:24ZRE: Issue with update-ratings-entry?Andrew Jardinehttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1144455122019-07-25T18:26:27Z2019-07-25T18:26:27ZHey Laszlo,Can you show us what you are passing as the as he payload when you call the update-ratings-entry?Andrew Jardine2019-07-25T18:26:27ZIssue with update-ratings-entry?László Tóthhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1144363932019-07-25T14:12:00Z2019-07-25T14:12:00Z<html><head></head><body>Hi!<br>I use RatingScreenlet to rate the article, by article's entryId. I can get ratings data from server by using get-rating-entries service. The result is:<br><pre><code>{ "average": 0.46666666666666673,
&nbsp; "classPK": "110114",
"ratings": [ 3 ],
&nbsp; "className": "com.liferay.journal.model.JournalArticle",
&nbsp; "userScore": 0.2,
"totalCount": 3,
&nbsp; "totalScore": 1.4000000000000001 } </code></pre>But, when I modify the rating for the article with update-ratings-entry I must use classPK and className not the entryId only. I give to the update the data that the get-entries given and it fai