HomePhabricator

Allow Almanac devices to be queried and sorted by name

Description

Allow Almanac devices to be queried and sorted by name

Summary:
Ref T10205. Ref T10246. This is general modernization, but also supports fixing the interface datasource in T10205.

  • Update Query.
  • Update SearchEngine.
  • Use an ngrams index for searching names efficiently.

Test Plan:

  • Ran migrations.
  • Searched Almanac devices by name.
  • Created a new device, searched for it by name.

Screen Shot 2016-02-21 at 2.57.36 AM.png (643×1 px, 106 KB)

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T10205, T10246

Differential Revision: https://secure.phabricator.com/D15319