> On Sept. 12, 2013, 12:50 p.m., Aaron J. Seigo wrote: > > lib/bodega/participantratingsjobmodel.cpp, lines 107-130 > > <http://git.reviewboard.kde.org/r/112533/diff/2-3/?file=189043#file189043line107> > > > > far, far too many jobs are being sent off to make this happen: > > > > * one job to request the participant ratings > > * another job per asset to fetch the ratings > > > > this makes no sense whatsoever. > > > > what this shows is that there is a problem with the server-side > > implementation of participant/ratings. > > > > it should be returning the data in the required end form itself already. > > > > i'll look into making that change so as not to cause another set of > > lengthy reviews there that blocks this even further.
ok, participant ratings now returns data like this in the "ratings" object in the json: [ { "asset": 2, "name": "Aquarium", "version": "0.2", "description": "Grow an aqarium full of fish!", "rated": 1375966634.14727, "ratings": [ { "attribute": 5, "name": "perfomance", "rating": 1 } ] }, { "asset": 8, "name": "Poker1", "version": "0.1", "description": "Poker 1", "rated": 1375966634.14727, "ratings": [ { "attribute": 2, "name": "Usability", "rating": 5 } ] }, { "asset": 9, "name": "Poker2", "version": "0.2", "description": "Poker 2", "rated": 1375966634.14727, "ratings": [ { "attribute": 3, "name": "funny", "rating": 3 } ] } ] so now it is very easy to show the user's ratings per asset. they are properly sorted in reverse chronological order, etc. - Aaron J. ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: http://git.reviewboard.kde.org/r/112533/#review39876 ----------------------------------------------------------- On Sept. 12, 2013, 11:29 a.m., Giorgos Tsiapaliokas wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > http://git.reviewboard.kde.org/r/112533/ > ----------------------------------------------------------- > > (Updated Sept. 12, 2013, 11:29 a.m.) > > > Review request for Bodega. > > > Description > ------- > > This patch implements the ratings feature > > > Diffs > ----- > > activeclient/package/contents/ui/SettingsPage.qml fb46eca > activeclient/package/contents/ui/settings/ParticipantRatings.qml > PRE-CREATION > activeclient/package/contents/ui/storebrowser/AssetColumn.qml a678f16 > activeclient/package/contents/ui/storebrowser/Ratings.js PRE-CREATION > activeclient/package/contents/ui/storebrowser/RatingsColumn.qml > PRE-CREATION > activeclient/src/bodegastore.h 1e5aac5 > activeclient/src/bodegastore.cpp ba9dc27 > lib/bodega/CMakeLists.txt 8d382a7 > lib/bodega/assetjob.h 5aab88c > lib/bodega/assetjob.cpp 5f539cb > lib/bodega/assetoperations.h 7ce7900 > lib/bodega/assetoperations.cpp 9f9c2d5 > lib/bodega/assetratingsjob.h PRE-CREATION > lib/bodega/assetratingsjob.cpp PRE-CREATION > lib/bodega/assetratingsjobmodel.h PRE-CREATION > lib/bodega/assetratingsjobmodel.cpp PRE-CREATION > lib/bodega/globals.h 5ab45da > lib/bodega/participantratingsjob.h PRE-CREATION > lib/bodega/participantratingsjob.cpp PRE-CREATION > lib/bodega/participantratingsjobmodel.h PRE-CREATION > lib/bodega/participantratingsjobmodel.cpp PRE-CREATION > lib/bodega/ratingattributesjob.h PRE-CREATION > lib/bodega/ratingattributesjob.cpp PRE-CREATION > lib/bodega/ratingsmodel_p.h PRE-CREATION > lib/bodega/ratingsmodel_p.cpp PRE-CREATION > lib/bodega/session.h d27d284 > lib/bodega/session.cpp a7c7e94 > lib/bodega/session_p.h ebefb4f > > Diff: http://git.reviewboard.kde.org/r/112533/diff/ > > > Testing > ------- > > check the attached images > > > File Attachments > ---------------- > > > > http://git.reviewboard.kde.org/media/uploaded/files/2013/09/05/ratings-main.png > > > http://git.reviewboard.kde.org/media/uploaded/files/2013/09/05/participantratings.png > > > http://git.reviewboard.kde.org/media/uploaded/files/2013/09/06/labelsnotcenter.png > > http://git.reviewboard.kde.org/media/uploaded/files/2013/09/06/delete2.png > > > http://git.reviewboard.kde.org/media/uploaded/files/2013/09/06/brokenParticipant.diff > > > http://git.reviewboard.kde.org/media/uploaded/files/2013/09/06/participantbroken.png > > > Thanks, > > Giorgos Tsiapaliokas > >
_______________________________________________ Active mailing list Active@kde.org https://mail.kde.org/mailman/listinfo/active