Convert RB.DraftReviewRequest to TypeScript/spina

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

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.
Summary ID
Convert RB.DraftReviewRequest to TypeScript/spina
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. Testing Done: - Ran js-tests. - Ran setup.py build_media.
b63ab99d9059a8055f2cb4b8bab318a5d1bfd253
Description From Last Updated

This change isn't documented in the description. What's it for?

chipx86chipx86

Should we Version Added this one?

chipx86chipx86
chipx86
  1. 
      
  2. Show all issues

    This change isn't documented in the description. What's it for?

    1. Added to the description and made a note in this method's doc comment too.

  3. reviewboard/static/rb/js/common/resources/models/userModel.ts (Diff revision 1)
     
     
     
     
     
     
     
     
    Show all issues

    Should we Version Added this one?

  4. 
      
david
chipx86
  1. Ship It!
  2. 
      
david
Review request changed
Status:
Completed
Change Summary:
Pushed to master (f295cee)