Added automated flag when closing or editing review requests
Review Request #12051 — Created Feb. 10, 2022 and updated
- Added
automated
flag to multiple methods related to hostingsvcs close
hook,ReviewRequestResourceAPI Update()
, andreview_request.close()
to store the value inChangeDescription
model to track automated
closing of review requests
- Added
automated
flag to
ReviewRequestResourceDraftAPI Update(), Create()
,
review_request.publish()
,draft.publish()
to store the value in
ChangeDescription
model to track automated upddating/publishing
of review requests
- Added
automated
flag to closed/published signals and email-related methods to render the
review_request_email.txt
differently whenautomated=True
- Added codes to
change.html
template to render RB logo in the
review request change entry whenautomated=True
- Added unit tests to
test_email_sending.py
- Added unit tests to
test_review_request.py
- Added unit tests to
test_review_request_draft.py
- Added unit tests to
test_entries.py
- Added unit tests to
webapi/tests/test_review_request.py
- Added unit tests to
webapi/tests/test_review_request_draft.py
- Added assertion to
test_github.py
,test_rbgateway.py
,
test_bitbucket.py
All tests passed.
- Attached screenshots to show changes in close email .txt and
frontend changeEntry.
Summary | ID | Author |
---|---|---|
ae08fb83f5c61aee389a3cbdcc9ffc8bf86b1c2d | sng06 | |
379f610ef9fd8101e95f0e3e1b4f6dac08306e22 | sng06 | |
e0fb128a7626a118246c6e5719ba188d810ba775 | sng06 | |
1c3661f9ea9e0ba1fd4364ac3bc273569db33d37 | sng06 | |
672e3f66657b5ab3fc7dc722b5fbdea25a234989 | sng06 | |
730f9b695f6f425e6a51ff68eb9093e0b75dc240 | sng06 | |
b51528501757f139255fecd65b1ef1d5a580e728 | sng06 | |
e4d4befa081b860ae9778c85eab621a013b663f9 | sng06 | |
7f060eec71a71aafc213cf695f5c01a6e58d970a | sng06 | |
fedbc56e20bc730ac7d7c22488b272250d334e1a | sng06 | |
a76d6541b60e60860319bec47a668a1534824524 | sng06 | |
4c41ae5c1a003d287b178960b873f8c2b188e73e | sng06 | |
b9eee8455a0b69fb818ee37643a83cabeb4d5ed6 | sng06 | |
de8085943180d5a6a1c9580f9a3cc27d75f8bcc2 | sng06 | |
8c8a72124aef4a479f15a8da8c413f42f929ba5f | sng06 | |
77d8a9ac58eb1c1fe331080b25d4407baf822a0f | sng06 | |
cfaf73b88ed49e03a7895530f1dc1d05d0ef1ebc | sng06 | |
5ca764de4cc3f8e43301b3f20e61393350922742 | sng06 | |
0a6178d4e8bb5b1211c8ff518bb01a2b730f13d8 | sng06 | |
7bc2c4d53dc7715e2e5f81c46a3942585efa61dd | sng06 | |
7a0dd7e5491153465a7c79f5557b3be8fd40d346 | sng06 | |
7083cb3ff5115b9173faa39e7076da009d0c52af | sng06 | |
c8cb69aa733682714d6c7dc3f5e926523cdeee0a | sng06 | |
fc9641493757893dc659591ed86786263fbe00bc | sng06 | |
68e47456666ed949ed78317f8231957a67f0afd7 | sng06 | |
97e2167d50167344f5dfc41b77651293bbc2edb2 | sng06 | |
f95ea9155018cce8da51c570cdf037d1c44c3317 | sng06 | |
c34ba1ccffee84b560a925ac2bc90205455ac38b | sng06 | |
e8f58bbc3333ba3434d31374586344eebc297563 | sng06 |
Description | From | Last Updated |
---|---|---|
Please wrap your description and testing done fields to 70 columns. |
david | |
While we're here, can we rewrite this docstring to follow our modern standards? We probably also want to add a … |
david | |
Instead of assertEqual(..., True), use assertTrue(...). |
david | |
Instead of assertEqual(..., True), use assertTrue(...). |
david | |
Instead of assertEqual(..., True), use assertTrue(...). |
david | |
Please add ", optional" to the type. |
david | |
These can be combined: if not (user or automate): |
david | |
E128 continuation line under-indented for visual indent |
reviewbot | |
Should be marked as optional (and probably the other things in here should be fixed for that as well) |
david | |
As Christian mentioned in our meeting, these should be updated to use kgb's spy assertion methods. |
david | |
E501 line too long (80 > 79 characters) |
reviewbot | |
This should be in the imperative mood ("Close" instead of "Closes") |
david | |
Instead of defining a variable for this, let's just pass automated=True to close_review_request. |
david | |
This is getting so long, can we reformat it to list one parameter per line? |
david | |
This can be simplified: extra_context.update({ 'automated': changedesc.extra_data.get('automated', False), }) |
david | |
Test docstrings should always start with "Testing ..." |
david | |
"Testing ..." |
david | |
There's an extra space at the end of this docstring. |
david | |
There's an extra space at the end of this docstring. |
david | |
Please put the """ on the next line. |
david | |
This needs a trailing comma after it. |
david | |
Please put the """ on the next line. |
david | |
Please put the """ on the next line. |
david | |
This needs a trailing comma after it. |
david | |
Please put the """ on the next line. |
david | |
Please put the """ on the next line. |
david | |
This needs a trailing comma after it. |
david |
- Summary:
-
[WIP] Passed in isAutomatedClose flag to ChangeDescription's extra_data field through the close hook flow[WIP] Passed in automate flag to ChangeDescription's extra_data field
- Description:
-
~ Passed in
isAutomatedClose=True
flag to the ChangeDescriptionextra_data
field fromclose_all_review_requests()
toreview_request.close()
method triggered by the third-party repo services close webhook.~ Added
automate
flag to multiple methods from the close hookclose_all_review_requests()
andReviewRequestResource API Update()
toreview_request.close()
in order to store the value in theextra_data
field of theChangeDescription
model.~ Confirmation needed:
~ Currently,
automate
value is set to True in the close hook since the repositories that send the webhook will trigger this path. On the other hand, this flag is only added as an additional optional request parameter to theReviewRequestResource API Update()
method which will pass it toreview_request.close()
.- There are two paths that trigger the review_request.close()
method. The first one is triggered by the webhook that callshostingsvcs/hook_utils.close_all_review_requests()
. The second one is from theReviewRequestResource API update()
which is triggered when the “close” button is clicked in client. Since the third-party repo services will only trigger the first path,- I only pass in the flag in this path and make it as an optional argument in the review_request.close()
method definition without touching the ReviewRequestResource API. Please confirm if this is on the right track for this task. - Commits:
-
Summary ID Author d09ec9a630e59ccd4d356e39da2be613097dc61b sng06 a30c57fff70013477f0e1810e28e287dd438fe92 sng06 d09ec9a630e59ccd4d356e39da2be613097dc61b sng06 a30c57fff70013477f0e1810e28e287dd438fe92 sng06 bff129918a80b4b619d922bf3151808753dee697 sng06 704e69951f5b44c981b0babc68ccfd15b1460589 sng06 - Diff:
-
Revision 2 (+140 -40)
Checks run (2 succeeded)
- Commits:
-
Summary ID Author d09ec9a630e59ccd4d356e39da2be613097dc61b sng06 a30c57fff70013477f0e1810e28e287dd438fe92 sng06 bff129918a80b4b619d922bf3151808753dee697 sng06 704e69951f5b44c981b0babc68ccfd15b1460589 sng06 d09ec9a630e59ccd4d356e39da2be613097dc61b sng06 a30c57fff70013477f0e1810e28e287dd438fe92 sng06 bff129918a80b4b619d922bf3151808753dee697 sng06 704e69951f5b44c981b0babc68ccfd15b1460589 sng06 7499334ebd1202dc61cc200d5881264ae94b28c5 sng06 987462c143ee9aa9212410c63970e894232b9887 sng06 88e1fc7deb5abb459fa2066c2835b98df9f344c3 sng06 - Diff:
-
Revision 3 (+534 -70)
Checks run (1 failed, 1 succeeded)
flake8
-
Looking good!
-
Regarding the question in your testing done field, editing the existing hook tests is fine to add that one new assertion.
-
-
While we're here, can we rewrite this docstring to follow our modern standards?
We probably also want to add a default value for the
automate
field in case any extensions are using this API. -
-
-
-
-
-
Should be marked as optional (and probably the other things in here should be fixed for that as well)
-
- Description:
-
~ Added
automate
flag to multiple methods from the close hookclose_all_review_requests()
andReviewRequestResource API Update()
toreview_request.close()
in order to store the value in theextra_data
field of theChangeDescription
model.~ ~ Currently,
automate
value is set to True in the close hook since the repositories that send the webhook will trigger this path. On the other hand, this flag is only added as an additional optional request parameter to theReviewRequestResource API Update()
method which will pass it toreview_request.close()
.~ -
Added
automate
flag to multiple methods related to hostingsvcs close
hook,ReviewRequestResourceAPI Update()
, andreview_request.close()
to store the value inChangeDescription
model
~ -
Added
automate
flag to close email-related methods to render the
.txt email differently whenautomate=True
~ -
Added codes to
change.html
template to render RB logo in the
review request change entry whenautomate=True
-
- Testing Done:
-
~ Added unit tests in
test_review_request.py
. Since I can reuse some of the existing tests that calltest_post_commit_hook
, I only added an assert statement to that test intest_github.py
,test_bitbucket.py
, andtest_rbgateway
.~ ~ Confirmation needed:
~ Please advice if this is OK or should I create a new unit test with essentially the same code as test_post_commit_hook
which check for the value in theextra_data
field for clarity purposes.~ - Added unit tests to
test_email_sending.py
~ - Added unit tests to
test_review_request.py
~ -
Added assertion to
test_github.py, test_rbgateway.py, test_bitbucket.py
~ -
Attached screenshots to show changes in close email .txt and
frontend changeEntry.
- Added unit tests to
- Commits:
-
Summary ID Author d09ec9a630e59ccd4d356e39da2be613097dc61b sng06 a30c57fff70013477f0e1810e28e287dd438fe92 sng06 bff129918a80b4b619d922bf3151808753dee697 sng06 704e69951f5b44c981b0babc68ccfd15b1460589 sng06 7499334ebd1202dc61cc200d5881264ae94b28c5 sng06 987462c143ee9aa9212410c63970e894232b9887 sng06 88e1fc7deb5abb459fa2066c2835b98df9f344c3 sng06 d09ec9a630e59ccd4d356e39da2be613097dc61b sng06 a30c57fff70013477f0e1810e28e287dd438fe92 sng06 bff129918a80b4b619d922bf3151808753dee697 sng06 704e69951f5b44c981b0babc68ccfd15b1460589 sng06 7499334ebd1202dc61cc200d5881264ae94b28c5 sng06 987462c143ee9aa9212410c63970e894232b9887 sng06 88e1fc7deb5abb459fa2066c2835b98df9f344c3 sng06 cdfd1e76a552ee33e0081998156ef1bf9ba83dcd sng06 5de74edbf5f0bb29715dafaa3d0581eb3bf50a71 sng06 c8520c4fd3a0d5a6ab82ad9611ec67a94dcceafb sng06 1885c4820525de7b8854a5381663674065fa5211 sng06 12764cbee43b3b0b91e2fa8b72d27d7383771e66 sng06 - Diff:
-
Revision 4 (+571 -133)
- Added Files:
Checks run (2 succeeded)
- Testing Done:
-
- Added unit tests to
test_email_sending.py
- Added unit tests to
test_review_request.py
~ -
Added assertion to
test_github.py, test_rbgateway.py, test_bitbucket.py
~ -
Attached screenshots to show changes in close email .txt and
frontend changeEntry.
~ - Added unit tests to
test_entries.py
~ - Added unit tests to
webapi/tests/test_review_request.py
+ -
Added assertion to
test_github.py, test_rbgateway.py, test_bitbucket.py
+ -
Attached screenshots to show changes in close email .txt and
frontend changeEntry.
- Added unit tests to
- Commits:
-
Summary ID Author d09ec9a630e59ccd4d356e39da2be613097dc61b sng06 a30c57fff70013477f0e1810e28e287dd438fe92 sng06 bff129918a80b4b619d922bf3151808753dee697 sng06 704e69951f5b44c981b0babc68ccfd15b1460589 sng06 7499334ebd1202dc61cc200d5881264ae94b28c5 sng06 987462c143ee9aa9212410c63970e894232b9887 sng06 88e1fc7deb5abb459fa2066c2835b98df9f344c3 sng06 cdfd1e76a552ee33e0081998156ef1bf9ba83dcd sng06 5de74edbf5f0bb29715dafaa3d0581eb3bf50a71 sng06 c8520c4fd3a0d5a6ab82ad9611ec67a94dcceafb sng06 1885c4820525de7b8854a5381663674065fa5211 sng06 12764cbee43b3b0b91e2fa8b72d27d7383771e66 sng06 82e6d4656e0f8c6c13cc0dc6c3977fb7d342f82c sng06 d954f7e915b623c4c4ff11b465b6e7d365e1e77b sng06 6c5160b12d4039eea432e095c51bbc3ce282a828 sng06 90f9fc167785fff32dfda6c33434964fd8ea6768 sng06 89b0f1f05544fd471336b15faa7a00c0325b2eee sng06 4ff6a2fba5f9825a9a6398eec5f6cc5c1daa1b03 sng06 4842bf0893f569e60b6f90f4debc41fc20e13e15 sng06 645cbdd6867ff75c97733f7db260ca3db44c1bdb sng06 eaa3c4d2db3b0c554a35961140f7cff2f2b4694d sng06 5bd81e90eb551e1dcd96efdf0f2dcd779a46e1fc sng06 66f36fe7a1a20965a48ce68b7c96179756230ac3 sng06 3376fedddde90d296929cfb63045bd0032deeb15 sng06 0b6eb109d4e5167b022ecd5ccc6bc645b66cf48a sng06 e959cedd54e4986ef3448c762a86b634df5af3ea sng06 e4b46714b7522a40917137125685fe2b11f458e5 sng06 d11641558fd1ebcae91b4df9bac51266f15fb41a sng06 bcf023cdf739ea416e8e74781acc9e35feed02d1 sng06 797a220df1eb342c1f15be33f9b2779d8cb92f31 sng06 - Diff:
-
Revision 5 (+839 -145)
Checks run (2 succeeded)
- Change Summary:
-
Added automate field and codes to draft publish operations
- Commits:
-
Summary ID Author 82e6d4656e0f8c6c13cc0dc6c3977fb7d342f82c sng06 d954f7e915b623c4c4ff11b465b6e7d365e1e77b sng06 6c5160b12d4039eea432e095c51bbc3ce282a828 sng06 90f9fc167785fff32dfda6c33434964fd8ea6768 sng06 89b0f1f05544fd471336b15faa7a00c0325b2eee sng06 4ff6a2fba5f9825a9a6398eec5f6cc5c1daa1b03 sng06 4842bf0893f569e60b6f90f4debc41fc20e13e15 sng06 645cbdd6867ff75c97733f7db260ca3db44c1bdb sng06 eaa3c4d2db3b0c554a35961140f7cff2f2b4694d sng06 5bd81e90eb551e1dcd96efdf0f2dcd779a46e1fc sng06 66f36fe7a1a20965a48ce68b7c96179756230ac3 sng06 3376fedddde90d296929cfb63045bd0032deeb15 sng06 0b6eb109d4e5167b022ecd5ccc6bc645b66cf48a sng06 e959cedd54e4986ef3448c762a86b634df5af3ea sng06 e4b46714b7522a40917137125685fe2b11f458e5 sng06 d11641558fd1ebcae91b4df9bac51266f15fb41a sng06 bcf023cdf739ea416e8e74781acc9e35feed02d1 sng06 797a220df1eb342c1f15be33f9b2779d8cb92f31 sng06 15d6fe45b3ce459167df54f7019e3fce9ce5685d sng06 b8d6558376dfd06da13dfeda8421d5ef33bac926 sng06 8aa66d65c2be8136bc2b43db23c5d10c3dca5ca4 sng06 94c874518d9f105f829facb72bde5d5855b959b1 sng06 6096736f849593d99d88b525f018430e753bcc19 sng06 8c254457115746a5bc3f68169f071eb5d59d1498 sng06 8ca0e35dd81b36849514a31e10eb6eb02dfc9627 sng06 80c374d3fbaf65df568a733c181560942fa2f0bc sng06 7e7061c68d3a6d0828c704597b3089bca76d504c sng06 96a34c4d3e87bcbe285e066e0b4e98265ad5bcde sng06 4532790323e090df538f5148e517d52bc1d8c895 sng06 1e8a4fa9780e5f82c76ecf87da3c4f766cc51af0 sng06 3a382f9b42fcb3add8eb77c756e78bee3152f901 sng06 e4c5ad6b3a0a6cf18a5c15058e5f77bee6b6d9ab sng06 fe28911e4d1f6eb470e93aab7c68b784aea351d4 sng06 797995df7da75c2cdef2d315b1780efd2df84186 sng06 bd5a3f00b096d3579082c6cc09af7b4887b1e523 sng06 568feed51055cd9b9bc143513a6a9c6cd76b8a16 sng06 ec687ac43eb477f5e20374a59c72f839e446e8dc sng06 d53d2f7b31dbc98bbcd280076b3b1e9198de26de sng06 - Diff:
-
Revision 6 (+929 -169)
- Change Summary:
-
Added unit tests to test draft operations-related methods
- Description:
-
~ -
Added
automate
flag to multiple methods related to hostingsvcs close
hook,ReviewRequestResourceAPI Update()
, andreview_request.close()
to store the value inChangeDescription
model
~ -
Added
automate
flag to close email-related methods to render the
.txt email differently whenautomate=True
~ -
Added codes to
change.html
template to render RB logo in the
review request change entry whenautomate=True
~ - Added
automate
flag to multiple methods related to hostingsvcs close
hook,ReviewRequestResourceAPI Update()
, andreview_request.close()
to store the value inChangeDescription
model to track automated
closing of review requests
~ ~ + + - Added
automate
flag to
ReviewRequestResourceDraftAPI Update(), Create()
,
review_request.publish()
,draft.publish()
to store the value in
ChangeDescription
model to track automated upddating/publishing
of review requests
+ + + + - Added
automate
flag to close email-related methods to render the
.txt email differently whenautomate=True
+ + + + - Added codes to
change.html
template to render RB logo in the
review request change entry whenautomate=True
-
- Testing Done:
-
- Added unit tests to
test_email_sending.py
- Added unit tests to
test_review_request.py
~ - Added unit tests to
test_entries.py
~ - Added unit tests to
webapi/tests/test_review_request.py
~ -
Added assertion to
test_github.py, test_rbgateway.py, test_bitbucket.py
~ -
Attached screenshots to show changes in close email .txt and
frontend changeEntry.
~ - Added unit tests to
test_review_request_draft.py
~ - Added unit tests to
test_entries.py
~ - Added unit tests to
webapi/tests/test_review_request.py
~ - Added unit tests to
webapi/tests/test_review_request_draft.py
+ -
Added assertion to
test_github.py, test_rbgateway.py, test_bitbucket.py
+ -
Attached screenshots to show changes in close email .txt and
frontend changeEntry.
- Added unit tests to
- Commits:
-
Summary ID Author 15d6fe45b3ce459167df54f7019e3fce9ce5685d sng06 b8d6558376dfd06da13dfeda8421d5ef33bac926 sng06 8aa66d65c2be8136bc2b43db23c5d10c3dca5ca4 sng06 94c874518d9f105f829facb72bde5d5855b959b1 sng06 6096736f849593d99d88b525f018430e753bcc19 sng06 8c254457115746a5bc3f68169f071eb5d59d1498 sng06 8ca0e35dd81b36849514a31e10eb6eb02dfc9627 sng06 80c374d3fbaf65df568a733c181560942fa2f0bc sng06 7e7061c68d3a6d0828c704597b3089bca76d504c sng06 96a34c4d3e87bcbe285e066e0b4e98265ad5bcde sng06 4532790323e090df538f5148e517d52bc1d8c895 sng06 1e8a4fa9780e5f82c76ecf87da3c4f766cc51af0 sng06 3a382f9b42fcb3add8eb77c756e78bee3152f901 sng06 e4c5ad6b3a0a6cf18a5c15058e5f77bee6b6d9ab sng06 fe28911e4d1f6eb470e93aab7c68b784aea351d4 sng06 797995df7da75c2cdef2d315b1780efd2df84186 sng06 bd5a3f00b096d3579082c6cc09af7b4887b1e523 sng06 568feed51055cd9b9bc143513a6a9c6cd76b8a16 sng06 ec687ac43eb477f5e20374a59c72f839e446e8dc sng06 d53d2f7b31dbc98bbcd280076b3b1e9198de26de sng06 7602ec39197a73225f8745aff3cd31719ce5b613 sng06 5c80bafbbf2de23d24c63d689f687a71d8a7fe72 sng06 872111ef847893732f11a7da42a050ea83df365e sng06 db297a5f73113abb152fa29217772cc66e8a3064 sng06 c3373843b683d9585c8214752943176547cfc81d sng06 09982b5c4da28428a9a4b0adc77df1b91e13ecec sng06 db179bc452fbaad6ae9172762b6418269209da41 sng06 2510eea77446702450a41d9bbd0f52d4121aa025 sng06 e3aa17a75338f49aa54d15ad63c882b7f405f0b8 sng06 8a09a22cbdeab482feed8d25701f6394b068f250 sng06 b62fb1873502ab686e565d6ace6d3b277df7cfd7 sng06 61707b3761207f8c90b1d974a12869dfb095f783 sng06 6261eea6c3151e19473125392c675b12085e18b6 sng06 e7ece132d43385ca92e2eaa039b80005769ba846 sng06 912ad653f5bcd3a2392c19705713a44ae6909c0a sng06 a1a457d17ec6011b13d612e0170137aec579ffcd sng06 3669f17735fdc99ec5bb3d1e48b8aac098cb6593 sng06 c101d5b96306e8331a962252013f871b8f4b726b sng06 a58040644fe80ca26811a6657017046a125d3e97 sng06 d04c52201d0d41496292d041143c9cca639b6f3e sng06 1b8ab351a8b812a6f8e2e44d514bf3697f0db3c1 sng06 bd4cdabc44ab04e80908622365e979894f4f9ebb sng06 71e86af411377ffefbf4b5257fd07b7856788b22 sng06 - Diff:
-
Revision 7 (+1717 -215)
Checks run (2 succeeded)
- Commits:
-
Summary ID Author 7602ec39197a73225f8745aff3cd31719ce5b613 sng06 5c80bafbbf2de23d24c63d689f687a71d8a7fe72 sng06 872111ef847893732f11a7da42a050ea83df365e sng06 db297a5f73113abb152fa29217772cc66e8a3064 sng06 c3373843b683d9585c8214752943176547cfc81d sng06 09982b5c4da28428a9a4b0adc77df1b91e13ecec sng06 db179bc452fbaad6ae9172762b6418269209da41 sng06 2510eea77446702450a41d9bbd0f52d4121aa025 sng06 e3aa17a75338f49aa54d15ad63c882b7f405f0b8 sng06 8a09a22cbdeab482feed8d25701f6394b068f250 sng06 b62fb1873502ab686e565d6ace6d3b277df7cfd7 sng06 61707b3761207f8c90b1d974a12869dfb095f783 sng06 6261eea6c3151e19473125392c675b12085e18b6 sng06 e7ece132d43385ca92e2eaa039b80005769ba846 sng06 912ad653f5bcd3a2392c19705713a44ae6909c0a sng06 a1a457d17ec6011b13d612e0170137aec579ffcd sng06 3669f17735fdc99ec5bb3d1e48b8aac098cb6593 sng06 c101d5b96306e8331a962252013f871b8f4b726b sng06 a58040644fe80ca26811a6657017046a125d3e97 sng06 d04c52201d0d41496292d041143c9cca639b6f3e sng06 1b8ab351a8b812a6f8e2e44d514bf3697f0db3c1 sng06 bd4cdabc44ab04e80908622365e979894f4f9ebb sng06 71e86af411377ffefbf4b5257fd07b7856788b22 sng06 7602ec39197a73225f8745aff3cd31719ce5b613 sng06 5c80bafbbf2de23d24c63d689f687a71d8a7fe72 sng06 872111ef847893732f11a7da42a050ea83df365e sng06 db297a5f73113abb152fa29217772cc66e8a3064 sng06 c3373843b683d9585c8214752943176547cfc81d sng06 09982b5c4da28428a9a4b0adc77df1b91e13ecec sng06 db179bc452fbaad6ae9172762b6418269209da41 sng06 2510eea77446702450a41d9bbd0f52d4121aa025 sng06 e3aa17a75338f49aa54d15ad63c882b7f405f0b8 sng06 8a09a22cbdeab482feed8d25701f6394b068f250 sng06 b62fb1873502ab686e565d6ace6d3b277df7cfd7 sng06 61707b3761207f8c90b1d974a12869dfb095f783 sng06 6261eea6c3151e19473125392c675b12085e18b6 sng06 e7ece132d43385ca92e2eaa039b80005769ba846 sng06 912ad653f5bcd3a2392c19705713a44ae6909c0a sng06 a1a457d17ec6011b13d612e0170137aec579ffcd sng06 3669f17735fdc99ec5bb3d1e48b8aac098cb6593 sng06 c101d5b96306e8331a962252013f871b8f4b726b sng06 a58040644fe80ca26811a6657017046a125d3e97 sng06 d04c52201d0d41496292d041143c9cca639b6f3e sng06 1b8ab351a8b812a6f8e2e44d514bf3697f0db3c1 sng06 bd4cdabc44ab04e80908622365e979894f4f9ebb sng06 71e86af411377ffefbf4b5257fd07b7856788b22 sng06 4484e5811f93262a3cf393b05b6336046eb09aef sng06 394eb6ffbc2b5ff720ed704eff0693daf74c170b sng06 - Diff:
-
Revision 8 (+1887 -373)
Checks run (2 succeeded)
- Summary:
-
[WIP] Passed in automate flag to ChangeDescription's extra_data fieldAdded automated flag when closing or editing review requests
- Description:
-
~ - Added
automate
flag to multiple methods related to hostingsvcs close
hook,ReviewRequestResourceAPI Update()
, andreview_request.close()
to store the value inChangeDescription
model to track automated
closing of review requests
~ - Added
automated
flag to multiple methods related to hostingsvcs close
hook,ReviewRequestResourceAPI Update()
, andreview_request.close()
to store the value inChangeDescription
model to track automated
closing of review requests
~ - Added
automate
flag to
ReviewRequestResourceDraftAPI Update(), Create()
,
review_request.publish()
,draft.publish()
to store the value in
ChangeDescription
model to track automated upddating/publishing
of review requests
~ - Added
automated
flag to
ReviewRequestResourceDraftAPI Update(), Create()
,
review_request.publish()
,draft.publish()
to store the value in
ChangeDescription
model to track automated upddating/publishing
of review requests
~ - Added
automate
flag to close email-related methods to render the
.txt email differently whenautomate=True
~ - Added
automated
flag to closed/published signals and email-related methods to render the
review_request_email.txt
differently whenautomated=True
~ - Added codes to
change.html
template to render RB logo in the
review request change entry whenautomate=True
~ - Added codes to
change.html
template to render RB logo in the
review request change entry whenautomated=True
- Added
- Testing Done:
-
- Added unit tests to
test_email_sending.py
- Added unit tests to
test_review_request.py
- Added unit tests to
test_review_request_draft.py
- Added unit tests to
test_entries.py
- Added unit tests to
webapi/tests/test_review_request.py
- Added unit tests to
webapi/tests/test_review_request_draft.py
~ -
Added assertion to
test_github.py, test_rbgateway.py, test_bitbucket.py
~ -
Attached screenshots to show changes in close email .txt and
frontend changeEntry.
~ - Added assertion to
test_github.py
,test_rbgateway.py
,
test_bitbucket.py
~ + All tests passed.
+ + - Attached screenshots to show changes in close email .txt and
frontend changeEntry.
- Added unit tests to
- Commits:
-
Summary ID Author 7602ec39197a73225f8745aff3cd31719ce5b613 sng06 5c80bafbbf2de23d24c63d689f687a71d8a7fe72 sng06 872111ef847893732f11a7da42a050ea83df365e sng06 db297a5f73113abb152fa29217772cc66e8a3064 sng06 c3373843b683d9585c8214752943176547cfc81d sng06 09982b5c4da28428a9a4b0adc77df1b91e13ecec sng06 db179bc452fbaad6ae9172762b6418269209da41 sng06 2510eea77446702450a41d9bbd0f52d4121aa025 sng06 e3aa17a75338f49aa54d15ad63c882b7f405f0b8 sng06 8a09a22cbdeab482feed8d25701f6394b068f250 sng06 b62fb1873502ab686e565d6ace6d3b277df7cfd7 sng06 61707b3761207f8c90b1d974a12869dfb095f783 sng06 6261eea6c3151e19473125392c675b12085e18b6 sng06 e7ece132d43385ca92e2eaa039b80005769ba846 sng06 912ad653f5bcd3a2392c19705713a44ae6909c0a sng06 a1a457d17ec6011b13d612e0170137aec579ffcd sng06 3669f17735fdc99ec5bb3d1e48b8aac098cb6593 sng06 c101d5b96306e8331a962252013f871b8f4b726b sng06 a58040644fe80ca26811a6657017046a125d3e97 sng06 d04c52201d0d41496292d041143c9cca639b6f3e sng06 1b8ab351a8b812a6f8e2e44d514bf3697f0db3c1 sng06 bd4cdabc44ab04e80908622365e979894f4f9ebb sng06 71e86af411377ffefbf4b5257fd07b7856788b22 sng06 4484e5811f93262a3cf393b05b6336046eb09aef sng06 394eb6ffbc2b5ff720ed704eff0693daf74c170b sng06 7602ec39197a73225f8745aff3cd31719ce5b613 sng06 5c80bafbbf2de23d24c63d689f687a71d8a7fe72 sng06 872111ef847893732f11a7da42a050ea83df365e sng06 db297a5f73113abb152fa29217772cc66e8a3064 sng06 c3373843b683d9585c8214752943176547cfc81d sng06 09982b5c4da28428a9a4b0adc77df1b91e13ecec sng06 db179bc452fbaad6ae9172762b6418269209da41 sng06 2510eea77446702450a41d9bbd0f52d4121aa025 sng06 e3aa17a75338f49aa54d15ad63c882b7f405f0b8 sng06 8a09a22cbdeab482feed8d25701f6394b068f250 sng06 b62fb1873502ab686e565d6ace6d3b277df7cfd7 sng06 61707b3761207f8c90b1d974a12869dfb095f783 sng06 6261eea6c3151e19473125392c675b12085e18b6 sng06 e7ece132d43385ca92e2eaa039b80005769ba846 sng06 912ad653f5bcd3a2392c19705713a44ae6909c0a sng06 a1a457d17ec6011b13d612e0170137aec579ffcd sng06 3669f17735fdc99ec5bb3d1e48b8aac098cb6593 sng06 c101d5b96306e8331a962252013f871b8f4b726b sng06 a58040644fe80ca26811a6657017046a125d3e97 sng06 d04c52201d0d41496292d041143c9cca639b6f3e sng06 1b8ab351a8b812a6f8e2e44d514bf3697f0db3c1 sng06 bd4cdabc44ab04e80908622365e979894f4f9ebb sng06 71e86af411377ffefbf4b5257fd07b7856788b22 sng06 4484e5811f93262a3cf393b05b6336046eb09aef sng06 394eb6ffbc2b5ff720ed704eff0693daf74c170b sng06 428422a748e222da03859a461d82c65bcbf369e0 sng06 11ac18e034e3d3c45fe5e7597c1c8baa4e78b6b7 sng06 7b2b51eae67be14929f128763de6c9754050b969 sng06 - Diff:
-
Revision 9 (+1907 -391)
Checks run (2 succeeded)
- Change Summary:
-
Addressed code review feedback
- Commits:
-
Summary ID Author 7602ec39197a73225f8745aff3cd31719ce5b613 sng06 5c80bafbbf2de23d24c63d689f687a71d8a7fe72 sng06 872111ef847893732f11a7da42a050ea83df365e sng06 db297a5f73113abb152fa29217772cc66e8a3064 sng06 c3373843b683d9585c8214752943176547cfc81d sng06 09982b5c4da28428a9a4b0adc77df1b91e13ecec sng06 db179bc452fbaad6ae9172762b6418269209da41 sng06 2510eea77446702450a41d9bbd0f52d4121aa025 sng06 e3aa17a75338f49aa54d15ad63c882b7f405f0b8 sng06 8a09a22cbdeab482feed8d25701f6394b068f250 sng06 b62fb1873502ab686e565d6ace6d3b277df7cfd7 sng06 61707b3761207f8c90b1d974a12869dfb095f783 sng06 6261eea6c3151e19473125392c675b12085e18b6 sng06 e7ece132d43385ca92e2eaa039b80005769ba846 sng06 912ad653f5bcd3a2392c19705713a44ae6909c0a sng06 a1a457d17ec6011b13d612e0170137aec579ffcd sng06 3669f17735fdc99ec5bb3d1e48b8aac098cb6593 sng06 c101d5b96306e8331a962252013f871b8f4b726b sng06 a58040644fe80ca26811a6657017046a125d3e97 sng06 d04c52201d0d41496292d041143c9cca639b6f3e sng06 1b8ab351a8b812a6f8e2e44d514bf3697f0db3c1 sng06 bd4cdabc44ab04e80908622365e979894f4f9ebb sng06 71e86af411377ffefbf4b5257fd07b7856788b22 sng06 4484e5811f93262a3cf393b05b6336046eb09aef sng06 394eb6ffbc2b5ff720ed704eff0693daf74c170b sng06 428422a748e222da03859a461d82c65bcbf369e0 sng06 11ac18e034e3d3c45fe5e7597c1c8baa4e78b6b7 sng06 7b2b51eae67be14929f128763de6c9754050b969 sng06 ae08fb83f5c61aee389a3cbdcc9ffc8bf86b1c2d sng06 379f610ef9fd8101e95f0e3e1b4f6dac08306e22 sng06 e0fb128a7626a118246c6e5719ba188d810ba775 sng06 1c3661f9ea9e0ba1fd4364ac3bc273569db33d37 sng06 672e3f66657b5ab3fc7dc722b5fbdea25a234989 sng06 730f9b695f6f425e6a51ff68eb9093e0b75dc240 sng06 b51528501757f139255fecd65b1ef1d5a580e728 sng06 e4d4befa081b860ae9778c85eab621a013b663f9 sng06 7f060eec71a71aafc213cf695f5c01a6e58d970a sng06 fedbc56e20bc730ac7d7c22488b272250d334e1a sng06 a76d6541b60e60860319bec47a668a1534824524 sng06 4c41ae5c1a003d287b178960b873f8c2b188e73e sng06 b9eee8455a0b69fb818ee37643a83cabeb4d5ed6 sng06 de8085943180d5a6a1c9580f9a3cc27d75f8bcc2 sng06 8c8a72124aef4a479f15a8da8c413f42f929ba5f sng06 77d8a9ac58eb1c1fe331080b25d4407baf822a0f sng06 cfaf73b88ed49e03a7895530f1dc1d05d0ef1ebc sng06 5ca764de4cc3f8e43301b3f20e61393350922742 sng06 0a6178d4e8bb5b1211c8ff518bb01a2b730f13d8 sng06 7bc2c4d53dc7715e2e5f81c46a3942585efa61dd sng06 7a0dd7e5491153465a7c79f5557b3be8fd40d346 sng06 7083cb3ff5115b9173faa39e7076da009d0c52af sng06 c8cb69aa733682714d6c7dc3f5e926523cdeee0a sng06 fc9641493757893dc659591ed86786263fbe00bc sng06 68e47456666ed949ed78317f8231957a67f0afd7 sng06 97e2167d50167344f5dfc41b77651293bbc2edb2 sng06 f95ea9155018cce8da51c570cdf037d1c44c3317 sng06 c34ba1ccffee84b560a925ac2bc90205455ac38b sng06 e8f58bbc3333ba3434d31374586344eebc297563 sng06 - Diff:
-
Revision 10 (+1949 -433)