mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-22 14:52:41 +01:00
Allow "has draft inlines?" queries to overheat
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
This commit is contained in:
parent
87bc30526b
commit
4b2a447003
2 changed files with 2 additions and 0 deletions
|
@ -11,6 +11,7 @@ final class DifferentialRevisionDraftEngine
|
||||||
->setViewer($viewer)
|
->setViewer($viewer)
|
||||||
->withRevisionPHIDs(array($revision->getPHID()))
|
->withRevisionPHIDs(array($revision->getPHID()))
|
||||||
->withPublishableComments(true)
|
->withPublishableComments(true)
|
||||||
|
->setReturnPartialResultsOnOverheat(true)
|
||||||
->setLimit(1)
|
->setLimit(1)
|
||||||
->execute();
|
->execute();
|
||||||
|
|
||||||
|
|
|
@ -11,6 +11,7 @@ final class DiffusionCommitDraftEngine
|
||||||
->setViewer($viewer)
|
->setViewer($viewer)
|
||||||
->withCommitPHIDs(array($commit->getPHID()))
|
->withCommitPHIDs(array($commit->getPHID()))
|
||||||
->withPublishableComments(true)
|
->withPublishableComments(true)
|
||||||
|
->setReturnPartialResultsOnOverheat(true)
|
||||||
->setLimit(1)
|
->setLimit(1)
|
||||||
->execute();
|
->execute();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue