1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-03 04:02:43 +01:00
phorge-phorge/src/applications/harbormaster/storage
John Linahan 433a7321ff 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
2018-11-26 14:16:57 +00:00
..
build Allow unit test results to specify that their details are formatted with remarkup when reporting to "harbormaster.sendmessage" 2018-08-28 13:26:11 -07:00
configuration Add harbormaster.buildplan.search api method 2018-11-02 02:57:38 +00:00
HarbormasterBuildable.php Add harbormaster.buildable.search API Method 2018-11-26 14:16:57 +00:00
HarbormasterBuildableTransaction.php [harbormaster/abort-builds] Support aborting builds in Harbormaster 2015-09-21 12:07:38 -07:00
HarbormasterBuildCommand.php [harbormaster/abort-builds] Support aborting builds in Harbormaster 2015-09-21 12:07:38 -07:00
HarbormasterBuildMessage.php Make Harbormaster objects destructible 2018-03-29 13:01:14 -07:00
HarbormasterBuildTransaction.php [harbormaster/abort-builds] Support aborting builds in Harbormaster 2015-09-21 12:07:38 -07:00
HarbormasterDAO.php Delete license headers from files 2012-11-05 11:16:51 -08:00
HarbormasterObject.php Fix visiblity of LiskDAO::getConfiguration() 2015-01-14 06:54:13 +11:00
HarbormasterSchemaSpec.php Give HarbormasterBuildLogChunk a real table 2016-03-01 15:25:34 -08:00
HarbormasterScratchTable.php Allow columns to be marked as nonmutable (so save() will not change them) 2015-02-19 10:37:17 -08:00