Added automated_service_info field when closing or editing review requests automatically
Review Request #12223 — Created March 31, 2022 and updated
Added
automated_service_info
field alongsideautomated
flag to
provide details on the service that updated/closed the review
request automatically.
- Added
automated_service_info
field tohook_utils
,
ReviewRequestResourceAPI Update()
, and
review_request.close()
to store the value in
ChangeDescription model.
- Added
automated_service_info
field to
ReviewRequestResourceDraftAPI Update(), Create()
,
review_request.publish()
,draft.publish()
to store the value
in ChangeDescription model.
- Added
automated_service_info
field to closed/published
signals and email-related methods.
Added unit tests to
test_email_sending.py
Added unit tests totest_review_request.py
Added unit tests totest_review_request_draft.py
Added unit tests towebapi/tests/test_review_request.py
Added unit tests towebapi/tests/test_review_request_draft.py
Added assertion totest_github.py
,test_rbgateway.py
,
test_bitbucket.py
All tests passed.
Summary | ID | Author |
---|---|---|
1a7a9f92fb96a621c4fd3b261557f9fd77dba659 | sng06 | |
89a4fd6603ab502d442b3e41f2c7fbc71bd36151 | sng06 | |
2c2bb0e84ffa70cfa56a6d9de47f96e6f1aed39a | sng06 | |
65e1fdbe179ddf4febd361e142db10529296ee43 | sng06 |
Description | From | Last Updated |
---|---|---|
It would be nice if all of the docstrings for functions with automated_service_info arguments described the keys that can be … |
KY kylemclean | |
Instead of defining a variable, let's pass this inline as automated_service_info={'service_name': hosting_service_id} |
david | |
This could potentially be shortened to remove the if statement by utilizing a new variable and the fact that the … |
gdehal | |
This needs a trailing comma. |
david |
-
-
This could potentially be shortened to remove the
if
statement by utilizing a new variable and the fact that theget
function defaults toNone
if nothing is found.automated_service_info = extra_data.get('automated_service_info') extra_context.update({ 'automated_service_info': automated_service_info })
- Change Summary:
-
Addressed code review feedback.
- Commits:
-
Summary ID Author 4a2802f006b8e1b70575af7040d591707e0523a1 sng06 da0a9497e63a328ad78f8b23057947497bf089c3 sng06 1a7a9f92fb96a621c4fd3b261557f9fd77dba659 sng06 89a4fd6603ab502d442b3e41f2c7fbc71bd36151 sng06 2c2bb0e84ffa70cfa56a6d9de47f96e6f1aed39a sng06 65e1fdbe179ddf4febd361e142db10529296ee43 sng06 - Diff:
-
Revision 2 (+561 -187)