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)
Fri, Dec 13, 10:11 AM
Unknown Object (File)
Fri, Dec 13, 10:10 AM
Unknown Object (File)
Fri, Dec 13, 10:10 AM
Unknown Object (File)
Mon, Dec 9, 3:50 PM
Unknown Object (File)
Fri, Nov 29, 11:34 AM
Unknown Object (File)
Wed, Nov 20, 4:35 AM
Unknown Object (File)
Nov 16 2024, 6:46 AM
Unknown Object (File)
Nov 14 2024, 5:32 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.