Page MenuHomePhabricator

Correct file PHID extraction on image update in Pholio

Authored by epriestley on May 30 2017, 6:52 PM.



Ref T12776. This extraction of file PHIDs extracted "PholioImage" object PHIDs (PHID-PIMG-...), not "File" PHIDs (PHID-FILE-...). Instead, dig into the Pholio images and actually extract the file PHIDs. This method is now similar to the PholioImageFileTransaction method, which works already.

Test Plan
  • Create a mock.
  • Update one of the images.
  • In Files, view the "Attached" tab of the updated image.
  • Before patch: not attached to mock.
  • After patch: properly attached to mock.

Diff Detail

rP Phabricator
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

epriestley created this revision.May 30 2017, 6:52 PM
chad accepted this revision.May 30 2017, 6:56 PM
This revision is now accepted and ready to land.May 30 2017, 6:56 PM
This revision was automatically updated to reflect the committed changes.