Convert RB.DraftReviewRequest to TypeScript/spina
Review Request #14086 — Created Aug. 8, 2024 and submitted — Latest diff uploaded
This change converts the DraftReviewRequest resource model to
TypeScript.The one complication in here is a change in behavior with mixins
where theurl()
implementation inDraftResourceModelMixin
was
taking priority over the one inDraftReviewRequest
. 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
Files
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 |
---|