Port FileAttachment, DraftFileAttachment models and DraftResourceChildModelMixin to TS/spina.

Review Request #13180 — Created Aug. 1, 2023 and submitted — Latest diff uploaded

Information

Review Board
release-6.x

Reviewers

This ports the file attachment and draft file attachment models to TypeScript
and spina. We enable extra data support on the models, which we don't use
for any particular reason right now but might need to use in the future. This
also ports the draft resource child model mixin to TypeScript/spina.

  • Tested uploading new file attachments.
  • Tested dragging and dropping to upload new file attachments.
  • Tested viewing file attachments.
  • Saw that published file attachments appear correctly.
  • Tested dragging and dropping an image file into a review reply.
  • Tested deleting file attachments.
  • Tested updating file attachments.
  • Tested posting review request drafts with file attachments.
  • Ran JS unit tests.

Changes between revision 4 and 5

orig
1
2
3
4
5
6

Commits

Summary ID Author
Port FileAttachment model to spina and Typescript.
1568a80a3710e0b56d80eaaaba651cad3add681b Michelle Aubin
Port FileAttachment, DraftFileAttachment models and
DraftResourceChildModelMixin to TS/spina.
46dc71f4a606131aeee45f242a2c6df1779c59c8 Michelle Aubin
reviewboard/staticbundles.py
reviewboard/static/rb/js/common/resources/index.ts
reviewboard/static/rb/js/common/resources/models/baseResourceModel.ts
reviewboard/static/rb/js/common/resources/models/tests/index.ts
reviewboard/static/rb/js/reviews/models/reviewablePageModel.ts
reviewboard/static/rb/js/reviews/views/reviewRequestEditorView.ts
Loading...