Page MenuHomePhabricator

Move some value massaging into SearchFields
ClosedPublic

Authored by epriestley on Jun 5 2015, 4:24 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 25, 10:17 AM
Unknown Object (File)
Wed, Apr 24, 10:50 PM
Unknown Object (File)
Mon, Apr 22, 8:10 PM
Unknown Object (File)
Sun, Apr 21, 7:04 PM
Unknown Object (File)
Wed, Apr 17, 2:14 PM
Unknown Object (File)
Wed, Apr 10, 4:00 AM
Unknown Object (File)
Tue, Apr 2, 9:36 AM
Unknown Object (File)
Fri, Mar 29, 8:46 AM
Subscribers

Details

Summary

Ref T8441. Ref T7715. Let SearchFields do some value massaging before buiding queries so we don't have to work as hard in each SearchEngine. Particularly, they can handle evaluateTokens() from Tokenizers.

Test Plan

Paste automatically gained access to viewer(), etc.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley retitled this revision from to Move some value massaging into SearchFields.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: btrahan.
src/applications/paste/query/PhabricatorPasteSearchEngine.php
18–32

It still feels a little weak that we have to specify this and can't just infer the mapping from the fields, but I think it's pretty reasonable and don't see a way around it without some junk that involves $query->$method($value), which I don't want to get involved with.

btrahan edited edge metadata.
This revision is now accepted and ready to land.Jun 5 2015, 6:09 PM
This revision was automatically updated to reflect the committed changes.