Page MenuHomeDevCentral

Add PhabricatorSearchDatasource data source to Nasqueron search API
Open, WishlistPublic

Description

The PhabricatorSearchDatasource gives good result for users and projects. It doesn't really search tasks or other stuff.

http://devcentral.nasqueron.org/typeahead/class/PhabricatorSearchDatasource/?q=zemke&raw=Zemke&__ajax__=true&__metablock__=9

Implementation tips

  • the q parameter contains the normalized query (e.g. lowercase), the raw parameter the original query
  • if you omit the __ajax__=true, you'll get a nice tabular web view
  • understand the role of the __metablock__ parameter
  • results seem to be JSON-P, not JSON
  • the payload elements should be filtered to find again the request in the title, so we discard every Phabricator application not matching our query
  • for each payload item, we could use:
    • 0 as item description
    • 1 + domain URL from sites.json to build the URL
    • 3 as item name,
    • 6 as item icon

Notes

  • Phabricator sends the following headers to the request, but they are currently not required:
  • When this task is achieved, and if at this moment Phabricator doesn't offer more content in this data source, please open a new one to offer to add a Maniphest search provider.

Event Timeline

dereckson raised the priority of this task from to Wishlist.
dereckson updated the task description. (Show Details)
dereckson added a subscriber: dereckson.