RESOLVED FIXED 208940
Add API endpoint in EWS django app to provide patch status in json format
https://bugs.webkit.org/show_bug.cgi?id=208940
Summary Add API endpoint in EWS django app to provide patch status in json format
Aakash Jain
Reported 2020-03-11 12:51:23 PDT
Add API endpoint in EWS django app to provide patch status in json format. This data can be used by other tools.
Attachments
Patch (5.56 KB, patch)
2020-03-11 12:56 PDT, Aakash Jain
no flags
Patch (4.74 KB, patch)
2020-03-12 15:12 PDT, Aakash Jain
no flags
Patch for landing (4.74 KB, patch)
2020-03-13 11:31 PDT, Aakash Jain
no flags
Aakash Jain
Comment 1 2020-03-11 12:56:32 PDT
Aakash Jain
Comment 2 2020-03-11 13:00:19 PDT
Jonathan Bedard
Comment 3 2020-03-11 15:14:49 PDT
Comment on attachment 393279 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=393279&action=review > Tools/ChangeLog:3 > + Add API endpoint in EWS django app to provide patch status in json format Good idea, curious if there is a specific use case you had in mind for this > Tools/BuildSlaveSupport/ews-app/ews/views/status.py:43 > + if build.result is None: I wonder if something like this would be more elegant: bubble['state'] = { None: 'started', Buildbot.SUCCESS: 'pass', Buildbot.WARNINGS: 'pass', ... }.get(build.result, 'error')
Aakash Jain
Comment 4 2020-03-12 15:12:16 PDT
Aakash Jain
Comment 5 2020-03-12 15:16:00 PDT
(In reply to Jonathan Bedard from comment #3) > Good idea, curious if there is a specific use case you had in mind for this For https://bugs.webkit.org/show_bug.cgi?id=208938 > I wonder if something like this would be more elegant: I simplified it further, simply used build.result for 'state'.
Jonathan Bedard
Comment 6 2020-03-12 16:23:01 PDT
Comment on attachment 393419 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=393419&action=review > Tools/BuildSlaveSupport/ews-app/ews/views/status.py:67 > + response_data = {'status': self._build_statuses_for_patch(patch)} I think we should return the list directly instead of packaging it in a dictionary.
Aakash Jain
Comment 7 2020-03-13 11:31:35 PDT
Created attachment 393511 [details] Patch for landing
Aakash Jain
Comment 8 2020-03-13 11:35:05 PDT
(In reply to Jonathan Bedard from comment #6) > I think we should return the list directly instead of packaging it in a dictionary. Done in updated patch.
WebKit Commit Bot
Comment 9 2020-03-13 11:52:05 PDT
Comment on attachment 393511 [details] Patch for landing Clearing flags on attachment: 393511 Committed r258415: <https://trac.webkit.org/changeset/258415>
WebKit Commit Bot
Comment 10 2020-03-13 11:52:07 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 11 2020-03-13 11:53:14 PDT
Note You need to log in before you can comment on or make changes to this bug.