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
Unknown Object (File)
Fri, Dec 6, 5:49 PM
Unknown Object (File)
Sat, Nov 30, 11:18 PM
Unknown Object (File)
Tue, Nov 26, 4:49 PM
Unknown Object (File)
Sun, Nov 24, 6:12 PM
Unknown Object (File)
Nov 17 2024, 6:26 AM
Unknown Object (File)
Oct 23 2024, 5:38 AM
Unknown Object (File)
Oct 16 2024, 9:57 PM
Unknown Object (File)
Sep 24 2024, 3:54 AM
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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.