Convert BaseResource.fetch to return a promise.
Review Request #11840 — Created Oct. 4, 2021 and submitted — Latest diff uploaded
This change updates the base resource model
fetch
operation to use
promises and async/await instead of callbacks.
- Ran js-tests.
- Manually tested various parts of the UI that rely on this.
reviewboard/static/rb/js/resources/models/baseResourceModel.es6.js |
---|
reviewboard/static/rb/js/resources/models/tests/baseResourceModelTests.es6.js |
---|
reviewboard/static/rb/js/resources/models/tests/draftReviewModelTests.es6.js |
---|
reviewboard/static/rb/js/resources/models/tests/reviewReplyModelTests.es6.js |
---|