• 
      

    Add signals to notify when fetching/checking a file started/finished.

    Review Request #4081 — Created April 27, 2013 and submitted

    Information

    Review Board
    release-1.7.x

    Reviewers

    Add signals to notify when fetching/checking a file started/finished.
    
    These signals can be used to hook up code to perform an operation when
    fetching files or checking the existence of files, or when knowing when
    those fetches/checks are complete.
    
    Along with this, the file in diffutils that did time logging of the
    fetch operation has been moved into Repository.get_file, in order to
    standardize it.
    All unit tests pass, including the new ones to check for the signal
    emissions.
    reviewbot
    1. This is a review from Review Bot.
        Tool: PEP8 Style Checker
        Processed Files:
          reviewboard/reviews/views.py
          reviewboard/scmtools/models.py
          reviewboard/scmtools/tests.py
          reviewboard/diffviewer/tests.py
          reviewboard/diffviewer/diffutils.py
          reviewboard/reviews/forms.py
          reviewboard/diffviewer/forms.py
          reviewboard/webapi/resources.py
        Ignored Files:
      
      
    2. 
        
    chipx86
    1. So my next step from this is to add centralized caching, and also file existence caching. So, question there... Do you think it's valuable to have these signals emit even when we have the cached value to pull, or only when we actually have to do a fetch?
      1. Since I think we mostly want this to check timing, I wouldn't use the same signals when there's a cached version.
      2. Agreed. That's the conclusion I reached too.
    2. 
        
    david
    1. Ship It!
    2. 
        
    chipx86
    Review request changed
    Status:
    Completed
    Change Summary:
    Pushed to release-1.7.x (a0da8ca)