• 
      

    Don't associate draft screenshots with review requests until published.

    Review Request #2214 — Created March 24, 2011 and submitted

    Information

    Review Board
    master

    Reviewers

    Don't associate draft screenshots with review requests until published.
    
    We've always immediately associated a screenshot with a review request,
    which meant users could see it even if it was part of a draft. This was
    inconsistent with the way that diffs and field changes worked. It also
    meant that the entries in change descriptions weren't correct.
    
    Now we keep it on the draft only until published. Everything has been
    updated to work with this change. The web UI just simply works, since
    it's already looking at the list on the draft when present, and the
    web UI and model now work properly when a review request isn't directly
    associated (it's accessed through the draft in that case).
    All unit tests pass.
    
    Performed some tests by hand to create, update and remove screenshots.
    Verified that the user owning the review request would see the correct
    versions, but that a different user sees the public versions only.
    david
    1. Thank you so much for finally fixing this!
    2.