Page MenuHomePhabricator

Fix some "URI->alter(X, null)" callsites
ClosedPublic

Authored by epriestley on Feb 13 2019, 5:24 PM.
Tags
None
Referenced Files
F14417813: D20162.id48141.diff
Wed, Dec 25, 2:28 AM
F14417492: D20162.id48163.diff
Wed, Dec 25, 1:25 AM
F14412898: D20162.diff
Tue, Dec 24, 1:34 PM
Unknown Object (File)
Fri, Dec 13, 8:22 AM
Unknown Object (File)
Sat, Dec 7, 7:55 PM
Unknown Object (File)
Fri, Dec 6, 4:04 PM
Unknown Object (File)
Tue, Dec 3, 8:08 PM
Unknown Object (File)
Sun, Dec 1, 7:29 PM
Subscribers
None

Details

Summary

Ref T13250. This internally calls replaceQueryParam(X, null) now, which fatals if the second parameter is null. I hit these legitimately, but I'll look for more callsites and follow up by either allowing this, removing alter(), fixing the callsites, or some combination.

(I'm not much of a fan of alter().)

Test Plan

Browsing a paginated list no longer complains about URI construction.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

There are no more explicit ->alter(X, null) callsites so I'm likely to let sleeping dogs lie for now. I'd like to gradually replace all alter() callsites but don't want to tempt fate too much given how much refactoring is already in this upcoming release.

This revision is now accepted and ready to land.Feb 13 2019, 6:38 PM
This revision was automatically updated to reflect the committed changes.