Page MenuHomePhabricator

Deprecate "file.uploadhash"
ClosedPublic

Authored by epriestley on Apr 4 2017, 9:40 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Dec 16, 6:43 PM
Unknown Object (File)
Fri, Dec 13, 1:57 AM
Unknown Object (File)
Sun, Dec 8, 2:47 PM
Unknown Object (File)
Sat, Dec 7, 8:44 PM
Unknown Object (File)
Mon, Dec 2, 2:27 PM
Unknown Object (File)
Fri, Nov 29, 7:54 PM
Unknown Object (File)
Nov 24 2024, 9:43 PM
Unknown Object (File)
Nov 22 2024, 10:51 AM
Subscribers
None

Details

Summary

Ref T12464. This is a very old method which let you create a file on the server by referring to data which already existed in another file.

Basically, long ago, arc could say "Do you already have a file with hash X?" and just skip some work if the server did.

arc has not called this method since D13017, in May 2015.

Since it's easy to do so, just make this method pretend that it never has the file. Very old clients will continue to work, since they would expect this response in the common case and continue by uploading data.

Test Plan
  • Grepped for uploadhash in Phabricator and Arcanist.
  • Called the method with the console, verified it returned null.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Apr 4 2017, 10:30 PM
This revision was automatically updated to reflect the committed changes.