Page MenuHomePhabricator

Introduce ModularTransactionType::isRenderingTargetExternal
ClosedPublic

Authored by avivey on Dec 16 2016, 12:15 AM.
Tags
None
Referenced Files
F18762700: D17063.id.diff
Mon, Oct 6, 8:15 PM
F18756415: D17063.diff
Sun, Oct 5, 11:22 AM
F18753703: D17063.id41050.diff
Sat, Oct 4, 8:00 PM
F18500380: D17063.diff
Sep 4 2025, 9:02 PM
F18461137: D17063.id.diff
Sep 1 2025, 8:02 PM
F18436776: D17063.diff
Aug 31 2025, 11:26 AM
F18094260: D17063.id.diff
Aug 7 2025, 10:02 PM
F17738324: D17063.id41050.diff
Jul 20 2025, 11:24 PM
Subscribers

Details

Summary

This is just some housekeeping - see note in D16287. Basically, "isTextMode" doesn't convey enough information.

Test Plan

git grep isTextMode | grep -v Remarkup, and visit all callsites; There are 4 of them left.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

avivey retitled this revision from to Introduce ModularTransactionType::isRenderingTargetExternal.
avivey updated this object.
avivey edited the test plan for this revision. (Show Details)
avivey added a reviewer: epriestley.

Of the 4 remaining callsites, 3 are in this file (1 for actual rendering, and 2 for $viewer->renderHandle()->setAsText(), which we might want to someday extend to setTargetExternal too), and one is in DifferentialRevisionReviewersTransaction which is also doing rendering, but looks funny non-the-less (implode vs phutil_implode_html).

I've also grepped for getRenderingTarget, and it like all callsites really are concerned with rendering.

epriestley edited edge metadata.

The DifferentialRevisionReviewersTransaction one is maybe hopefully temporary-ish.

This revision is now accepted and ready to land.Dec 16 2016, 12:47 AM
This revision was automatically updated to reflect the committed changes.