Fix commits list with draft diffs.
Review Request #13770 — Created April 22, 2024 and submitted — Latest diff uploaded
When viewing a draft diff, the commits list in the diff viewer would not
render properly. This was happening because the query for all commits
was not including the draft diffset. This change fixes that up and adds
unit tests for the two cases of published diff and draft diff.
- Verified that I could view the commits list for a draft diff.
- Ran unit tests.