Fix API issues creating comments on draft diffs.

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

david
Review Board
release-6.x
reviewboard

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
Fix API issues creating comments on draft diffs.
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...