Page MenuHomePhabricator

Conpherence - add back in custom images
ClosedPublic

Authored by btrahan on May 1 2015, 10:23 PM.
Tags
None
Referenced Files
F13098922: D12648.diff
Fri, Apr 26, 11:21 AM
Unknown Object (File)
Thu, Apr 25, 2:24 AM
Unknown Object (File)
Fri, Apr 19, 4:50 PM
Unknown Object (File)
Mon, Apr 15, 7:03 AM
Unknown Object (File)
Fri, Apr 12, 9:20 PM
Unknown Object (File)
Fri, Apr 12, 9:20 PM
Unknown Object (File)
Wed, Apr 10, 10:23 AM
Unknown Object (File)
Fri, Apr 5, 5:06 AM
Tokens
"Like" token, awarded by CodeMouse92.

Details

Reviewers
epriestley
Maniphest Tasks
T7254: Custom Conpherence Image
Commits
Restricted Diffusion Commit
rP16ce63ec20cc: Conpherence - add back in custom images
Summary

Fixes T7254. This reverts the previous functionality, but makes pertinent updates like scaling the images to 35 x 35. Codebase had moved on quite a bit so far from a straight revert but nothing too tricky relative to the code that was here before. This does not allow for changing the images from the conpherence durable column view -- that would require some JS trickery, but also doesn't fit into the current notion of the column being "light". Can always modify this later.

Test Plan
  • from full conpherence, uploaded a square pic and things looked nice
  • from full conpherence, uploaded a rectangular pic and wasnt happy, so reinvoked edit dialog and used crop control to make it better
  • noted could not update picture from conpherence durable column
  • used different user and noted could see custom picture

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

btrahan retitled this revision from to Conpherence - add back in custom images.
btrahan updated this object.
btrahan edited the test plan for this revision. (Show Details)
btrahan added a reviewer: epriestley.
epriestley edited edge metadata.

I'd expect that we'd need to call $file->attachToObject($thread->getPHID()) somewhere, either:

  • Explicitly;
  • by returning the new images from extractFilePHIDs() in the Editor; or
  • by passing viewPHID to the drop upload controller.

Without doing this, I'd expect other users to be unable to see the image because it never gets attached to the thread.

This revision is now accepted and ready to land.May 3 2015, 1:23 PM

by passing viewPHID to the drop upload controller.

Er, viewPolicyPHID.

btrahan edited edge metadata.

go with the extractFilePHIDsFromCustomTransaction in the Editor approach

This revision was automatically updated to reflect the committed changes.