Page MenuHomePhabricator

Populate results of DiffusionQueryCommitsConduitAPIMethod with DiffusionLowLevelCommitQuery
ClosedPublic

Authored by hach-que on Sep 2 2014, 8:07 AM.
Tags
None
Referenced Files
F14054725: D10399.diff
Sat, Nov 16, 4:22 AM
F14044340: D10399.diff
Tue, Nov 12, 3:50 PM
F14025873: D10399.diff
Thu, Nov 7, 8:57 PM
F14001230: D10399.id25037.diff
Fri, Oct 25, 5:24 AM
F13985481: D10399.id25023.diff
Sun, Oct 20, 8:52 PM
F13980013: D10399.diff
Oct 19 2024, 7:57 AM
Unknown Object (File)
Sep 21 2024, 9:40 PM
Unknown Object (File)
Sep 12 2024, 6:21 AM
Subscribers

Details

Summary

Ref T2783. This populates the following fields in DiffusionQueryCommitsConduitAPIMethod using DiffusionLowLevelCommitQuery when bypassCache is set to true:

  • authorName
  • authorEmail
  • committerName
  • committerEmail
  • message
  • hashes

The original outline called for authorPHID and committerPHID as well (but no message field). As far as I can tell, the PHIDs aren't actual a property on DiffusionCommitRef, and since the intention of this is to be able to populate a DiffusionCommitRef, I haven't included them. Let me know if we really do need the PHIDs here.

Test Plan

Tested using 3 Phabricator instances (one web, one taskmaster and one storage). The web and taskmaster tiers are directed at the Conduit API of the storage tier. Made a diffusion.querycommits from the Conduit app on the web tier instance and saw the data populated from the raw VCS data (located on the storage tier).

Diff Detail

Repository
rP Phabricator
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

hach-que retitled this revision from to Populate results of DiffusionQueryCommitsConduitAPIMethod with DiffusionLowLevelCommitQuery.
hach-que updated this object.
hach-que edited the test plan for this revision. (Show Details)
hach-que added a reviewer: epriestley.
epriestley edited edge metadata.
epriestley added inline comments.
src/applications/diffusion/conduit/DiffusionQueryCommitsConduitAPIMethod.php
96

For consistency, maybe omit this?

109

And provide this only if needMessages is true?

Basically, only return message as a key if needMessages is specified.

This revision is now accepted and ready to land.Sep 3 2014, 1:14 AM
hach-que edited edge metadata.

Changes requested in code review

hach-que updated this revision to Diff 25038.

Closed by commit rPd7f51325e3ab (authored by @hach-que).