• epriestley's avatar
    Allow "has draft inlines?" queries to overheat · 4b2a4470
    epriestley authored
    Summary:
    Ref T13513. If your 10 most recently authored inlines have all been deleted, these queries can fail by overheating. This is silly and probably rarely happens outside of development.
    
    For now, just let them overheat. This may create a false negative (incorrect "no draft" signal when the real condition is "drafts, but 10 most recent comments were deleted"). This could be sorted out later with a query mode like "executeAny()", perhaps.
    
    Test Plan:
      - Created and deleted 10 inlines.
      - Submitted comments.
      - Before: overheating fatal during draft flag generation.
      - After: clean submission.
    
    Maniphest Tasks: T13513
    
    Differential Revision: https://secure.phabricator.com/D21274
    4b2a4470
DiffusionCommitDraftEngine.php 493 Bytes