phorge: Replace frozen maniphest.info with maniphest.search

Summary

maniphest.info is a frozen (deprecated) Conduit endpoint. This replaces it with maniphest.search while keeping backward compatibility by transforming the response to match the old maniphest.info shape.

No downstream code changes needed.

Changes

  • Use maniphest.search with constraints and projects attachment
  • Use dateClosed field for isClosed (server-side value, not guessed from status strings)
  • Use settings.PHAB_HOST instead of hardcoded URL
  • Raise ConduitError when task is not found (previously would have been an IndexError)

Testing

Tested against live Wikimedia Phabricator with:

Task Status isClosed Result
T87834 resolved True All 15 fields match old API
T341490 resolved True All fields match
T402454 open False All fields match
T999999999 nonexistent n/a ConduitError raised correctly

Bug: T402454

Merge request reports

Loading