Page MenuHomePhabricator

Add "and" support to "ref"
ClosedPublic

Authored by joshuaspence on May 3 2015, 9:29 PM.
Tags
None
Referenced Files
F14382409: D12682.diff
Sat, Dec 21, 6:08 AM
Unknown Object (File)
Tue, Dec 17, 6:47 PM
Unknown Object (File)
Fri, Dec 13, 3:26 AM
Unknown Object (File)
Wed, Dec 11, 6:14 PM
Unknown Object (File)
Thu, Dec 5, 3:48 AM
Unknown Object (File)
Sat, Nov 30, 8:16 PM
Unknown Object (File)
Mon, Nov 25, 3:13 AM
Unknown Object (File)
Nov 11 2024, 7:11 AM
Subscribers

Details

Reviewers
epriestley
Group Reviewers
Blessed Reviewers
Maniphest Tasks
Restricted Maniphest Task
Restricted Maniphest Task
Restricted Maniphest Task
T8038: "Ref" syntax doesn't support "and"
Commits
Restricted Diffusion Commit
rP6bebb3c69a07: Add "and" support to "ref"
Summary

Fixes T8038. Allow PhabricatorCustomFieldMonogramParser to handle "and". This means that Ref Tx, Ty and Tz will correctly return array('monograms' => array('Tx', 'Ty', 'Tz').

Test Plan

Added unit tests.

Diff Detail

Repository
rP Phabricator
Branch
master
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 5717
Build 5736: [Placeholder Plan] Wait for 30 Seconds

Event Timeline

joshuaspence retitled this revision from to Add "and" support to "ref".
joshuaspence updated this object.
joshuaspence edited the test plan for this revision. (Show Details)

I'd maybe expect this to be:

- ...[,\s]*...
+ ...(?:,|\s|and)*...

That will allow T1, and,, and and, and T2, but that seems fine.

joshuaspence edited edge metadata.

Further progress

joshuaspence edited the test plan for this revision. (Show Details)
joshuaspence added a reviewer: epriestley.
joshuaspence added tasks: Restricted Maniphest Task, Restricted Maniphest Task, Restricted Maniphest Task.

It's not caused by this diff, but I don't like how we currently parse 'Fixes T1,,, T2 T3' => array('monograms' => 'T1', 'T2', 'T3')... this just seems odd (although I doubt it causes any real issues).

epriestley edited edge metadata.
This revision is now accepted and ready to land.May 4 2015, 12:06 PM
This revision was automatically updated to reflect the committed changes.