Convert BaseResource.fetch to return a promise.
Review Request #11840 — Created Oct. 4, 2021 and submitted
This change updates the base resource model
fetchoperation to use
promises and async/await instead of callbacks.
- Ran js-tests.
- Manually tested various parts of the UI that rely on this.
| Summary | ID | 
|---|---|
| 1fb73e6ad9f92bf4f0ecb881655bcf5c78bc5a48 | 
| Description | From | Last Updated | 
|---|---|---|
| Col: 19 'optional catch binding' is only available in ES10 (use 'esversion: 10'). |  reviewbot | |
| Jasmine has an expectAsync that supports things like toBeRejected(). I think we can use that here, maybe in other tests? … |  | |
| Col: 19 'optional catch binding' is only available in ES10 (use 'esversion: 10'). |  reviewbot | 
- Commits:
- 
    Summary ID c47187ebf5f1c97183e8a339204f558fff3ef6cc 4014cbe0c28fa142af6c575e8f7677d7cfdc4d54 
- Diff:
- 
    Revision 2 (+446 -434) 
Checks run (2 succeeded)
 flake8
 passed.
 
  
 JSHint
 passed.
 
 - Commits:
- 
    Summary ID 4014cbe0c28fa142af6c575e8f7677d7cfdc4d54 1fb73e6ad9f92bf4f0ecb881655bcf5c78bc5a48 
- Diff:
- 
    Revision 3 (+446 -434) 
Checks run (2 succeeded)
 flake8
 passed.
 
  
 JSHint
 passed.
 
 