• 
      
    Fish Trophy

    chipx86 got a fish trophy!

    Fish Trophy

    Add condition choices/operators for review requests, repositories, and more.

    Review Request #8338 — Created Aug. 29, 2016 and submitted

    Information

    Review Board
    release-3.0.x
    91a96cf...

    Reviewers

    This introduces a new set of standardized condition choices and
    operators for any extensions, integrations, or built-in UI that wants to
    offer user-customizable condition sets based on review requests,
    repositories, or review groups.
    
    The repository-based condition choices/operators allow for matching
    repositories based on the SCMTool type, the public/privacy level,
    set/unset state, or by comparing to a list of user-defined repository
    entries.
    
    The review group condition choices/operators allow for matching a
    list/queryset of review groups based on the invite-only flags,
    empty/non-empty states, or by comparing to a list of user-defined review
    group entries.
    
    The review request condition choices/operators build upon both of these,
    offering those choices in relation to the review request's target group
    list and associated repository. It also includes operators for built-in
    fields and for matching modified files in the current diff.
    
    Unit tests were added that cover everything but the most trivial
    choices (those that are simply based on already-tested choice classes in
    Djblets).

    Unit tests pass.

    Made use of these in an integration. From current testing, they work
    as expected (though more thorough testing will be needed for corner
    cases).

    Description From Last Updated

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

    reviewbotreviewbot

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

    reviewbotreviewbot

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

    reviewbotreviewbot

    'Tool' imported but unused

    reviewbotreviewbot

    Was this intended to be "Are all"?

    daviddavid

    The label on the field has a capital "Done"

    daviddavid
    reviewbot
    1. Tool: Pyflakes
      Processed Files:
          reviewboard/site/conditions.py
          reviewboard/scmtools/conditions.py
          reviewboard/reviews/tests/test_conditions.py
          reviewboard/scmtools/tests/test_conditions.py
          reviewboard/reviews/conditions.py
      
      
      
      Tool: PEP8 Style Checker
      Processed Files:
          reviewboard/site/conditions.py
          reviewboard/scmtools/conditions.py
          reviewboard/reviews/tests/test_conditions.py
          reviewboard/scmtools/tests/test_conditions.py
          reviewboard/reviews/conditions.py
      
      
    2. Show all issues
      Col: 80
       E501 line too long (80 > 79 characters)
      
    3. Show all issues
      Col: 80
       E501 line too long (80 > 79 characters)
      
    4. Show all issues
      Col: 80
       E501 line too long (80 > 79 characters)
      
    5. Show all issues
       'Tool' imported but unused
      
    6. 
        
    chipx86
    reviewbot
    1. Tool: Pyflakes
      Processed Files:
          reviewboard/site/conditions.py
          reviewboard/scmtools/conditions.py
          reviewboard/reviews/tests/test_conditions.py
          reviewboard/scmtools/tests/test_conditions.py
          reviewboard/reviews/conditions.py
      
      
      
      Tool: PEP8 Style Checker
      Processed Files:
          reviewboard/site/conditions.py
          reviewboard/scmtools/conditions.py
          reviewboard/reviews/tests/test_conditions.py
          reviewboard/scmtools/tests/test_conditions.py
          reviewboard/reviews/conditions.py
      
      
    2. 
        
    david
    1. 
        
    2. reviewboard/reviews/conditions.py (Diff revision 2)
       
       
      Show all issues

      Was this intended to be "Are all"?

    3. reviewboard/reviews/conditions.py (Diff revision 2)
       
       
      Show all issues

      The label on the field has a capital "Done"

    4. 
        
    chipx86
    reviewbot
    1. Tool: Pyflakes
      Processed Files:
          reviewboard/site/conditions.py
          reviewboard/scmtools/conditions.py
          reviewboard/reviews/tests/test_conditions.py
          reviewboard/scmtools/tests/test_conditions.py
          reviewboard/reviews/conditions.py
      
      
      
      Tool: PEP8 Style Checker
      Processed Files:
          reviewboard/site/conditions.py
          reviewboard/scmtools/conditions.py
          reviewboard/reviews/tests/test_conditions.py
          reviewboard/scmtools/tests/test_conditions.py
          reviewboard/reviews/conditions.py
      
      
    2. 
        
    david
    1. Ship It!
    2. 
        
    chipx86
    Review request changed
    Status:
    Completed
    Change Summary:
    Pushed to release-3.0.x (7619f51)