Advertise GitHub Enterprise support in Power Pack

Review Request #7757 — Created Nov. 6, 2015 and submitted

Information

Review Board
release-2.5.x

Reviewers

This patch adds support for fake hosting services that Review Board
does not provide, but Power Pack does. These services do not implement
anything, but are instead shown in the "Add Repository" form when Power
Pack is not enabled.

When a fake hosting service is selected in the form, an advertisement
for Power Pack is shown and the form becomes unsubmittable. This is to
ensure that users don't end up getting an error when trying to use the
hosting service that is not actually registered in the database.

A large portion of this change is updating repositoryform.js to bring
it in line with the rest of our JavaScript by prefixing all jQuery
objects with $.

Ran unit tests.

Manually verified that the fake hosting service appeared only when
Power Pack was not enabled.


Description From Last Updated

Should be "Power Pack". For the text, how about: "To use GitHub Enterprise with Review Board, you need to install …

chipx86chipx86

Should be "Power Pack". We should also run all these strings through gettext.

daviddavid

We can make this text a bit more friendly. How about: GitHub enterprise integration is available with Power Pack, an …

daviddavid

Undo this change, please.

daviddavid

Undo this change.

daviddavid

Undo this (for anonymous functions, (...) is next to the keyword)

daviddavid

This is all good but should probably be done in a separate commit.

daviddavid

Hmm. Would this make more sense in the django template?

daviddavid

"alo" -> "also"

daviddavid

This indentation change is wrong, but can you just stick this whole string in gettext instead?

daviddavid

s/has/have/

daviddavid

!isCustom is redundant.

brenniebrennie

This should all be outside of the if.

brenniebrennie

Unnecessary once the $toolRow.setVisible call is moved.

brenniebrennie
reviewbot
  1. Tool: Pyflakes
    Processed Files:
        reviewboard/hostingsvcs/fake.py
        reviewboard/scmtools/forms.py
    
    Ignored Files:
        reviewboard/static/rb/js/repositoryform.js
        reviewboard/static/rb/css/ui/forms.less
    
    
    
    Tool: PEP8 Style Checker
    Processed Files:
        reviewboard/hostingsvcs/fake.py
        reviewboard/scmtools/forms.py
    
    Ignored Files:
        reviewboard/static/rb/js/repositoryform.js
        reviewboard/static/rb/css/ui/forms.less
    
    
  2. 
      
brennie
reviewbot
  1. Tool: Pyflakes
    Processed Files:
        reviewboard/hostingsvcs/fake.py
        reviewboard/scmtools/forms.py
    
    Ignored Files:
        reviewboard/static/rb/js/repositoryform.js
        reviewboard/static/rb/css/ui/forms.less
    
    
    
    Tool: PEP8 Style Checker
    Processed Files:
        reviewboard/hostingsvcs/fake.py
        reviewboard/scmtools/forms.py
    
    Ignored Files:
        reviewboard/static/rb/js/repositoryform.js
        reviewboard/static/rb/css/ui/forms.less
    
    
  2. 
      
brennie
david
  1. 
      
  2. Show all issues

    Should be "Power Pack". We should also run all these strings through gettext.

  3. reviewboard/static/rb/js/repositoryform.js (Diff revision 2)
     
     
     
     
     
     
     
    Show all issues

    We can make this text a bit more friendly. How about:

    GitHub enterprise integration is available with Power Pack, an extension which also offers powerful reports, document review, and more.

    Also if you keep the link to Beanbag's website, you should fix the URL :)

  4. reviewboard/static/rb/js/repositoryform.js (Diff revision 2)
     
     
     
    Show all issues

    Undo this change, please.

  5. reviewboard/static/rb/js/repositoryform.js (Diff revision 2)
     
     
     
     
    Show all issues

    Undo this change.

  6. Show all issues

    Undo this (for anonymous functions, (...) is next to the keyword)

  7. reviewboard/static/rb/js/repositoryform.js (Diff revision 2)
     
     
     
     
     
     
     
     
     
    Show all issues

    This is all good but should probably be done in a separate commit.

    1. The formatting changes have been moved to https://reviews.reviewboard.org/r/7761/.

  8. 
      
brennie
reviewbot
  1. Tool: Pyflakes
    Processed Files:
        reviewboard/hostingsvcs/fake.py
        reviewboard/scmtools/forms.py
    
    Ignored Files:
        reviewboard/static/rb/js/repositoryform.js
        reviewboard/static/rb/css/ui/forms.less
    
    
    
    Tool: PEP8 Style Checker
    Processed Files:
        reviewboard/hostingsvcs/fake.py
        reviewboard/scmtools/forms.py
    
    Ignored Files:
        reviewboard/static/rb/js/repositoryform.js
        reviewboard/static/rb/css/ui/forms.less
    
    
  2. 
      
brennie
reviewbot
  1. Tool: Pyflakes
    Processed Files:
        reviewboard/hostingsvcs/fake.py
        reviewboard/scmtools/forms.py
    
    Ignored Files:
        reviewboard/static/rb/js/repositoryform.js
        reviewboard/static/rb/css/ui/forms.less
    
    
    
    Tool: PEP8 Style Checker
    Processed Files:
        reviewboard/hostingsvcs/fake.py
        reviewboard/scmtools/forms.py
    
    Ignored Files:
        reviewboard/static/rb/js/repositoryform.js
        reviewboard/static/rb/css/ui/forms.less
    
    
  2. 
      
brennie
reviewbot
  1. Tool: Pyflakes
    Processed Files:
        reviewboard/hostingsvcs/fake.py
        reviewboard/scmtools/forms.py
    
    Ignored Files:
        reviewboard/static/rb/js/repositoryform.js
        reviewboard/static/rb/css/ui/forms.less
    
    
    
    Tool: PEP8 Style Checker
    Processed Files:
        reviewboard/hostingsvcs/fake.py
        reviewboard/scmtools/forms.py
    
    Ignored Files:
        reviewboard/static/rb/js/repositoryform.js
        reviewboard/static/rb/css/ui/forms.less
    
    
  2. 
      
brennie
reviewbot
  1. Tool: Pyflakes
    Processed Files:
        reviewboard/hostingsvcs/fake.py
        reviewboard/scmtools/forms.py
    
    Ignored Files:
        reviewboard/static/rb/js/repositoryform.js
        reviewboard/static/rb/css/ui/forms.less
    
    
    
    Tool: PEP8 Style Checker
    Processed Files:
        reviewboard/hostingsvcs/fake.py
        reviewboard/scmtools/forms.py
    
    Ignored Files:
        reviewboard/static/rb/js/repositoryform.js
        reviewboard/static/rb/css/ui/forms.less
    
    
  2. 
      
david
  1. 
      
  2. reviewboard/static/rb/js/repositoryform.js (Diff revision 6)
     
     
     
     
     
     
     
    Show all issues

    Hmm. Would this make more sense in the django template?

  3. Show all issues

    "alo" -> "also"

  4. reviewboard/static/rb/js/repositoryform.js (Diff revision 6)
     
     
     
    Show all issues

    This indentation change is wrong, but can you just stick this whole string in gettext instead?

  5. 
      
brennie
reviewbot
  1. Tool: Pyflakes
    Processed Files:
        reviewboard/hostingsvcs/fake.py
        reviewboard/scmtools/forms.py
    
    Ignored Files:
        reviewboard/static/rb/js/repositoryform.js
        reviewboard/static/rb/css/ui/forms.less
    
    
    
    Tool: PEP8 Style Checker
    Processed Files:
        reviewboard/hostingsvcs/fake.py
        reviewboard/scmtools/forms.py
    
    Ignored Files:
        reviewboard/static/rb/js/repositoryform.js
        reviewboard/static/rb/css/ui/forms.less
    
    
  2. 
      
brennie
reviewbot
  1. Tool: Pyflakes
    Processed Files:
        reviewboard/hostingsvcs/fake.py
        reviewboard/scmtools/forms.py
    
    Ignored Files:
        reviewboard/static/rb/js/repositoryform.js
        reviewboard/static/rb/css/ui/forms.less
    
    
    
    Tool: PEP8 Style Checker
    Processed Files:
        reviewboard/hostingsvcs/fake.py
        reviewboard/scmtools/forms.py
    
    Ignored Files:
        reviewboard/static/rb/js/repositoryform.js
        reviewboard/static/rb/css/ui/forms.less
    
    
  2. 
      
david
  1. 
      
  2. Show all issues

    s/has/have/

  3. 
      
chipx86
  1. 
      
  2. Show all issues

    Should be "Power Pack".

    For the text, how about:

    "To use GitHub Enterprise with Review Board, you need to install Power Pack.

    Power Pack offers support for GitHub Enterprise, Microsoft Team Foundation Server, PDF document review, reporting, and more."

    1. This screenshot is old, and I already suggested similar changes. Look at the text in the code, instead.

    2. I updated the screenshot, Christian. Let me know if you're fine with the new wording.

  3. 
      
brennie
reviewbot
  1. Tool: Pyflakes
    Processed Files:
        reviewboard/hostingsvcs/fake.py
        reviewboard/scmtools/forms.py
    
    Ignored Files:
        reviewboard/static/rb/js/repositoryform.js
        reviewboard/static/rb/css/ui/forms.less
    
    
    
    Tool: PEP8 Style Checker
    Processed Files:
        reviewboard/hostingsvcs/fake.py
        reviewboard/scmtools/forms.py
    
    Ignored Files:
        reviewboard/static/rb/js/repositoryform.js
        reviewboard/static/rb/css/ui/forms.less
    
    
  2. 
      
brennie
reviewbot
  1. Tool: Pyflakes
    Processed Files:
        reviewboard/hostingsvcs/fake.py
        reviewboard/scmtools/forms.py
    
    Ignored Files:
        reviewboard/static/rb/js/repositoryform.js
        reviewboard/static/rb/css/ui/forms.less
    
    
    
    Tool: PEP8 Style Checker
    Processed Files:
        reviewboard/hostingsvcs/fake.py
        reviewboard/scmtools/forms.py
    
    Ignored Files:
        reviewboard/static/rb/js/repositoryform.js
        reviewboard/static/rb/css/ui/forms.less
    
    
  2. 
      
brennie
reviewbot
  1. Tool: Pyflakes
    Processed Files:
        reviewboard/hostingsvcs/fake.py
        reviewboard/scmtools/forms.py
    
    Ignored Files:
        reviewboard/static/rb/js/repositoryform.js
        reviewboard/static/rb/css/ui/forms.less
    
    
    
    Tool: PEP8 Style Checker
    Processed Files:
        reviewboard/hostingsvcs/fake.py
        reviewboard/scmtools/forms.py
    
    Ignored Files:
        reviewboard/static/rb/js/repositoryform.js
        reviewboard/static/rb/css/ui/forms.less
    
    
  2. 
      
brennie
reviewbot
  1. Tool: Pyflakes
    Processed Files:
        reviewboard/hostingsvcs/fake.py
        reviewboard/scmtools/forms.py
    
    Ignored Files:
        reviewboard/static/rb/js/repositoryform.js
        reviewboard/static/rb/css/ui/forms.less
    
    
    
    Tool: PEP8 Style Checker
    Processed Files:
        reviewboard/hostingsvcs/fake.py
        reviewboard/scmtools/forms.py
    
    Ignored Files:
        reviewboard/static/rb/js/repositoryform.js
        reviewboard/static/rb/css/ui/forms.less
    
    
  2. 
      
brennie
  1. 
      
  2. Show all issues

    !isCustom is redundant.

  3. reviewboard/static/rb/js/repositoryform.js (Diff revision 12)
     
     
     
     
     
     
     
    Show all issues

    This should all be outside of the if.

  4. reviewboard/static/rb/js/repositoryform.js (Diff revision 12)
     
     
     
     
    Show all issues

    Unnecessary once the $toolRow.setVisible call is moved.

  5. 
      
brennie
reviewbot
  1. Tool: Pyflakes
    Processed Files:
        reviewboard/hostingsvcs/fake.py
        reviewboard/scmtools/forms.py
    
    Ignored Files:
        reviewboard/static/rb/js/repositoryform.js
        reviewboard/static/rb/css/ui/forms.less
    
    
    
    Tool: PEP8 Style Checker
    Processed Files:
        reviewboard/hostingsvcs/fake.py
        reviewboard/scmtools/forms.py
    
    Ignored Files:
        reviewboard/static/rb/js/repositoryform.js
        reviewboard/static/rb/css/ui/forms.less
    
    
  2. 
      
brennie
reviewbot
  1. Tool: Pyflakes
    Processed Files:
        reviewboard/scmtools/fake.py
        reviewboard/scmtools/forms.py
    
    Ignored Files:
        reviewboard/templates/admin/repository_fields.js
    
    
    
    Tool: PEP8 Style Checker
    Processed Files:
        reviewboard/scmtools/fake.py
        reviewboard/scmtools/forms.py
    
    Ignored Files:
        reviewboard/templates/admin/repository_fields.js
    
    
  2. 
      
brennie
Review request changed
Status:
Completed
Change Summary:
Pushed to release-2.5.x (b906997)