[WIP] Creating a ReviewDataGrid

Review Request #3927 — Created March 3, 2013 and discarded

Information

Review Board
master

Reviewers

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_conleymike_conley

The rule you wrote is affecting this link as well. You should make your rules specific to "Review Requests" and …

mike_conleymike_conley

The curvature here will need to go away.

mike_conleymike_conley

Col: 1 W293 blank line contains whitespace

reviewbotreviewbot

Col: 19 E223 tab before operator

reviewbotreviewbot

Col: 62 E261 at least two spaces before inline comment

reviewbotreviewbot

Col: 63 E262 inline comment should start with '# '

reviewbotreviewbot

Col: 24 E128 continuation line under-indented for visual indent

reviewbotreviewbot

Col: 14 E221 multiple spaces before operator

reviewbotreviewbot

Col: 9 E128 continuation line under-indented for visual indent

reviewbotreviewbot

Col: 48 E261 at least two spaces before inline comment

reviewbotreviewbot

Col: 49 E262 inline comment should start with '# '

reviewbotreviewbot

Col: 1 W293 blank line contains whitespace

reviewbotreviewbot

Col: 33 E128 continuation line under-indented for visual indent

reviewbotreviewbot

Col: 33 E128 continuation line under-indented for visual indent

reviewbotreviewbot

Col: 38 E128 continuation line under-indented for visual indent

reviewbotreviewbot

Col: 21 E262 inline comment should start with '# '

reviewbotreviewbot

Col: 21 E261 at least two spaces before inline comment

reviewbotreviewbot

Col: 64 W291 trailing whitespace

reviewbotreviewbot

Col: 9 E128 continuation line under-indented for visual indent

reviewbotreviewbot

Col: 41 E127 continuation line over-indented for visual indent

reviewbotreviewbot

Col: 9 E128 continuation line under-indented for visual indent

reviewbotreviewbot

Col: 24 E128 continuation line under-indented for visual indent

reviewbotreviewbot

Col: 24 E127 continuation line over-indented for visual indent

reviewbotreviewbot

Col: 9 E128 continuation line under-indented for visual indent

reviewbotreviewbot

Col: 24 E127 continuation line over-indented for visual indent

reviewbotreviewbot

Reviews don't have local_ids. You can just use pk directly.

daviddavid

Col: 80 E501 line too long (81 > 79 characters)

reviewbotreviewbot

Col: 64 W291 trailing whitespace

reviewbotreviewbot

Col: 9 E128 continuation line under-indented for visual indent

reviewbotreviewbot

Col: 41 E127 continuation line over-indented for visual indent

reviewbotreviewbot

Col: 9 E128 continuation line under-indented for visual indent

reviewbotreviewbot

Col: 24 E128 continuation line under-indented for visual indent

reviewbotreviewbot

The review request ID is probably really worth including.

mike_conleymike_conley

Col: 24 E127 continuation line over-indented for visual indent

reviewbotreviewbot

Col: 9 E128 continuation line under-indented for visual indent

reviewbotreviewbot

The Ship It column should probably look like the one in the main dashboard, so it should be "Ship it!", …

mike_conleymike_conley

Col: 24 E127 continuation line over-indented for visual indent

reviewbotreviewbot

This can be removed, probably.

mike_conleymike_conley

Col: 1 W293 blank line contains whitespace

reviewbotreviewbot

These should be in alphabetical order, so please ReviewDataGrid before ReviewRequestDataGrid.

mike_conleymike_conley

Col: 15 E128 continuation line under-indented for visual indent

reviewbotreviewbot

Col: 15 E128 continuation line under-indented for visual indent

reviewbotreviewbot

Col: 15 E128 continuation line under-indented for visual indent

reviewbotreviewbot

Col: 9 E128 continuation line under-indented for visual indent

reviewbotreviewbot

Col: 9 E128 continuation line under-indented for visual indent

reviewbotreviewbot

These should probably be added to the static/rb/css/reviews.less file. Inline CSS is something we try to avoid.

mike_conleymike_conley
reviewbot
  1. This is a review from Review Bot.
      Tool: PEP8 Style Checker
      Processed Files:
        reviewboard/reviews/views.py
        reviewboard/reviews/managers.py
        reviewboard/reviews/datagrids.py
      Ignored Files:
        reviewboard/accounts/fixtures/test_users.json
    
    
  2. reviewboard/reviews/datagrids.py (Diff revision 1)
     
     
    Show all issues
    Col: 1
     W293 blank line contains whitespace
    
  3. reviewboard/reviews/datagrids.py (Diff revision 1)
     
     
    Show all issues
    Col: 19
     E223 tab before operator
    
  4. reviewboard/reviews/datagrids.py (Diff revision 1)
     
     
    Show all issues
    Col: 62
     E261 at least two spaces before inline comment
    
  5. reviewboard/reviews/datagrids.py (Diff revision 1)
     
     
    Show all issues
    Col: 63
     E262 inline comment should start with '# '
    
  6. reviewboard/reviews/datagrids.py (Diff revision 1)
     
     
    Show all issues
    Col: 24
     E128 continuation line under-indented for visual indent
    
  7. reviewboard/reviews/datagrids.py (Diff revision 1)
     
     
    Show all issues
    Col: 14
     E221 multiple spaces before operator
    
  8. reviewboard/reviews/datagrids.py (Diff revision 1)
     
     
    Show all issues
    Col: 9
     E128 continuation line under-indented for visual indent
    
  9. reviewboard/reviews/datagrids.py (Diff revision 1)
     
     
    Show all issues
    Col: 48
     E261 at least two spaces before inline comment
    
  10. reviewboard/reviews/datagrids.py (Diff revision 1)
     
     
    Show all issues
    Col: 49
     E262 inline comment should start with '# '
    
  11. reviewboard/reviews/datagrids.py (Diff revision 1)
     
     
    Show all issues
    Col: 1
     W293 blank line contains whitespace
    
  12. reviewboard/reviews/datagrids.py (Diff revision 1)
     
     
    Show all issues
    Col: 33
     E128 continuation line under-indented for visual indent
    
  13. reviewboard/reviews/datagrids.py (Diff revision 1)
     
     
    Show all issues
    Col: 33
     E128 continuation line under-indented for visual indent
    
  14. reviewboard/reviews/datagrids.py (Diff revision 1)
     
     
    Show all issues
    Col: 38
     E128 continuation line under-indented for visual indent
    
  15. reviewboard/reviews/datagrids.py (Diff revision 1)
     
     
    Show all issues
    Col: 21
     E262 inline comment should start with '# '
    
  16. reviewboard/reviews/datagrids.py (Diff revision 1)
     
     
    Show all issues
    Col: 21
     E261 at least two spaces before inline comment
    
  17. reviewboard/reviews/views.py (Diff revision 1)
     
     
    Show all issues
    Col: 64
     W291 trailing whitespace
    
  18. reviewboard/reviews/views.py (Diff revision 1)
     
     
    Show all issues
    Col: 9
     E128 continuation line under-indented for visual indent
    
  19. reviewboard/reviews/views.py (Diff revision 1)
     
     
    Show all issues
    Col: 41
     E127 continuation line over-indented for visual indent
    
  20. reviewboard/reviews/views.py (Diff revision 1)
     
     
    Show all issues
    Col: 9
     E128 continuation line under-indented for visual indent
    
  21. 
      
GR
  1. Quite a good idea to have a list of Sent Reviews! Looking forward to the up coming changes. 
  2. 
      
KA
reviewbot
  1. 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
    
    
  2. reviewboard/reviews/datagrids.py (Diff revision 2)
     
     
    Show all issues
    Col: 24
     E128 continuation line under-indented for visual indent
    
  3. reviewboard/reviews/datagrids.py (Diff revision 2)
     
     
    Show all issues
    Col: 24
     E127 continuation line over-indented for visual indent
    
  4. reviewboard/reviews/datagrids.py (Diff revision 2)
     
     
    Show all issues
    Col: 9
     E128 continuation line under-indented for visual indent
    
  5. reviewboard/reviews/datagrids.py (Diff revision 2)
     
     
    Show all issues
    Col: 24
     E127 continuation line over-indented for visual indent
    
  6. reviewboard/reviews/datagrids.py (Diff revision 2)
     
     
    Show all issues
    Col: 80
     E501 line too long (81 > 79 characters)
    
  7. reviewboard/reviews/views.py (Diff revision 2)
     
     
    Show all issues
    Col: 64
     W291 trailing whitespace
    
  8. reviewboard/reviews/views.py (Diff revision 2)
     
     
    Show all issues
    Col: 9
     E128 continuation line under-indented for visual indent
    
  9. reviewboard/reviews/views.py (Diff revision 2)
     
     
    Show all issues
    Col: 41
     E127 continuation line over-indented for visual indent
    
  10. reviewboard/reviews/views.py (Diff revision 2)
     
     
    Show all issues
    Col: 9
     E128 continuation line under-indented for visual indent
    
  11. 
      
KA
david
  1. 
      
  2. reviewboard/reviews/datagrids.py (Diff revision 2)
     
     
     
     
     
     
     
    Show all issues
    Reviews don't have local_ids. You can just use pk directly.
  3. 
      
KA
reviewbot
  1. 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
    
    
  2. reviewboard/reviews/datagrids.py (Diff revision 3)
     
     
    Show all issues
    Col: 24
     E128 continuation line under-indented for visual indent
    
  3. reviewboard/reviews/datagrids.py (Diff revision 3)
     
     
    Show all issues
    Col: 24
     E127 continuation line over-indented for visual indent
    
  4. reviewboard/reviews/datagrids.py (Diff revision 3)
     
     
    Show all issues
    Col: 9
     E128 continuation line under-indented for visual indent
    
  5. reviewboard/reviews/datagrids.py (Diff revision 3)
     
     
    Show all issues
    Col: 24
     E127 continuation line over-indented for visual indent
    
  6. reviewboard/reviews/managers.py (Diff revision 3)
     
     
    Show all issues
    Col: 1
     W293 blank line contains whitespace
    
  7. reviewboard/reviews/views.py (Diff revision 3)
     
     
    Show all issues
    Col: 15
     E128 continuation line under-indented for visual indent
    
  8. reviewboard/reviews/views.py (Diff revision 3)
     
     
    Show all issues
    Col: 15
     E128 continuation line under-indented for visual indent
    
  9. reviewboard/reviews/views.py (Diff revision 3)
     
     
    Show all issues
    Col: 15
     E128 continuation line under-indented for visual indent
    
  10. reviewboard/reviews/views.py (Diff revision 3)
     
     
    Show all issues
    Col: 9
     E128 continuation line under-indented for visual indent
    
  11. reviewboard/reviews/views.py (Diff revision 3)
     
     
    Show all issues
    Col: 9
     E128 continuation line under-indented for visual indent
    
  12. 
      
KA
mike_conley
  1. 
      
  2. Show all issues
    These will need to look more like tabs. More padding is required to make them larger targets.
  3. Show all issues
    The rule you wrote is affecting this link as well. You should make your rules specific to "Review Requests" and "Reviews".
  4. Show all issues
    The curvature here will need to go away.
  5. reviewboard/reviews/datagrids.py (Diff revision 3)
     
     
     
    Show all issues
    The review request ID is probably really worth including.
  6. reviewboard/reviews/datagrids.py (Diff revision 3)
     
     
     
    Show all issues
    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.
  7. reviewboard/reviews/datagrids.py (Diff revision 3)
     
     
     
     
    Show all issues
    This can be removed, probably.
  8. reviewboard/reviews/views.py (Diff revision 3)
     
     
     
    Show all issues
    These should be in alphabetical order, so please ReviewDataGrid before ReviewRequestDataGrid.
  9. reviewboard/templates/reviews/user_page.html (Diff revision 3)
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
    Show all issues
    These should probably be added to the static/rb/css/reviews.less file. Inline CSS is something we try to avoid.
  10. 
      
KA
Review request changed
Status:
Discarded