Page MenuHomePhabricator

Fix an issue where added or removed source files could incorrectly select a DocumentEngine
ClosedPublic

Authored by epriestley on Oct 26 2019, 7:09 PM.
Tags
None
Referenced Files
F13088571: D20866.diff
Thu, Apr 25, 1:29 AM
Unknown Object (File)
Sat, Apr 20, 4:57 PM
Unknown Object (File)
Sat, Apr 20, 9:53 AM
Unknown Object (File)
Thu, Apr 11, 8:59 AM
Unknown Object (File)
Thu, Mar 28, 7:56 PM
Unknown Object (File)
Thu, Mar 28, 4:35 PM
Unknown Object (File)
Feb 3 2024, 11:20 PM
Unknown Object (File)
Jan 31 2024, 6:57 AM
Subscribers
None

Details

Summary

Ref T13425. The changes in D20865 could incorrectly lead to selection of a DocumentEngine that can not generate document diffs if a file was added or removed (for example, when a source file is added).

Move the engine pruning code to be shared -- we should always discard engines which can't generate a diff, even if we don't have both documents.

Test Plan

Viewed an added source file, no more document ref error arising from document engine selection.

Diff Detail

Repository
rP Phabricator
Branch
add1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 23571
Build 32395: Run Core Tests
Build 32394: arc lint + arc unit