Page MenuHomePhabricator

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

Authored by epriestley on Apr 29 2020, 9:45 PM.
Tags
None
Referenced Files
F15479351: D21189.diff
Tue, Apr 8, 6:32 AM
F15458241: D21189.id50458.diff
Sun, Mar 30, 10:06 PM
F15455536: D21189.diff
Sun, Mar 30, 3:00 AM
F15449923: D21189.id.diff
Fri, Mar 28, 12:53 PM
F15444680: D21189.id50457.diff
Thu, Mar 27, 10:42 AM
F15437447: D21189.diff
Tue, Mar 25, 7:27 PM
F15437192: D21189.diff
Tue, Mar 25, 6:10 PM
F15427365: D21189.id.diff
Sun, Mar 23, 2:01 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
Branch
hide1
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 24276
Build 33441: Run Core Tests
Build 33440: arc lint + arc unit