Fix API issues creating comments on draft diffs.
Review Request #12946 — Created April 12, 2023 and submitted — Latest diff uploaded
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 bothget_queryset
andcreate
to
handle this.
- Ran unit tests.
- Added some comments to a diff that was not yet published.