RESOLVED FIXED 194264
[ews-app] Add method to save BuilderMapping to database
https://bugs.webkit.org/show_bug.cgi?id=194264
Summary [ews-app] Add method to save BuilderMapping to database
Aakash Jain
Reported 2019-02-04 18:15:02 PST
We should add method to save Builder Mapping to database for ews-app.
Attachments
Proposed patch (3.50 KB, patch)
2019-02-04 18:19 PST, Aakash Jain
lforschler: review+
Aakash Jain
Comment 1 2019-02-04 18:19:29 PST
Created attachment 361145 [details] Proposed patch
EWS Watchlist
Comment 2 2019-02-04 18:21:09 PST Comment hidden (obsolete)
Lucas Forschler
Comment 3 2019-02-05 09:07:58 PST
Comment on attachment 361145 [details] Proposed patch View in context: https://bugs.webkit.org/attachment.cgi?id=361145&action=review > Tools/BuildSlaveSupport/ews-app/ews/models/buildermapping.py:59 > + _log.error('builder_id {} does not match with builer_id {}. Ignoring new data.'.format(mapping.builder_id, builder_id)) nit: typo: builer
Jonathan Bedard
Comment 4 2019-02-05 09:15:55 PST
Comment on attachment 361145 [details] Proposed patch View in context: https://bugs.webkit.org/attachment.cgi?id=361145&action=review > Tools/BuildSlaveSupport/ews-app/ews/models/buildermapping.py:80 > + def is_valid_mapping(cls, builder_id, builder_name, display_name): Why are we accepting builder_name and display_name if we don't do anything with them?
Aakash Jain
Comment 5 2019-02-05 09:23:10 PST
Radar WebKit Bug Importer
Comment 6 2019-02-05 09:24:35 PST
Aakash Jain
Comment 7 2019-02-05 09:25:55 PST
> Why are we accepting builder_name and display_name if we don't do anything with them? It's not required, but I added it for future, we might want to add more validation later on (e.g.: ensuring that display_name is string).
Note You need to log in before you can comment on or make changes to this bug.