Page MenuHomePhabricator

When creating an inline, save the current document engine
ClosedPublic

Authored by epriestley on May 12 2020, 7:19 PM.
Tags
None
Referenced Files
F13251611: D21240.diff
Sat, May 25, 12:15 AM
F13238700: D21240.id50583.diff
Tue, May 21, 8:46 PM
F13203156: D21240.diff
Tue, May 14, 11:32 PM
F13192986: D21240.id.diff
Sun, May 12, 11:14 AM
F13190927: D21240.id50587.diff
Sat, May 11, 3:33 PM
F13185350: D21240.diff
Sat, May 11, 2:49 AM
Unknown Object (File)
Tue, May 7, 5:15 AM
Unknown Object (File)
Sat, May 4, 12:15 PM
Subscribers
None

Details

Summary

Ref T13513. As part of inline metadata, save the document engine the change is being rendered with.

This will allow other parts of the UI to detect that an inline was created on a Jupyter notebook but is being rendered on raw source, or whatever else.

The immediate goal is to fix nonsensical inline snippet rendering in email on Jupyter notebooks.

Test Plan
  • Created inlines and replies on normal soure code, saw no document engine annotated in the database.
  • Created inlines and replies on a Jupyter notebook rendered in Jupyter mode, saw "jupyter" annotations in the database.
  • Swapped document engines between Jupyter and Source, etc.

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 12 2020, 9:25 PM
This revision was automatically updated to reflect the committed changes.