Page MenuHomePhabricator

Diffusion - be sure to properly unserialize result from conduit query
ClosedPublic

Authored by btrahan on Feb 17 2015, 9:28 PM.
Tags
None
Referenced Files
F14481472: D11790.diff
Mon, Dec 30, 3:26 AM
Unknown Object (File)
Tue, Dec 24, 1:45 PM
Unknown Object (File)
Tue, Dec 24, 1:45 PM
Unknown Object (File)
Tue, Dec 24, 1:37 PM
Unknown Object (File)
Tue, Dec 24, 1:20 PM
Unknown Object (File)
Tue, Dec 24, 1:04 PM
Unknown Object (File)
Fri, Dec 6, 5:49 PM
Unknown Object (File)
Sat, Nov 30, 11:18 PM
Subscribers

Details

Summary

Fixes T7256.

Test Plan

Looked at rXPRF0a7a5f69f5d7 in a local instance. things looked great both pre and post patch.

Diff Detail

Repository
rP Phabricator
Branch
T7256
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 4522
Build 4536: [Placeholder Plan] Wait for 30 Seconds

Event Timeline

btrahan retitled this revision from to Diffusion - be sure to properly unserialize result from conduit query.
btrahan updated this object.
btrahan edited the test plan for this revision. (Show Details)
btrahan added a reviewer: epriestley.
epriestley edited edge metadata.

Hrrm -- I would expect this to never work, because the Git and Mercurial pathways in DiffusionMergedCommitsQueryConduitAPIMethod end with:

return DiffusionQuery::loadHistoryForCommitIdentifiers(...)

..and it looks like that always returns objects (DiffusionPathChange objects). Then this will try to decode them, so I'd expect that it breaks the working case on its own.

In particular, it looks like this method does not work when called over HTTP currently (e.g., callsign=XPRF, commit=0a7a5f69f5d7 in the console on this install), so I think DiffusionMergedCommitsQueryConduitAPIMethod needs some return mpull($objects, 'toDictionary'); sort of stuff? Or am I crazy?

This revision now requires changes to proceed.Feb 17 2015, 9:36 PM
btrahan edited edge metadata.

serialize in the conduit endpoint

This revision is now accepted and ready to land.Feb 17 2015, 9:54 PM
btrahan edited edge metadata.
This revision was automatically updated to reflect the committed changes.