Convert RB.DraftReviewRequest to TypeScript/spina

Review Request #14086 — Created Aug. 8, 2024 and submitted — Latest diff uploaded

Information

Review Board
master

Reviewers

This change converts the DraftReviewRequest resource model to
TypeScript.

The one complication in here is a change in behavior with mixins
where the url() implementation in DraftResourceModelMixin was
taking priority over the one in DraftReviewRequest. In the vast
majority of draft resource cases, the implementation in the mixin
is what we want, but review requests are special.

  • Ran js-tests.
  • Ran setup.py build_media.

Diff Revision 1

This is not the most recent revision of the diff. The latest diff is revision 2. See what's changed.

orig
1
2

Commits

First Last Summary ID Author
Convert RB.DraftReviewRequest to TypeScript/spina
This change converts the DraftReviewRequest resource model to TypeScript. Testing Done: - Ran js-tests. - Ran setup.py build_media.
660a7b38c1ea345a213178245b96b21c9bb952ee David Trowbridge
reviewboard/staticbundles.py
reviewboard/static/rb/js/common/resources/index.ts
reviewboard/static/rb/js/common/resources/models/draftResourceModelMixin.ts
reviewboard/static/rb/js/common/resources/models/draftReviewRequestModel.ts
reviewboard/static/rb/js/common/resources/models/reviewRequestModel.ts
reviewboard/static/rb/js/common/resources/models/userModel.ts
reviewboard/static/rb/js/resources/models/tests/draftReviewRequestModelTests.es6.js
reviewboard/static/rb/js/common/resources/models/tests/index.ts
reviewboard/static/rb/js/resources/models/draftReviewRequestModel.es6.js
Loading...