Added automated flag when closing or editing review requests

Review Request #12051 — Created Feb. 10, 2022 and updated — Latest diff uploaded

Information

Review Board
master

Reviewers

  • Added automated flag to multiple methods related to hostingsvcs close
    hook, ReviewRequestResourceAPI Update(), and review_request.close()
    to store the value in ChangeDescription 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 when automated=True

  • Added codes to change.html template to render RB logo in the
    review request change entry when automated=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.

Diff Revision 8

This is not the most recent revision of the diff. The latest diff is revision 10. See what's changed.

orig
1
2
3
4
5
6
7
8
9
10

Commits

First Last Summary ID Author
Added isAutomatedClose flag through close hook flow to ChangeDescription's ex...
7602ec39197a73225f8745aff3cd31719ce5b613 sng06
Deleted print statements in unit tests
5c80bafbbf2de23d24c63d689f687a71d8a7fe72 sng06
Changed variable name to automate
872111ef847893732f11a7da42a050ea83df365e sng06
Added automate field to ReviewRequestResource API update method and passed it...
db297a5f73113abb152fa29217772cc66e8a3064 sng06
Added automate fields and made changes to email-related methods based on aut...
c3373843b683d9585c8214752943176547cfc81d sng06
Made changes to close email txt template based on automate flag value
09982b5c4da28428a9a4b0adc77df1b91e13ecec sng06
Added unit tests to review_request and test_email_sending test suites
db179bc452fbaad6ae9172762b6418269209da41 sng06
Added default value to automate argument in close_review_request method
2510eea77446702450a41d9bbd0f52d4121aa025 sng06
Changed assertEqual to assertTrue for test_post_commit_hook unit test
e3aa17a75338f49aa54d15ad63c882b7f405f0b8 sng06
Added optional for automate field in docstrings
8a09a22cbdeab482feed8d25701f6394b068f250 sng06
Fixed review_request_close unit test spy assertion
b62fb1873502ab686e565d6ace6d3b277df7cfd7 sng06
Added codes to render Review Board logo in review request change box when it ...
61707b3761207f8c90b1d974a12869dfb095f783 sng06
Added or edited docstrings and fixed formatting issues
6261eea6c3151e19473125392c675b12085e18b6 sng06
Added class tag to RB logo avatar rendering in change.html template
e7ece132d43385ca92e2eaa039b80005769ba846 sng06
Added unit tests to test changeEntry
912ad653f5bcd3a2392c19705713a44ae6909c0a sng06
Added automate field to webapi-request-fields decorator for both create and u...
a1a457d17ec6011b13d612e0170137aec579ffcd sng06
added unit tests to test PUT api for submitted and discarded actions
3669f17735fdc99ec5bb3d1e48b8aac098cb6593 sng06
Deleted print statements
c101d5b96306e8331a962252013f871b8f4b726b sng06
Edited automate field's description
a58040644fe80ca26811a6657017046a125d3e97 sng06
Added automate field to draft resource PUT endpoint, review request publish-r...
d04c52201d0d41496292d041143c9cca639b6f3e sng06
Fixed formatting and added docstring
1b8ab351a8b812a6f8e2e44d514bf3697f0db3c1 sng06
Added unit tests to test draft-related methods
bd4cdabc44ab04e80908622365e979894f4f9ebb sng06
Changed review_request close unit test name
71e86af411377ffefbf4b5257fd07b7856788b22 sng06
Changed automate to automated and edited unit tests docstrings
4484e5811f93262a3cf393b05b6336046eb09aef sng06
Fixed review request draft unit tests docstrings
394eb6ffbc2b5ff720ed704eff0693daf74c170b sng06
reviewboard/hostingsvcs/hook_utils.py
reviewboard/hostingsvcs/tests/test_bitbucket.py
reviewboard/hostingsvcs/tests/test_github.py
reviewboard/hostingsvcs/tests/test_rbgateway.py
reviewboard/notifications/email/message.py
reviewboard/notifications/email/signal_handlers.py
reviewboard/notifications/email/utils.py
reviewboard/notifications/tests/test_email_sending.py
reviewboard/reviews/signals.py
reviewboard/reviews/models/review_request.py
reviewboard/reviews/models/review_request_draft.py
reviewboard/reviews/tests/test_entries.py
reviewboard/reviews/tests/test_review_request.py
reviewboard/reviews/tests/test_review_request_draft.py
reviewboard/templates/notifications/review_request_email.txt
reviewboard/templates/reviews/entries/change.html
reviewboard/webapi/resources/review_request.py
reviewboard/webapi/resources/review_request_draft.py
reviewboard/webapi/tests/test_review_request.py
reviewboard/webapi/tests/test_review_request_draft.py
Loading...