Page MenuHomePhabricator

Add "and" support to "ref"
ClosedPublic

Authored by joshuaspence on May 3 2015, 9:29 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Apr 17, 5:44 AM
Unknown Object (File)
Wed, Apr 17, 5:44 AM
Unknown Object (File)
Fri, Apr 12, 6:38 AM
Unknown Object (File)
Fri, Apr 12, 4:31 AM
Unknown Object (File)
Sat, Mar 23, 6:33 PM
Unknown Object (File)
Feb 14 2024, 6:47 AM
Unknown Object (File)
Feb 6 2024, 6:58 AM
Unknown Object (File)
Jan 19 2024, 5:23 PM
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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.