Page MenuHomePhabricator

Move some value massaging into SearchFields
ClosedPublic

Authored by epriestley on Jun 5 2015, 4:24 PM.
Tags
None
Referenced Files
F18096061: D13170.id31831.diff
Fri, Aug 8, 4:11 AM
F18089330: D13170.id31843.diff
Wed, Aug 6, 11:13 AM
F17869513: D13170.id.diff
Mon, Jul 28, 11:31 AM
F17826023: D13170.diff
Sat, Jul 26, 6:56 AM
Unknown Object (File)
Jun 18 2025, 6:56 AM
Unknown Object (File)
Jun 18 2025, 6:56 AM
Unknown Object (File)
Jun 18 2025, 6:44 AM
Unknown Object (File)
Jun 18 2025, 3:45 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
Branch
spaces10
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 6573
Build 6595: [Placeholder Plan] Wait for 30 Seconds

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.