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.searchwithconstraintsandprojectsattachment - Use
dateClosedfield forisClosed(server-side value, not guessed from status strings) - Use
settings.PHAB_HOSTinstead of hardcoded URL - Raise
ConduitErrorwhen task is not found (previously would have been anIndexError)
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