• 
      

    Consolidate file attachment comment serialization.

    Review Request #7605 — Created Aug. 24, 2015 and submitted

    Information

    Review Board
    release-2.0.x

    Reviewers

    We had two places where file attachment comments were being serialized:
    In ReviewUI, and in a template tag. These were inconsistent and led to
    problems in text/rich text information, depending on the call site.
    
    The template tag now calls out to the review UI for serialization,
    ensuring we only do this in one place. That serialization has also been
    updated to store rich text information and to do normalization of the
    text for edit.

    Unit tests pass.

    Tested this manually along with another change, and ensured that file
    attachment comments always had the correct initial state.

    Description From Last Updated

    'escape' imported but unused

    reviewbotreviewbot

    'escape' imported but unused

    reviewbotreviewbot

    local variable 'result' is assigned to but never used

    reviewbotreviewbot
    reviewbot
    1. Tool: Pyflakes
      Processed Files:
          reviewboard/reviews/ui/base.py
          reviewboard/reviews/templatetags/reviewtags.py
          reviewboard/reviews/ui/tests.py
      
      
      
      Tool: PEP8 Style Checker
      Processed Files:
          reviewboard/reviews/ui/base.py
          reviewboard/reviews/templatetags/reviewtags.py
          reviewboard/reviews/ui/tests.py
      
      
    2. Show all issues
       'escape' imported but unused
      
    3. reviewboard/reviews/ui/base.py (Diff revision 1)
       
       
      Show all issues
       'escape' imported but unused
      
    4. reviewboard/reviews/ui/base.py (Diff revision 1)
       
       
      Show all issues
       local variable 'result' is assigned to but never used
      
    5. 
        
    chipx86
    reviewbot
    1. Tool: PEP8 Style Checker
      Processed Files:
          reviewboard/reviews/ui/base.py
          reviewboard/reviews/templatetags/reviewtags.py
          reviewboard/reviews/ui/tests.py
      
      
      
      Tool: Pyflakes
      Processed Files:
          reviewboard/reviews/ui/base.py
          reviewboard/reviews/templatetags/reviewtags.py
          reviewboard/reviews/ui/tests.py
      
      
    2. 
        
    brennie
    1. Ship It!
    2. 
        
    chipx86
    Review request changed
    Status:
    Completed
    Change Summary:
    Pushed to release-2.0.x (5095f1e)