Port FileAttachment, DraftFileAttachment models and DraftResourceChildModelMixin to TS/spina.
Review Request #13180 — Created Aug. 1, 2023 and submitted
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.
Summary | ID |
---|---|
851273350e7d619d3c93af61de55c9dab7fb6eb0 |
Description | From | Last Updated |
---|---|---|
Missing semicolon. Column: 69 Error code: W033 |
reviewbot | |
Missing semicolon. Column: 43 Error code: W033 |
reviewbot | |
Add a blank line in here. |
david | |
The only thing necessary here should be rspNamespace. |
david | |
Add a blank line in here. |
david | |
This needs a doc comment. |
david | |
Add a blank line in here. |
david | |
This file should be deleted. |
david | |
This needs a trailing comma. |
david | |
This needs a trailing comma. |
david | |
.. before . |
david | |
This should use single quotes. |
david |
- Change Summary:
-
- Ported DraftFileAttachmentModel and DraftResourceChildModelMixin too
- Commits:
-
Summary ID ce5973b5068d7a90aeb7abd39c0ac0c6534edd56 1e3a12c45ff29c537bee4e303b2f4e78ff7d25ac - Diff:
-
Revision 2 (+666 -200)
- Summary:
-
[WIP] Port FileAttachment model to spina and Typescript.Port FileAttachment, DraftFileAttachment models and DraftResourceChildModelMixin to TS/spina.
- Description:
-
~ Port FileAttachment model to spina and Typescript.
~ 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. - Testing Done:
-
+ - 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.
- Commits:
-
Summary ID 1e3a12c45ff29c537bee4e303b2f4e78ff7d25ac f3c27408bd3b4ec269dfba5b3757d97bfe00ebfe - Diff:
-
Revision 3 (+560 -220)
Checks run (2 succeeded)
- Commits:
-
Summary ID f3c27408bd3b4ec269dfba5b3757d97bfe00ebfe 1568a80a3710e0b56d80eaaaba651cad3add681b - Diff:
-
Revision 4 (+418 -230)
Checks run (2 succeeded)
-
This looks basically ready to go. I just landed the change to fix up imports, so you'll probably need to fix a few conflicts when rebasing.
- Change Summary:
-
- Rebased and made sure all the imports were good.
- Commits:
-
Summary ID 1568a80a3710e0b56d80eaaaba651cad3add681b 46dc71f4a606131aeee45f242a2c6df1779c59c8 - Diff:
-
Revision 5 (+406 -226)
Checks run (2 succeeded)
- Commits:
-
Summary ID 46dc71f4a606131aeee45f242a2c6df1779c59c8 851273350e7d619d3c93af61de55c9dab7fb6eb0 - Diff:
-
Revision 6 (+406 -226)