Changes between Version 3 and Version 4 of PeerReviewPlugin/Reports
- Timestamp:
- Aug 14, 2016, 6:15:48 PM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
PeerReviewPlugin/Reports
v3 v4 1 1 [[PageOutline(2-3, Categories, pullout)]] 2 2 3 = Reports 3 Instead of shipping it's own report module PeerReviewPlugin relies on Tracs reporting features by leveraging custom TracReports using data from PeerReviewPlugin. These custom reports can be accessed from the regular Trac report page but they are also shown on the report page for reviews. 4 5 Instead of shipping its own report module, PeerReviewPlugin relies on Trac's reporting features by utilising custom TracReports using data from the PeerReviewPlugin. These custom reports can be accessed from the regular Trac report page but they are also shown on the report page for reviews. 4 6 5 7 Note that when opening a report you are automatically redirected to the Trac report module. 6 8 7 9 There are no reports created during installation. You may use the ones shown below. 10 8 11 == Creating Reports 12 9 13 === Displaying a report on the review report page 14 10 15 For reports to show up on the review page you must add the following wiki comment to the reports description. 11 16 {{{ … … 27 32 28 33 }}} 34 29 35 === Provide links from report results 36 30 37 It is possible to directly link from report results to a referenced review or file. You need to set the {{{realm}}} column in the report as explained in [TracReports#Automaticallyformattedcolumns TracReports: Automatically formatted columns]. 31 38 … … 40 47 f.revision AS revision, f.status AS status, 41 48 'peerreviewfile' AS _realm, 42 (SELECT COUNT(*) FROM peerreviewcomment AS c 43 WHERE f.file_id = c.file_id) AS comments 49 (SELECT COUNT(*) FROM peerreviewcomment AS c WHERE f.file_id = c.file_id) AS comments 44 50 FROM peerreviewfile f 45 51 WHERE f.status = 'approved' … … 47 53 ORDER BY f.path, f.revision 48 54 }}} 55 49 56 == Example Reports 57 50 58 === All reviews grouped by author 59 51 60 Description: 52 61 {{{ … … 76 85 77 86 === Approved files 87 78 88 Description: 79 89 {{{ … … 102 112 103 113 === All files with comments 114 104 115 Description: 105 116 {{{ … … 128 139 129 140 === Files with comments - My reviews 141 130 142 Description: 131 143 {{{ … … 140 152 * '''disapproved''' 141 153 * Mark files with unread comments 142 [[BR]][[BR]]Note: the status ''read/unread'' is set for each user.154 '''Note''': the status ''read/unread'' is set for each user. 143 155 144 156 Back to [/peerreviewreport Codereview reports]. … … 168 180 INNER JOIN peerreview AS rev ON f.review_id = rev.review_id 169 181 WHERE (f.status IS NULL OR f.status NOT IN ('approved', 'disapproved')) 170 AND f.review_id in 171 (SELECT a.review_id FROM peerreviewer a JOIN peerreview r 172 ON a.review_id = r.review_id 173 WHERE a.reviewer = $USER 174 AND r.status IS NOT 'closed') 175 182 AND f.review_id in 183 (SELECT a.review_id FROM peerreviewer a JOIN peerreview r 184 ON a.review_id = r.review_id 185 WHERE a.reviewer = $USER 186 AND r.status IS NOT 'closed') 176 187 GROUP BY f.file_id 177 188 ORDER BY f.file_id, f.status, f.path, f.revision