Page MenuHomePhabricator

Rename `PhutilRemarkupRule` subclasses
ClosedPublic

Authored by joshuaspence on Jul 21 2014, 9:39 AM.
Tags
None
Referenced Files
F14008557: D9993.id24032.diff
Wed, Oct 30, 12:56 AM
F14003543: D9993.id24050.diff
Sat, Oct 26, 7:19 AM
F13986882: D9993.id24050.diff
Mon, Oct 21, 6:06 AM
F13980710: D9993.id.diff
Sat, Oct 19, 12:16 PM
F13980078: D9993.diff
Sat, Oct 19, 8:20 AM
Unknown Object (File)
Oct 5 2024, 9:47 PM
Unknown Object (File)
Sep 21 2024, 7:42 PM
Unknown Object (File)
Sep 21 2024, 7:42 PM
Subscribers

Details

Summary

Ref T5655. Some discussion in D9839. Generally speaking, Phutil{$name}RemarkupRule is clearer than PhutilRemarkupRule{$name}.

Test Plan

Not yet tested... this is likely to break external code, so I'm not sure whether or not we want to pursue this.

Diff Detail

Repository
rPHU libphutil
Branch
renameremarkup
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 1820
Build 1821: [Placeholder Plan] Wait for 30 Seconds

Event Timeline

joshuaspence retitled this revision from to Rename `PhutilRemarkupRule` subclasses.
joshuaspence updated this object.
joshuaspence edited the test plan for this revision. (Show Details)
joshuaspence added a reviewer: epriestley.

I'm not really sure about how PhutilRemarkupEngineBlockRule subclasses should be named.

I'm not really sure about how PhutilRemarkupEngineBlockRule subclasses should be named.

I think perhaps PhutilRemarkupEngineRemarkupLiteralBlockRule should really be PhutilLiteralRemarkupRemarkupBlockRule.

Maybe these should be PhutilRemarkupBoldRule, not PhutilBoldRemarkupRule? That makes the custom rules in D9994 a little easier too.

I think you're right on the literal rule.

In D9993#9, @epriestley wrote:

Maybe these should be PhutilRemarkupBoldRule, not PhutilBoldRemarkupRule? That makes the custom rules in D9994 a little easier too.

Yeah, I did it this way originally but changed my mind... hmm...

joshuaspence edited edge metadata.
  • Rename classes
  • Rename block rules too
epriestley edited edge metadata.
This revision is now accepted and ready to land.Jul 21 2014, 3:24 PM
src/markup/engine/remarkup/markuprule/PhutilRemarkupHyperlinkRule.php
3

Oh, this probably isn't okay... Should I provide a migration path or is this an outdated TODO?

joshuaspence edited edge metadata.
  • Rename classes
  • Rename block rules too
  • Remove duplicated PhutilRemarkupEngineRemarkupTestInterpreterRule class
src/markup/engine/remarkup/markuprule/PhutilRemarkupHyperlinkRule.php
3

I think it's OK to break Facebook, there is a reasonable pathway for them to stop subclassing this. I'll loop them in on the task.