Page MenuHomePhabricator

Replace nonexistent "withPHIDs()" in ChangesetQuery with "withIDs()"
ClosedPublic

Authored by epriestley on Apr 29 2020, 9:45 PM.
Tags
None
Referenced Files
F18655918: D21189.id50457.diff
Mon, Sep 22, 9:03 PM
F18608556: D21189.diff
Sun, Sep 14, 1:20 AM
F18417158: D21189.id.diff
Sat, Aug 30, 11:27 AM
F18400479: D21189.diff
Fri, Aug 29, 6:19 PM
F18101058: D21189.diff
Aug 9 2025, 12:18 PM
F17953449: D21189.id50458.diff
Aug 1 2025, 3:05 AM
F17925730: D21189.id.diff
Jul 30 2025, 11:59 AM
F17914253: D21189.diff
Jul 29 2025, 7:05 PM
Subscribers
None

Details

Summary

Ref T13519. See https://discourse.phabricator-community.org/t/error-call-to-undefined-method-differentialchangesetquery-withphids/3816/.

Changesets do not have PHIDs, and the Query has no "withPHIDs()" method. The keys in the viewstate storage are (usually) IDs.

Test Plan
  • On a revision with Diff 1 and Diff 2 affecting the same file:
    • Viewed Diff 1.
    • Hid file A.
    • Viewed Diff 2.
  • Before patch: exception about call to "withPHIDs()", which does not exist for ChangesetQuery.
  • After patch: no exception. Also, file actually unhid, which is the correct behavior!

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable