Page MenuHomePhabricator

Add "bin/search query" for debugging query execution
ClosedPublic

Authored by epriestley on Oct 6 2017, 2:51 PM.
Tags
None
Referenced Files
F15409176: D18690.id44871.diff
Wed, Mar 19, 3:32 AM
F15402763: D18690.diff
Tue, Mar 18, 12:14 AM
F15402338: D18690.diff
Mon, Mar 17, 10:02 PM
Unknown Object (File)
Wed, Feb 26, 7:10 PM
Unknown Object (File)
Wed, Feb 19, 8:11 PM
Unknown Object (File)
Feb 16 2025, 11:56 AM
Unknown Object (File)
Feb 9 2025, 9:07 PM
Unknown Object (File)
Feb 3 2025, 5:42 PM
Subscribers
None

Details

Summary

Ref T13000. Currently, queries can only be executed from the web UI, which requires logging in as a user. I really want to avoid doing that wherever we can, but being able to execute queries on an instance (and, particularly, see the ngrams and timings on the underlying lookups) would have been helpful in several cases.

Improve tooling a bit in advance of the "common ngrams" stuff going out since it seems likely that it will be useful if issues arise.

Test Plan

Ran bin/search query --query ..., got useful minimal output. Ran with --trace to get internals.

Diff Detail

Repository
rP Phabricator
Branch
query1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 18645
Build 25118: Run Core Tests
Build 25117: arc lint + arc unit

Event Timeline

This revision is now accepted and ready to land.Oct 6 2017, 3:33 PM
This revision was automatically updated to reflect the committed changes.