Page MenuHomePhabricator

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

Authored by epriestley on Apr 29 2020, 9:45 PM.
Tags
None
Referenced Files
F13234731: D21189.diff
Tue, May 21, 3:42 AM
F13232044: D21189.diff
Tue, May 21, 12:58 AM
F13228481: D21189.diff
Mon, May 20, 9:49 AM
F13215647: D21189.id50457.diff
Fri, May 17, 6:54 PM
F13189810: D21189.diff
Sat, May 11, 6:28 AM
F13178750: D21189.id50457.diff
Wed, May 8, 8:38 PM
Unknown Object (File)
Tue, May 7, 10:08 AM
Unknown Object (File)
Fri, May 3, 10:16 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