• 
      

    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.

    Commits

    Files