Page MenuHomePhabricator

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

Authored by epriestley on Apr 29 2020, 9:45 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 23, 10:47 AM
Unknown Object (File)
Tue, Nov 19, 4:02 AM
Unknown Object (File)
Sat, Nov 2, 7:47 AM
Unknown Object (File)
Wed, Oct 30, 8:03 AM
Unknown Object (File)
Sat, Oct 26, 2:51 PM
Unknown Object (File)
Oct 14 2024, 7:31 PM
Unknown Object (File)
Oct 2 2024, 6:16 AM
Unknown Object (File)
Sep 5 2024, 7:35 AM
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