-
Sub-task
-
Resolution: Fixed
-
Not Evaluated
-
None
-
None
Unify getDoneIntegrations and getRunningIntegrations into getTasks.
Add parameters from requirements.
PARAMS
{
max: int # OPTIONAL, max count of responses to return. Default=100 (Maximum=1000)
repo: str/list[str] # OPTIONAL
branch: str/list[str] # OPTIONAL
type: str/list[str] # OPTIONAL possible types [Integration, StatusCheck, EarlyWarning, CreateDebugVm, HealthCheck]
before: ISO 8601 datetime # OPTIONAL, Exclusive. Default=[current datetime]
after: ISO 8601 datetime # OPTIONAL, Inclusive. Default=[current datetime - 10days]
status: str/list[str] # OPTIONAL [Running, Passed, Failed, Cancelled, Insignificant]
searchText: str # OPTIONAL free text search from all integration fields
{
RESPONSE
more: bool # True if more results than the requested max count exist
next: str # OPTIONAL, URL-encoded query string to GET /tasks which auto-populates
'before' with the last returned task 'started_on' datetime. This effectively allows
iterative calling of the /tasks endpoint until one or less results are returned.
tasks: datetime-sorted list [
{
id: str # Unique Integration ID
repo: str # Repository targeted for this integration
branch: str # The branch that the task is operating on
type: str # possible types [Integration, StatusCheck, EarlyWarning, CreateDebugVm, HealthCheck]
started_on: ISO 8601 datetime datetime # Datetime the integration request was made
status: str # possible statuses [Running, Passed, Failed, Cancelled, Insignificant]
top_sha: str # OPTIONAL, present if type==integration. Sha COIN will place on top of
git history when integration merges
tested_shas: # list of tested shas (### Move to taskDetail only?)
self_url: str # The web UI url of this task, on the public testresults.qt.io/coin server if possible. Otherwise "coin/" intranet URL
is_public: bool # False if the change requires a user to be in TQTC Intranet to view.
}
]