Chore/Tech debt: Remove (most) instances of $q angular service use (#20668)

* Chore/Tech debt: Remove (most) instances of $q angular service use
Removes instances where the angular $q service is used and replaces
it with native Promises.
This commit is contained in:
kay delaney
2019-12-05 09:04:03 +00:00
committed by GitHub
parent 62f0aca3e6
commit 880fbcb09a
58 changed files with 320 additions and 467 deletions

View File

@ -1,9 +1,6 @@
import _ from 'lodash';
import { IQService } from 'angular';
export default class ResponseParser {
constructor(private $q: IQService) {}
processQueryResult(res: any) {
const data: any[] = [];
@ -125,7 +122,7 @@ export default class ResponseParser {
}
if (timeColumnIndex === -1) {
return this.$q.reject({
return Promise.reject({
message: 'Missing mandatory time column in annotation query.',
});
}