HomePhabricator

Add harbormaster.buildable.search API Method

Authored by jlinahan on Nov 26 2018, 2:16 PM.

Description

Add harbormaster.buildable.search API Method

Summary:
This revision adds a Conduit search method for buildables. It exposes:

  • objectPHID
  • containerPHID
  • buildableStatus
  • isManual

Test Plan:
Use the API Console to run searches. Example:

{
  "data": [
    {
      "id": 2,
      "type": "HMBB",
      "phid": "PHID-HMBB-m4k5lodx6naq22576a7d",
      "fields": {
        "objectPHID": "PHID-DIFF-vzvgqqcyscpd7ta4osy2",
        "containerPHID": "PHID-DREV-vsivs5276c7vtgpmssn2",
        "buildableStatus": {
          "value": "passed"
        },
        "isManual": true,
        "dateCreated": 1542407155,
        "dateModified": 1542407156,
        "policy": {
          "view": "users",
          "edit": "users"
        }
      },
      "attachments": {}
    },
    {
      "id": 1,
      "type": "HMBB",
      "phid": "PHID-HMBB-opxfl4auoz3ey5klplrx",
      "fields": {
        "objectPHID": "PHID-DIFF-vzvgqqcyscpd7ta4osy2",
        "containerPHID": null,
        "buildableStatus": {
          "value": "passed"
        },
        "isManual": false,
        "dateCreated": 1542406968,
        "dateModified": 1542406968,
        "policy": {
          "view": "users",
          "edit": "users"
        }
      },
      "attachments": {}
    }
  ],
  "maps": {},
  "query": {
    "queryKey": null
  },
  "cursor": {
    "limit": 100,
    "after": null,
    "before": null,
    "order": null
  }
}

Reviewers: Blessed Reviewers, epriestley

Reviewed By: Blessed Reviewers, epriestley

Subscribers: Korvin, O14 ATC Monitoring

Differential Revision: https://secure.phabricator.com/D19818

Details

Committed
epriestleyNov 26 2018, 2:16 PM
Pushed
industryNov 26 2018, 2:17 PM
Reviewer
Blessed Reviewers
Differential Revision
D19818: Add harbormaster.buildable.search API Method
Parents
rP03f249baf349: Remove rendering support for very old Repository transactions
Branches
Unknown
Tags
Unknown
Build Status
Buildable 21219
Build 28862: Run Core Tests