Do not render the avatar service form when there are no services

Review Request #8729 — Created Feb. 8, 2017 and submitted

Information

Review Board
release-3.0.x

Reviewers

We now take into account the number of enabled services when calculating
the visibility of the avatar settings form. In addition, due to recent
changes to Djblets (see /r/8726 and /r/8728), we no longer have to add or
remove the avatar services form to the configuration page (due to
ConfigPageForm.is_visible() evlauating to False causing the form to
not render). This allows the logic of the avatar services admin form to
be simplified.

Viewed account page with avatars enabled but no enabled services. The
page did not raise an exception and the form was not visible.

Description From Last Updated

'AvatarSettingsForm' imported but unused

reviewbotreviewbot

'AccountPage' imported but unused

reviewbotreviewbot

'ProfilePage' imported but unused

reviewbotreviewbot
reviewbot
  1. Tool: Pyflakes
    Processed Files:
        reviewboard/admin/forms.py
        reviewboard/accounts/forms/pages.py
    
    
    
    Tool: PEP8 Style Checker
    Processed Files:
        reviewboard/admin/forms.py
        reviewboard/accounts/forms/pages.py
    
    
  2. reviewboard/admin/forms.py (Diff revision 1)
     
     
    Show all issues
     'AvatarSettingsForm' imported but unused
    
  3. reviewboard/admin/forms.py (Diff revision 1)
     
     
    Show all issues
     'AccountPage' imported but unused
    
  4. reviewboard/admin/forms.py (Diff revision 1)
     
     
    Show all issues
     'ProfilePage' imported but unused
    
  5. 
      
brennie
reviewbot
  1. Tool: Pyflakes
    Processed Files:
        reviewboard/admin/forms.py
        reviewboard/accounts/forms/pages.py
    
    
    
    Tool: PEP8 Style Checker
    Processed Files:
        reviewboard/admin/forms.py
        reviewboard/accounts/forms/pages.py
    
    
  2. 
      
david
  1. Ship It!
  2. 
      
brennie
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to release-3.0.x (980df4f)
Loading...