[WIP] Add an is_draft property to file attachments.

Review Request #13138 — Created July 13, 2023 and discarded — Latest diff uploaded

Information

Review Board
release-6.x

Reviewers

This adds an is_draft property to file attachments, to easily check
when a file attachment is a draft or if it's published. This also
updates areas in the code where we check if a file attachment is a
draft. And unit tests for the file attachment resources have been
updated to check all of the fields of the file attachment.

  • Ran unit tests.
  • Used the property in upcoming changes.
  • Tested uploading user file attachments to comments, saw
    nothing out of the ordinary.

Changes between revision 6 and 7

orig
1
2
3
4
5
6
7
8

Commits

Summary ID Author
Add an is_draft property to file attachments.
5b5a86f9d27463fa19edb89d9e1188b801991025 Michelle Aubin
Add an is_draft property to file attachments.
b260322ebc3a72fe4dcaf4f88d0f51da6ce4400c Michelle Aubin
reviewboard/static/rb/js/common/resources/models/fileAttachmentModel.ts
reviewboard/static/rb/js/common/resources/models/tests/fileAttachmentModelTests.ts
reviewboard/static/rb/js/resources/models/fileAttachmentModel.es6.js
reviewboard/static/rb/js/resources/models/tests/fileAttachmentModelTests.es6.js
Loading...