mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-02 11:42:42 +01:00
8cc6fe465c
Summary: `diffusion.branchquery` can return dictionary instead of array if some branches are filtered out. Eg.: ``` { "result": [ { "shortName": "master", "commitIdentifier": "2817b0d8f79748ddfad0220c46d9b20bea34f460", "refType": "branch", "rawFields": { "objectname": "2817b0d8f79748ddfad0220c46d9b20bea34f460", "objecttype": "commit", ``` might become: ``` { "result": { "1": { "shortName": "master", "commitIdentifier": "2817b0d8f79748ddfad0220c46d9b20bea34f460", "refType": "branch", "rawFields": { "objectname": "2817b0d8f79748ddfad0220c46d9b20bea34f460", "objecttype": "commit", ``` Reproduction - find repository which has couple of branches, setup to track only some of them, execute `diffusion.branchquery` API call - result is dictionary instead of array Test Plan: Apply patch, execution `diffusion.branchquery` call - result is no longer dictionary if it was one before Reviewers: #blessed_reviewers, epriestley Reviewed By: #blessed_reviewers, epriestley Subscribers: Korvin, epriestley Differential Revision: https://secure.phabricator.com/D20973 |
||
---|---|---|
.. | ||
DiffusionBlameConduitAPIMethod.php | ||
DiffusionBranchQueryConduitAPIMethod.php | ||
DiffusionBrowseQueryConduitAPIMethod.php | ||
DiffusionCommitEditConduitAPIMethod.php | ||
DiffusionCommitParentsQueryConduitAPIMethod.php | ||
DiffusionCommitSearchConduitAPIMethod.php | ||
DiffusionConduitAPIMethod.php | ||
DiffusionDiffQueryConduitAPIMethod.php | ||
DiffusionExistsQueryConduitAPIMethod.php | ||
DiffusionFileContentQueryConduitAPIMethod.php | ||
DiffusionFindSymbolsConduitAPIMethod.php | ||
DiffusionGetLintMessagesConduitAPIMethod.php | ||
DiffusionGetRecentCommitsByPathConduitAPIMethod.php | ||
DiffusionHistoryQueryConduitAPIMethod.php | ||
DiffusionInternalAncestorsConduitAPIMethod.php | ||
DiffusionInternalGitRawDiffQueryConduitAPIMethod.php | ||
DiffusionLastModifiedQueryConduitAPIMethod.php | ||
DiffusionLookSoonConduitAPIMethod.php | ||
DiffusionMergedCommitsQueryConduitAPIMethod.php | ||
DiffusionQueryCommitsConduitAPIMethod.php | ||
DiffusionQueryConduitAPIMethod.php | ||
DiffusionQueryPathsConduitAPIMethod.php | ||
DiffusionRawDiffQueryConduitAPIMethod.php | ||
DiffusionRefsQueryConduitAPIMethod.php | ||
DiffusionRepositoryEditConduitAPIMethod.php | ||
DiffusionRepositorySearchConduitAPIMethod.php | ||
DiffusionResolveRefsConduitAPIMethod.php | ||
DiffusionSearchQueryConduitAPIMethod.php | ||
DiffusionTagsQueryConduitAPIMethod.php | ||
DiffusionUpdateCoverageConduitAPIMethod.php | ||
DiffusionURIEditConduitAPIMethod.php |