Fix API issues creating comments on draft diffs.

Review Request #12943 — Created April 10, 2023 and discarded

Information

Review Board
release-6.x

Reviewers

This change fixes up a few issues with the API making comments on
not-yet-published diffs. The main problem here is that the DiffSet is not
added to the review request's DiffSetHistory until it is published. This
change fixes up the queries for both get_queryset and create to
handle this.

  • Ran unit tests.
  • Added some comments to a diff that was not yet published.
Summary ID
Fix API issues creating comments on draft diffs.
This change fixes up a few issues with the API making comments on not-yet-published diffs. The main problem here is that the DiffSet is not added to the review request's DiffSetHistory until it is published. This change fixes up the queries for both `get_queryset` and `create` to handle this. Testing Done: - Ran unit tests. - Added some comments to a diff that was not yet published.
e27af172ec676942927b4740e6f60c676f3e1a93
Description From Last Updated

line too long (90 > 79 characters) Column: 80 Error code: E501

reviewbotreviewbot

line too long (80 > 79 characters) Column: 80 Error code: E501

reviewbotreviewbot
Checks run (1 failed, 1 succeeded)
flake8 failed.
JSHint passed.

flake8

david
Review request changed

Status: Discarded

Loading...