• 
      

    Add support for self-hosted hosting services.

    Review Request #4144 — Created May 12, 2013 and submitted

    Information

    Review Board
    release-1.7.x

    Reviewers

    Add support for self-hosted hosting services.
    
    Now, hosting services an be marked as "self-hosted," which will cause a
    "Domain" field to show up for the service above the account entry. Many
    of the functions now take a domain.
    
    Accounts now take a domain as well, and we filter registered accounts by
    the domain.
    
    Bug trackers have the same sort of setup as well.
    
    GitHub's had a few more changes added to it for cleanup to use the
    hosting URL and to not duplicate so much code.
    
    Unit tests were added for all of this.
    Unit tests pass.
    
    Tested this extensively with another change that makes use of this.
    Description From Last Updated

    Col: 21 E126 continuation line over-indented for hanging indent

    reviewbotreviewbot

    Col: 45 E126 continuation line over-indented for hanging indent

    reviewbotreviewbot

    Col: 45 E126 continuation line over-indented for hanging indent

    reviewbotreviewbot

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

    reviewbotreviewbot

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

    reviewbotreviewbot

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

    reviewbotreviewbot

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

    reviewbotreviewbot

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

    reviewbotreviewbot

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

    reviewbotreviewbot

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

    reviewbotreviewbot

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

    reviewbotreviewbot

    Col: 21 E126 continuation line over-indented for hanging indent

    reviewbotreviewbot

    Col: 45 E126 continuation line over-indented for hanging indent

    reviewbotreviewbot

    Col: 45 E126 continuation line over-indented for hanging indent

    reviewbotreviewbot

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

    reviewbotreviewbot

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

    reviewbotreviewbot

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

    reviewbotreviewbot

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

    reviewbotreviewbot

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

    reviewbotreviewbot

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

    reviewbotreviewbot

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

    reviewbotreviewbot

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

    reviewbotreviewbot

    Why this? local_site_name is already defined.

    daviddavid

    Col: 21 E126 continuation line over-indented for hanging indent

    reviewbotreviewbot

    Col: 45 E126 continuation line over-indented for hanging indent

    reviewbotreviewbot

    Col: 45 E126 continuation line over-indented for hanging indent

    reviewbotreviewbot

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

    reviewbotreviewbot

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

    reviewbotreviewbot

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

    reviewbotreviewbot

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

    reviewbotreviewbot

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

    reviewbotreviewbot

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

    reviewbotreviewbot

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

    reviewbotreviewbot

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

    reviewbotreviewbot
    reviewbot
    1. This is a review from Review Bot.
        Tool: PEP8 Style Checker
        Processed Files:
          reviewboard/hostingsvcs/models.py
          reviewboard/webapi/resources.py
          reviewboard/scmtools/tests.py
          reviewboard/scmtools/admin.py
          reviewboard/hostingsvcs/evolutions/account_hosting_url.py
          reviewboard/scmtools/forms.py
          reviewboard/hostingsvcs/evolutions/__init__.py
          reviewboard/hostingsvcs/service.py
          reviewboard/hostingsvcs/github.py
          reviewboard/hostingsvcs/tests.py
        Ignored Files:
          reviewboard/static/rb/js/repositoryform.js
      
      
    2. reviewboard/scmtools/forms.py (Diff revision 1)
       
       
      Show all issues
      Col: 21
       E126 continuation line over-indented for hanging indent
      
    3. reviewboard/scmtools/tests.py (Diff revision 1)
       
       
      Show all issues
      Col: 45
       E126 continuation line over-indented for hanging indent
      
    4. reviewboard/scmtools/tests.py (Diff revision 1)
       
       
      Show all issues
      Col: 45
       E126 continuation line over-indented for hanging indent
      
    5. reviewboard/scmtools/tests.py (Diff revision 1)
       
       
      Show all issues
      Col: 80
       E501 line too long (87 > 79 characters)
      
    6. reviewboard/scmtools/tests.py (Diff revision 1)
       
       
      Show all issues
      Col: 80
       E501 line too long (85 > 79 characters)
      
    7. reviewboard/scmtools/tests.py (Diff revision 1)
       
       
      Show all issues
      Col: 80
       E501 line too long (92 > 79 characters)
      
    8. reviewboard/scmtools/tests.py (Diff revision 1)
       
       
      Show all issues
      Col: 80
       E501 line too long (81 > 79 characters)
      
    9. reviewboard/scmtools/tests.py (Diff revision 1)
       
       
      Show all issues
      Col: 80
       E501 line too long (100 > 79 characters)
      
    10. reviewboard/scmtools/tests.py (Diff revision 1)
       
       
      Show all issues
      Col: 80
       E501 line too long (81 > 79 characters)
      
    11. reviewboard/scmtools/tests.py (Diff revision 1)
       
       
      Show all issues
      Col: 80
       E501 line too long (83 > 79 characters)
      
    12. reviewboard/webapi/resources.py (Diff revision 1)
       
       
      Show all issues
      Col: 80
       E501 line too long (80 > 79 characters)
      
    13. 
        
    chipx86
    reviewbot
    1. This is a review from Review Bot.
        Tool: PEP8 Style Checker
        Processed Files:
          reviewboard/hostingsvcs/models.py
          reviewboard/webapi/resources.py
          reviewboard/scmtools/tests.py
          reviewboard/scmtools/admin.py
          reviewboard/hostingsvcs/evolutions/account_hosting_url.py
          reviewboard/scmtools/forms.py
          reviewboard/hostingsvcs/evolutions/__init__.py
          reviewboard/hostingsvcs/service.py
          reviewboard/hostingsvcs/github.py
          reviewboard/hostingsvcs/tests.py
        Ignored Files:
          reviewboard/static/rb/js/repositoryform.js
      
      
    2. reviewboard/scmtools/forms.py (Diff revision 2)
       
       
      Show all issues
      Col: 21
       E126 continuation line over-indented for hanging indent
      
    3. reviewboard/scmtools/tests.py (Diff revision 2)
       
       
      Show all issues
      Col: 45
       E126 continuation line over-indented for hanging indent
      
    4. reviewboard/scmtools/tests.py (Diff revision 2)
       
       
      Show all issues
      Col: 45
       E126 continuation line over-indented for hanging indent
      
    5. reviewboard/scmtools/tests.py (Diff revision 2)
       
       
      Show all issues
      Col: 80
       E501 line too long (87 > 79 characters)
      
    6. reviewboard/scmtools/tests.py (Diff revision 2)
       
       
      Show all issues
      Col: 80
       E501 line too long (85 > 79 characters)
      
    7. reviewboard/scmtools/tests.py (Diff revision 2)
       
       
      Show all issues
      Col: 80
       E501 line too long (92 > 79 characters)
      
    8. reviewboard/scmtools/tests.py (Diff revision 2)
       
       
      Show all issues
      Col: 80
       E501 line too long (81 > 79 characters)
      
    9. reviewboard/scmtools/tests.py (Diff revision 2)
       
       
      Show all issues
      Col: 80
       E501 line too long (100 > 79 characters)
      
    10. reviewboard/scmtools/tests.py (Diff revision 2)
       
       
      Show all issues
      Col: 80
       E501 line too long (81 > 79 characters)
      
    11. reviewboard/scmtools/tests.py (Diff revision 2)
       
       
      Show all issues
      Col: 80
       E501 line too long (83 > 79 characters)
      
    12. reviewboard/webapi/resources.py (Diff revision 2)
       
       
      Show all issues
      Col: 80
       E501 line too long (80 > 79 characters)
      
    13. 
        
    david
    1. 
        
    2. reviewboard/webapi/resources.py (Diff revision 2)
       
       
       
       
       
      Show all issues
      Why this? local_site_name is already defined.
      1. Couldn't tell you. I wrote this a while back. Screwed up. Fixing it.
    3. 
        
    chipx86
    reviewbot
    1. This is a review from Review Bot.
        Tool: PEP8 Style Checker
        Processed Files:
          reviewboard/hostingsvcs/models.py
          reviewboard/webapi/resources.py
          reviewboard/scmtools/tests.py
          reviewboard/scmtools/admin.py
          reviewboard/hostingsvcs/evolutions/account_hosting_url.py
          reviewboard/scmtools/forms.py
          reviewboard/hostingsvcs/evolutions/__init__.py
          reviewboard/hostingsvcs/service.py
          reviewboard/hostingsvcs/github.py
          reviewboard/hostingsvcs/tests.py
        Ignored Files:
          reviewboard/static/rb/js/repositoryform.js
      
      
    2. reviewboard/scmtools/forms.py (Diff revision 3)
       
       
      Show all issues
      Col: 21
       E126 continuation line over-indented for hanging indent
      
    3. reviewboard/scmtools/tests.py (Diff revision 3)
       
       
      Show all issues
      Col: 45
       E126 continuation line over-indented for hanging indent
      
    4. reviewboard/scmtools/tests.py (Diff revision 3)
       
       
      Show all issues
      Col: 45
       E126 continuation line over-indented for hanging indent
      
    5. reviewboard/scmtools/tests.py (Diff revision 3)
       
       
      Show all issues
      Col: 80
       E501 line too long (87 > 79 characters)
      
    6. reviewboard/scmtools/tests.py (Diff revision 3)
       
       
      Show all issues
      Col: 80
       E501 line too long (85 > 79 characters)
      
    7. reviewboard/scmtools/tests.py (Diff revision 3)
       
       
      Show all issues
      Col: 80
       E501 line too long (92 > 79 characters)
      
    8. reviewboard/scmtools/tests.py (Diff revision 3)
       
       
      Show all issues
      Col: 80
       E501 line too long (81 > 79 characters)
      
    9. reviewboard/scmtools/tests.py (Diff revision 3)
       
       
      Show all issues
      Col: 80
       E501 line too long (100 > 79 characters)
      
    10. reviewboard/scmtools/tests.py (Diff revision 3)
       
       
      Show all issues
      Col: 80
       E501 line too long (81 > 79 characters)
      
    11. reviewboard/scmtools/tests.py (Diff revision 3)
       
       
      Show all issues
      Col: 80
       E501 line too long (83 > 79 characters)
      
    12. reviewboard/webapi/resources.py (Diff revision 3)
       
       
      Show all issues
      Col: 80
       E501 line too long (80 > 79 characters)
      
    13. 
        
    david
    1. Ship It!
    2. 
        
    chipx86
    Review request changed
    Status:
    Completed