Add extensibility to the user infobox.

Review Request #8078 — Created March 27, 2016 and submitted

Information

Review Board
release-3.0.x
11ba755...

Reviewers

This change adds a new extension hook, the UserInfoBoxHook, which allows
extensions to inject additional data into the infobox. This is shown in a new
panel below the existing information, so it doesn't screw up the existing
layout.

This also fixes up a couple bugs in my earlier redesign change that emerged as
I tested it with this.

  • Built a simple extension which lists a count of the users' incoming and
    outgoing review requests in the infobox and saw the correct results.
  • Ran unit tests.
Description From Last Updated

Remove this line.

brenniebrennie

'ChangeDescription' imported but unused

reviewbotreviewbot

'ChangeDescription' imported but unused

reviewbotreviewbot
reviewbot
  1. Tool: Pyflakes
    Processed Files:
        reviewboard/reviews/views.py
        reviewboard/extensions/hooks.py
        reviewboard/extensions/tests.py
    
    Ignored Files:
        reviewboard/static/rb/css/common.less
        reviewboard/templates/accounts/user_infobox.html
    
    
    
    Tool: PEP8 Style Checker
    Processed Files:
        reviewboard/reviews/views.py
        reviewboard/extensions/hooks.py
        reviewboard/extensions/tests.py
    
    Ignored Files:
        reviewboard/static/rb/css/common.less
        reviewboard/templates/accounts/user_infobox.html
    
    
  2. reviewboard/reviews/views.py (Diff revision 1)
     
     
     'ChangeDescription' imported but unused
    
  3. 
      
brennie
  1. 
      
  2. reviewboard/extensions/hooks.py (Diff revision 1)
     
     

    Remove this line.

  3. 
      
david
reviewbot
  1. Tool: Pyflakes
    Processed Files:
        reviewboard/reviews/views.py
        reviewboard/extensions/hooks.py
        reviewboard/extensions/tests.py
    
    Ignored Files:
        reviewboard/static/rb/css/common.less
        reviewboard/templates/accounts/user_infobox.html
    
    
    
    Tool: PEP8 Style Checker
    Processed Files:
        reviewboard/reviews/views.py
        reviewboard/extensions/hooks.py
        reviewboard/extensions/tests.py
    
    Ignored Files:
        reviewboard/static/rb/css/common.less
        reviewboard/templates/accounts/user_infobox.html
    
    
  2. reviewboard/reviews/views.py (Diff revision 2)
     
     
     'ChangeDescription' imported but unused
    
  3. 
      
brennie
  1. Ship It!
  2. 
      
david
reviewbot
  1. Tool: Pyflakes
    Processed Files:
        reviewboard/reviews/views.py
        reviewboard/extensions/hooks.py
        reviewboard/extensions/tests.py
    
    Ignored Files:
        reviewboard/static/rb/css/common.less
        reviewboard/templates/accounts/user_infobox.html
    
    
    
    Tool: PEP8 Style Checker
    Processed Files:
        reviewboard/reviews/views.py
        reviewboard/extensions/hooks.py
        reviewboard/extensions/tests.py
    
    Ignored Files:
        reviewboard/static/rb/css/common.less
        reviewboard/templates/accounts/user_infobox.html
    
    
  2. 
      
david
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to release-3.0.x (1fcc46d)
Loading...