[WIP] Creating a ReviewDataGrid
Review Request #3927 — Created March 3, 2013 and discarded
This is a work-in-progress for creating a ReviewDataGrid for displaying all the reviews that a user has done. To keep the testing simple for now I have the review grid being displayed in place of the usual grid of review requests on a user's page (see screenshot). Currently it only displays the review id (which is interesting since I was expecting this to be the review request id), which also links to the review itself, and the timestamp from when the review was posted. What's next: - go through the code currently used (mostly copied from the ReviewRequestDataGrid) and figure out what isn't necessary or should be changed - add more columns - Have this displaying on it's own rather than high-jacking the review request display
Description | From | Last Updated |
---|---|---|
These will need to look more like tabs. More padding is required to make them larger targets. |
mike_conley | |
The rule you wrote is affecting this link as well. You should make your rules specific to "Review Requests" and … |
mike_conley | |
The curvature here will need to go away. |
mike_conley | |
Col: 1 W293 blank line contains whitespace |
reviewbot | |
Col: 19 E223 tab before operator |
reviewbot | |
Col: 62 E261 at least two spaces before inline comment |
reviewbot | |
Col: 63 E262 inline comment should start with '# ' |
reviewbot | |
Col: 24 E128 continuation line under-indented for visual indent |
reviewbot | |
Col: 14 E221 multiple spaces before operator |
reviewbot | |
Col: 9 E128 continuation line under-indented for visual indent |
reviewbot | |
Col: 48 E261 at least two spaces before inline comment |
reviewbot | |
Col: 49 E262 inline comment should start with '# ' |
reviewbot | |
Col: 1 W293 blank line contains whitespace |
reviewbot | |
Col: 33 E128 continuation line under-indented for visual indent |
reviewbot | |
Col: 33 E128 continuation line under-indented for visual indent |
reviewbot | |
Col: 38 E128 continuation line under-indented for visual indent |
reviewbot | |
Col: 21 E262 inline comment should start with '# ' |
reviewbot | |
Col: 21 E261 at least two spaces before inline comment |
reviewbot | |
Col: 64 W291 trailing whitespace |
reviewbot | |
Col: 9 E128 continuation line under-indented for visual indent |
reviewbot | |
Col: 41 E127 continuation line over-indented for visual indent |
reviewbot | |
Col: 9 E128 continuation line under-indented for visual indent |
reviewbot | |
Col: 24 E128 continuation line under-indented for visual indent |
reviewbot | |
Col: 24 E127 continuation line over-indented for visual indent |
reviewbot | |
Col: 9 E128 continuation line under-indented for visual indent |
reviewbot | |
Col: 24 E127 continuation line over-indented for visual indent |
reviewbot | |
Reviews don't have local_ids. You can just use pk directly. |
david | |
Col: 80 E501 line too long (81 > 79 characters) |
reviewbot | |
Col: 64 W291 trailing whitespace |
reviewbot | |
Col: 9 E128 continuation line under-indented for visual indent |
reviewbot | |
Col: 41 E127 continuation line over-indented for visual indent |
reviewbot | |
Col: 9 E128 continuation line under-indented for visual indent |
reviewbot | |
Col: 24 E128 continuation line under-indented for visual indent |
reviewbot | |
The review request ID is probably really worth including. |
mike_conley | |
Col: 24 E127 continuation line over-indented for visual indent |
reviewbot | |
Col: 9 E128 continuation line under-indented for visual indent |
reviewbot | |
The Ship It column should probably look like the one in the main dashboard, so it should be "Ship it!", … |
mike_conley | |
Col: 24 E127 continuation line over-indented for visual indent |
reviewbot | |
This can be removed, probably. |
mike_conley | |
Col: 1 W293 blank line contains whitespace |
reviewbot | |
These should be in alphabetical order, so please ReviewDataGrid before ReviewRequestDataGrid. |
mike_conley | |
Col: 15 E128 continuation line under-indented for visual indent |
reviewbot | |
Col: 15 E128 continuation line under-indented for visual indent |
reviewbot | |
Col: 15 E128 continuation line under-indented for visual indent |
reviewbot | |
Col: 9 E128 continuation line under-indented for visual indent |
reviewbot | |
Col: 9 E128 continuation line under-indented for visual indent |
reviewbot | |
These should probably be added to the static/rb/css/reviews.less file. Inline CSS is something we try to avoid. |
mike_conley |
- Change Summary:
-
ReviewDataGrid WIP update Updated code based on ReviewBot review, but ignored the issues for 'continuation line under-indented for visual indent'. I also removed some unnecessary code and added more columns to the grid. What's next: - get the grid displaying on its own instead of where the review request grid appears - filter reviews so that only base replies appear - add some more columns and improve the 'ship it' column to be more like the one for review requests
-
This is a review from Review Bot. Tool: PEP8 Style Checker Processed Files: reviewboard/reviews/views.py reviewboard/reviews/datagrids.py reviewboard/reviews/managers.py Ignored Files: reviewboard/accounts/fixtures/test_users.json
-
-
-
-
-
-
-
-
-
- Change Summary:
-
The ReviewDataGrid now displays in a new page linked from the user page. This page otherwise looks the same as the regular user page. The list now filters out replies. Also removed code dealing with local_site.
-
This is a review from Review Bot. Tool: PEP8 Style Checker Processed Files: reviewboard/reviews/views.py reviewboard/urls.py reviewboard/reviews/managers.py reviewboard/reviews/datagrids.py Ignored Files: reviewboard/templates/reviews/user_page.html reviewboard/accounts/fixtures/test_users.json
-
-
-
-
-
-
-
-
-
-
-
-
-
The rule you wrote is affecting this link as well. You should make your rules specific to "Review Requests" and "Reviews".
-
-
-
The Ship It column should probably look like the one in the main dashboard, so it should be "Ship it!", and have a graphic to indicate of a Ship it was given.
-
-
-
These should probably be added to the static/rb/css/reviews.less file. Inline CSS is something we try to avoid.