WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
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+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
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)
Attachment 361145
[details]
did not pass style-queue: ERROR: Tools/BuildSlaveSupport/ews-app/ews/models/buildermapping.py:52: [BuilderMapping.save_mapping] Instance of 'BuilderMapping' has no 'save' member [pylint/E1101] [5] ERROR: Tools/BuildSlaveSupport/ews-app/ews/models/buildermapping.py:75: [BuilderMapping.get_existing_mapping] Class 'BuilderMapping' has no 'objects' member [pylint/E1101] [5] Total errors found: 2 in 2 files If any of these errors are false positives, please file a bug against check-webkit-style.
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
Committed
r240977
: <
https://trac.webkit.org/changeset/240977
>
Radar WebKit Bug Importer
Comment 6
2019-02-05 09:24:35 PST
<
rdar://problem/47820191
>
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.
Top of Page
Format For Printing
XML
Clone This Bug