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
Unknown Object (File)
Mon, Jun 30, 2:36 PM
Unknown Object (File)
Sun, Jun 29, 4:55 AM
Unknown Object (File)
Fri, Jun 27, 3:22 PM
Unknown Object (File)
Fri, Jun 27, 11:00 AM
Unknown Object (File)
Tue, Jun 17, 7:11 PM
Unknown Object (File)
Mon, Jun 16, 6:48 PM
Unknown Object (File)
Jun 2 2025, 1:02 PM
Unknown Object (File)
Jun 1 2025, 3:56 PM
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.