Page MenuHomePhabricator

Fix an issue where text intradiff bodies may not render
ClosedPublic

Authored by epriestley on May 4 2020, 2:39 PM.
Tags
None
Referenced Files
F18821921: D21210.id.diff
Thu, Oct 23, 2:47 AM
F18817356: D21210.diff
Tue, Oct 21, 2:53 PM
F18782887: D21210.id50509.diff
Mon, Oct 13, 2:53 AM
F18734287: D21210.id.diff
Tue, Sep 30, 10:51 PM
F18705100: D21210.diff
Sun, Sep 28, 10:06 AM
F18410659: D21210.id50509.diff
Aug 30 2025, 5:11 AM
F18410621: D21210.id50510.diff
Aug 30 2025, 5:09 AM
F18406354: D21210.diff
Aug 30 2025, 12:08 AM
Subscribers
None

Details

Summary

Ref T13523. In the caching layer, there's a tricky clause about filetypes that skips some body rendering behavior.

Provide file type information which at least has a better chance of representing all changes (e.g., an image file may be replaced with a text file, but this can not be represented by a single file type).

Formalize "hasSourceTextBody()", to mean the changeset parser should engage the change as source text.

Test Plan

Intradiffed text changes, saw the body render properly.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision was not accepted when it landed; it landed in state Needs Review.May 4 2020, 2:40 PM
epriestley requested review of this revision.
This revision was automatically updated to reflect the committed changes.