• 
      

    Fix API issues creating comments on draft file attachments.

    Review Request #12962 — Created April 19, 2023 and submitted

    Information

    Review Board
    release-6.x

    Reviewers

    This change fixes up a couple issues with the API making comments on
    not-yet-published file attachments. The main problem here is that draft
    attachments are related only to the draft and not yet to the review
    request. This change fixes up the questios for both get_queryset and
    create to handle this.

    • Ran unit tests.
    • Added some comments to file attachments which were not yet published.
    Summary ID
    Fix API issues creating comments on draft file attachments.
    This change fixes up a couple issues with the API making comments on not-yet-published file attachments. The main problem here is that draft attachments are related only to the draft and not yet to the review request. This change fixes up the questios for both `get_queryset` and `create` to handle this. Testing Done: - Ran unit tests. - Added some comments to file attachments which were not yet published.
    8908d2b022c1a6455805c8f60cd7a9244ff8d4df
    Description From Last Updated

    Could add a new test for POSTing comments to a draft file attachment.

    maubinmaubin
    maubin
    1. 
        
    2. Show all issues

      Could add a new test for POSTing comments to a draft file attachment.

    3. 
        
    david
    maubin
    1. Ship It!
    2. 
        
    david
    Review request changed
    Status:
    Completed
    Change Summary:
    Pushed to release-6.x (80cf91b)