Bug 209342

Summary: [ews] Better organize patch status api data
Product: WebKit Reporter: Aakash Jain <aakash_jain>
Component: Tools / TestsAssignee: Aakash Jain <aakash_jain>
Status: RESOLVED FIXED    
Severity: Normal CC: aakash_jain, ap, jbedard, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: Other   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=208940
Bug Depends on:    
Bug Blocks: 208938    
Attachments:
Description Flags
Patch jbedard: review+

Description Aakash Jain 2020-03-20 09:14:58 PDT
[ews] Better organize patch status api data. Instead of returning a list of statuses, return a dictionary with queue-name as a key, and queue-status as data. This would make it easier to access patch-status for a particular queue from the data.

For example, instead of:
[{"url": "https://ews-build.webkit-uat.org/#/builders/14/builds/934", "timestamp": 1584709288, "state": 2, "name": "ios-sim"}]

Return:
{"ios-sim": {"url": "https://ews-build.webkit-uat.org/#/builders/14/builds/934", "timestamp": 1584709288, "state": 2}}
Comment 1 Aakash Jain 2020-03-20 09:21:15 PDT
Created attachment 394091 [details]
Patch
Comment 3 Aakash Jain 2020-03-20 13:44:59 PDT
Committed r258786: <https://trac.webkit.org/changeset/258786>
Comment 4 Radar WebKit Bug Importer 2020-03-20 13:45:18 PDT
<rdar://problem/60702843>