Page MenuHomePhabricator

Introduce ModularTransactionType::isRenderingTargetExternal
ClosedPublic

Authored by avivey on Dec 16 2016, 12:15 AM.
Tags
None
Referenced Files
F15533582: D17063.diff
Wed, Apr 23, 8:40 PM
F15521215: D17063.id41051.diff
Sun, Apr 20, 12:13 PM
F15518046: D17063.id41050.diff
Sat, Apr 19, 10:28 AM
F15516595: D17063.id.diff
Fri, Apr 18, 7:55 PM
F15512832: D17063.diff
Thu, Apr 17, 2:20 PM
F15506976: D17063.diff
Tue, Apr 15, 3:31 PM
F15484670: D17063.id41050.diff
Wed, Apr 9, 7:29 PM
F15420705: D17063.id41051.diff
Mar 21 2025, 4:13 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.