• 
      

    Add the URLAvatarService

    Review Request #8481 — Created Oct. 21, 2016 and submitted

    Information

    Djblets
    release-0.10.x

    Reviewers

    The URLAvatarService is a new avatar service for setting the avatar of
    a user to an absolute URL. This service is a hidden service, which is a
    new type of service that is not exposed to users through the
    configuration form. (Indeed, attempting to fool the form and submitting
    the data will result in an error as if it does not exist.) Instead, it
    is to be used to provide avatars for users created by extensions, etc.

    • Ran unit tests.
    • Tested with Review Board.
    • Saw that the service did not show up in the avatar services form.
    Description From Last Updated

    'AvatarService' imported but unused

    reviewbotreviewbot

    'FileUploadService' imported but unused

    reviewbotreviewbot

    'GravatarService' imported but unused

    reviewbotreviewbot

    'URLAvatarService' imported but unused

    reviewbotreviewbot

    redefinition of unused 'unregister' from line 137

    reviewbotreviewbot

    redefinition of unused 'avatar_service_id' from line 27

    reviewbotreviewbot

    Typo: avatrs.

    daviddavid

    Instead of "Integrations can be configured", how about "Automation users can be configured..."

    daviddavid

    Maybe do one per line for future expansion?

    daviddavid

    Missing : after :py:class.

    chipx86chipx86

    Is this supposed to be "URLAvatarService" ?

    chipx86chipx86

    Too many blank lines.

    chipx86chipx86
    reviewbot
    1. Tool: Pyflakes
      Processed Files:
          djblets/avatars/forms.py
          djblets/avatars/services/url.py
          djblets/avatars/services/base.py
          djblets/avatars/services/__init__.py
          djblets/avatars/tests.py
          djblets/avatars/registry.py
      
      
      
      Tool: PEP8 Style Checker
      Processed Files:
          djblets/avatars/forms.py
          djblets/avatars/services/url.py
          djblets/avatars/services/base.py
          djblets/avatars/services/__init__.py
          djblets/avatars/tests.py
          djblets/avatars/registry.py
      
      
    2. djblets/avatars/services/__init__.py (Diff revision 1)
       
       
      Show all issues
       'AvatarService' imported but unused
      
    3. djblets/avatars/services/__init__.py (Diff revision 1)
       
       
      Show all issues
       'FileUploadService' imported but unused
      
    4. djblets/avatars/services/__init__.py (Diff revision 1)
       
       
      Show all issues
       'GravatarService' imported but unused
      
    5. djblets/avatars/services/__init__.py (Diff revision 1)
       
       
      Show all issues
       'URLAvatarService' imported but unused
      
    6. 
        
    brennie
    reviewbot
    1. Tool: Pyflakes
      Processed Files:
          djblets/avatars/forms.py
          djblets/avatars/services/url.py
          djblets/avatars/services/base.py
          djblets/avatars/services/__init__.py
          djblets/avatars/tests.py
          djblets/avatars/registry.py
      
      
      
      Tool: PEP8 Style Checker
      Processed Files:
          djblets/avatars/forms.py
          djblets/avatars/services/url.py
          djblets/avatars/services/base.py
          djblets/avatars/services/__init__.py
          djblets/avatars/tests.py
          djblets/avatars/registry.py
      
      
    2. 
        
    brennie
    reviewbot
    1. Tool: Pyflakes
      Processed Files:
          djblets/avatars/forms.py
          djblets/avatars/services/url.py
          djblets/avatars/services/base.py
          djblets/avatars/services/__init__.py
          djblets/avatars/tests.py
          djblets/avatars/registry.py
      
      
      
      Tool: PEP8 Style Checker
      Processed Files:
          djblets/avatars/forms.py
          djblets/avatars/services/url.py
          djblets/avatars/services/base.py
          djblets/avatars/services/__init__.py
          djblets/avatars/tests.py
          djblets/avatars/registry.py
      
      
    2. djblets/avatars/registry.py (Diff revision 3)
       
       
      Show all issues
       redefinition of unused 'unregister' from line 137
      
    3. 
        
    brennie
    reviewbot
    1. Tool: Pyflakes
      Processed Files:
          djblets/avatars/forms.py
          djblets/avatars/services/url.py
          djblets/avatars/services/base.py
          djblets/avatars/services/__init__.py
          djblets/avatars/tests.py
          djblets/avatars/registry.py
      
      
      
      Tool: PEP8 Style Checker
      Processed Files:
          djblets/avatars/forms.py
          djblets/avatars/services/url.py
          djblets/avatars/services/base.py
          djblets/avatars/services/__init__.py
          djblets/avatars/tests.py
          djblets/avatars/registry.py
      
      
    2. 
        
    brennie
    reviewbot
    1. Tool: Pyflakes
      Processed Files:
          djblets/avatars/forms.py
          djblets/avatars/services/url.py
          djblets/avatars/services/base.py
          djblets/avatars/services/__init__.py
          djblets/avatars/tests.py
          djblets/avatars/registry.py
      
      
      
      Tool: PEP8 Style Checker
      Processed Files:
          djblets/avatars/forms.py
          djblets/avatars/services/url.py
          djblets/avatars/services/base.py
          djblets/avatars/services/__init__.py
          djblets/avatars/tests.py
          djblets/avatars/registry.py
      
      
    2. 
        
    brennie
    reviewbot
    1. Tool: Pyflakes
      Processed Files:
          djblets/avatars/forms.py
          djblets/avatars/services/url.py
          djblets/avatars/services/base.py
          djblets/avatars/services/__init__.py
          djblets/avatars/tests.py
          djblets/avatars/registry.py
      
      
      
      Tool: PEP8 Style Checker
      Processed Files:
          djblets/avatars/forms.py
          djblets/avatars/services/url.py
          djblets/avatars/services/base.py
          djblets/avatars/services/__init__.py
          djblets/avatars/tests.py
          djblets/avatars/registry.py
      
      
    2. djblets/avatars/tests.py (Diff revision 6)
       
       
      Show all issues
       redefinition of unused 'avatar_service_id' from line 27
      
    3. 
        
    brennie
    reviewbot
    1. Tool: Pyflakes
      Processed Files:
          djblets/avatars/forms.py
          djblets/avatars/services/url.py
          djblets/avatars/services/base.py
          djblets/avatars/services/__init__.py
          djblets/avatars/tests.py
          djblets/avatars/registry.py
      
      
      
      Tool: PEP8 Style Checker
      Processed Files:
          djblets/avatars/forms.py
          djblets/avatars/services/url.py
          djblets/avatars/services/base.py
          djblets/avatars/services/__init__.py
          djblets/avatars/tests.py
          djblets/avatars/registry.py
      
      
    2. 
        
    david
    1. 
        
    2. djblets/avatars/services/url.py (Diff revision 7)
       
       
      Show all issues

      Typo: avatrs.

    3. djblets/avatars/services/url.py (Diff revision 7)
       
       
      Show all issues

      Instead of "Integrations can be configured", how about "Automation users can be configured..."

    4. djblets/avatars/tests.py (Diff revision 7)
       
       
       
      Show all issues

      Maybe do one per line for future expansion?

    5. 
        
    brennie
    reviewbot
    1. Tool: Pyflakes
      Processed Files:
          djblets/avatars/forms.py
          djblets/avatars/services/url.py
          djblets/avatars/services/base.py
          djblets/avatars/services/__init__.py
          djblets/avatars/tests.py
          djblets/avatars/registry.py
      
      
      
      Tool: PEP8 Style Checker
      Processed Files:
          djblets/avatars/forms.py
          djblets/avatars/services/url.py
          djblets/avatars/services/base.py
          djblets/avatars/services/__init__.py
          djblets/avatars/tests.py
          djblets/avatars/registry.py
      
      
    2. 
        
    david
    1. Ship It!
    2. 
        
    chipx86
    1. 
        
    2. djblets/avatars/services/base.py (Diff revision 8)
       
       
      Show all issues

      Missing : after :py:class.

    3. djblets/avatars/services/url.py (Diff revision 8)
       
       
      Show all issues

      Is this supposed to be "URLAvatarService" ?

    4. djblets/avatars/tests.py (Diff revision 8)
       
       
       
       
       
       
      Show all issues

      Too many blank lines.

    5. 
        
    brennie
    Review request changed
    Status:
    Completed
    Change Summary:
    Pushed to release-0.10.x (8656c59)