Page MenuHomePhabricator

Fix an issue where any diff which could possibly be rendered as Jupyter decided to render as Jupyter
ClosedPublic

Authored by epriestley on Oct 2 2019, 1:50 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Aug 9, 11:51 AM
Unknown Object (File)
Jul 3 2026, 8:40 PM
Unknown Object (File)
Jun 30 2026, 2:11 PM
Unknown Object (File)
Jun 30 2026, 12:39 AM
Unknown Object (File)
Jun 30 2026, 12:39 AM
Unknown Object (File)
Jun 29 2026, 4:02 AM
Unknown Object (File)
Jun 28 2026, 5:09 AM
Unknown Object (File)
Jun 22 2026, 8:49 AM
Subscribers
None

Details

Summary

See PHI1468. Engine selection for diffs is currently too aggressive in trying to find a shared engine and will fall back a shared engine with a very low score, causing all ".json" files to render as Jupyter files.

Only pick an engine as a difference engine by default if it's the highest-scoring engine for the new file.

Test Plan

Viewed ".json" files and ".ipynb" files in a revision. Before, both rendered as Jupyter. Now, the former rendered as JSON and the latter rendered as Jupyter.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable