• 
      

    Pass ReviewRequestPageDataMixin to fields that require it during render

    Review Request #10083 — Created July 13, 2018 and discarded

    Information

    Review Board
    release-3.0.x

    Reviewers

    We have several fields that use ReviewRequestPageDataMixin, but they
    only really use it for rendering change description entries. As such,
    the review request page data is not passed to them during rendering. If
    we wish to take advantage of all the queries that have been done, we
    need to pass in this data.

    The review request page data is now passed into the template context of
    the review detail view and is used by the
    {% for_review_request_field %} template tag.

    Ran unit tests.

    Description From Last Updated

    F841 local variable 'review_request' is assigned to but never used

    reviewbotreviewbot

    E501 line too long (84 > 79 characters)

    reviewbotreviewbot

    F841 local variable 'review_request' is assigned to but never used

    reviewbotreviewbot

    E501 line too long (84 > 79 characters)

    reviewbotreviewbot

    F821 undefined name 'data'

    reviewbotreviewbot

    E501 line too long (87 > 79 characters)

    reviewbotreviewbot
    brennie
    Review request changed
    Change Summary:

    Fix unit test fails.

    Commit:
    990055c1fb2fc56e4abdcec01d9f3692ce98d88f
    379b39aca9fad01987b793f138225b09f84c716b

    Checks run (1 failed, 1 succeeded)

    flake8 failed.
    JSHint passed.

    flake8

    brennie
    Review request changed
    Commit:
    379b39aca9fad01987b793f138225b09f84c716b
    34a165c7fdcea50222617be8ef9dfa6d73047fc8

    Checks run (1 failed, 1 succeeded)

    flake8 failed.
    JSHint passed.

    flake8

    brennie
    Review request changed
    Commit:
    34a165c7fdcea50222617be8ef9dfa6d73047fc8
    7904615d2a783796723b4e605ea68cb7e4c5c0be

    Checks run (1 failed, 1 succeeded)

    flake8 failed.
    JSHint passed.

    flake8

    brennie
    1. 
        
    2. reviewboard/reviews/views.py (Diff revision 4)
       
       
       

      Im not convinced this change is the correct way to do things since we have to introduce new queries to the diffviewer page.

    3. 
        
    brennie
    Review request changed
    Status:
    Discarded