Add some additional query options to the status updates list API.

Review Request #8552 — Created Nov. 22, 2016 and submitted

Information

Review Board
release-3.0.x
5e50a8e...

Reviewers

This change adds a few additional options to the status updates list API for
querying by the change description, service ID, or state.

Ran unit tests.

Description From Last Updated

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

reviewbotreviewbot

&= ?

brenniebrennie

.filter(Q()) is equivalent to .all() so you rewrite this all as: q = Q() if is_list: # ... return review_request.status_updates.filter(q)

brenniebrennie
reviewbot
  1. Tool: Pyflakes
    Processed Files:
        reviewboard/testing/testcase.py
        reviewboard/webapi/tests/test_status_update.py
        reviewboard/webapi/resources/status_update.py
    
    
    
    Tool: PEP8 Style Checker
    Processed Files:
        reviewboard/testing/testcase.py
        reviewboard/webapi/tests/test_status_update.py
        reviewboard/webapi/resources/status_update.py
    
    
  2. reviewboard/testing/testcase.py (Diff revision 1)
     
     
    Show all issues
    Col: 80
     E501 line too long (92 > 79 characters)
    
  3. 
      
brennie
  1. 
      
  2. Show all issues

    &= ?

    1. For some reason, we don't use this form anywhere. I'd rather stay consistent with existing code.

  3. 
      
brennie
  1. 
      
  2. reviewboard/webapi/resources/status_update.py (Diff revision 1)
     
     
     
     
    Show all issues

    .filter(Q()) is equivalent to .all() so you rewrite this all as:

    q = Q()
    
    if is_list:
        # ...
    
    return review_request.status_updates.filter(q)
    
  3. 
      
david
Review request changed
Status:
Completed
Change Summary:
Pushed to release-3.0.x (45f8fa0)