• 
      

    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 …

    chipx86 chipx86

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

    david david

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

    david david

    Undo this change, please.

    david david

    Undo this change.

    david david

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

    david david

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

    david david

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

    david david

    "alo" -> "also"

    david david

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

    david david

    s/has/have/

    david david

    !isCustom is redundant.

    brennie brennie

    This should all be outside of the if.

    brennie brennie

    Unnecessary once the $toolRow.setVisible call is moved.

    brennie 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
    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)