The PhabricatorSearchDatasource gives good result for users and projects. It doesn't really search tasks or other stuff.
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:
- X-Phabricator-Csrf:
- Referer: http://devcentral.nasqueron.org/
- 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.