[ACS-8924] Failing Sonar job (#4219)

This commit is contained in:
jacekpluta 2024-11-13 14:03:35 +01:00 committed by GitHub
parent ad0ec78e02
commit 27e318aaa0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
8 changed files with 13 additions and 11 deletions

View File

@ -32,6 +32,7 @@
[value]="option"
[title]="option.tooltip | translate"
[attr.data-automation-id]="option.id"
(keyup.enter)="runAction(option)"
(click)="runAction(option)"
>
<div class="aca-bulk-actions-option-content">

View File

@ -44,6 +44,7 @@
[(ngModel)]="option.value"
[disabled]="option.shouldDisable()"
(change)="searchByOption()"
(keyup.enter)="$event.stopPropagation()"
(click)="$event.stopPropagation()"
>
{{ option.key | translate }}

View File

@ -89,7 +89,7 @@ export class FavoritesPageApi {
return Promise.resolve(isFavorite);
}
};
return Utils.retryCall(favorite);
return await Utils.retryCall(favorite);
} catch (error) {}
return isFavorite;
}
@ -112,7 +112,7 @@ export class FavoritesPageApi {
return Promise.resolve(totalItems);
}
};
return Utils.retryCall(favoriteFiles);
return await Utils.retryCall(favoriteFiles);
} catch {}
}

View File

@ -125,7 +125,7 @@ export class FileActionsApi {
return Promise.resolve(isLocked);
}
};
return Utils.retryCall(locked, data.retry);
return await Utils.retryCall(locked, data.retry);
} catch {}
return isLocked;
}

View File

@ -48,7 +48,7 @@ export class NodesApi {
aspectNames: string[] = null
): Promise<NodeEntry | null> {
try {
return this.createNode('cm:folder', name, parentId, title, description, null, author, null, aspectNames);
return await this.createNode('cm:folder', name, parentId, title, description, null, author, null, aspectNames);
} catch (error) {
console.error(`${this.constructor.name} ${this.createFolder.name}`, error);
return null;
@ -65,7 +65,7 @@ export class NodesApi {
aspectNames: string[] = null
): Promise<NodeEntry> {
try {
return this.createNode('cm:content', name, parentId, title, description, null, author, majorVersion, aspectNames);
return await this.createNode('cm:content', name, parentId, title, description, null, author, majorVersion, aspectNames);
} catch (error) {
console.error(`${this.constructor.name} ${this.createFile.name}`, error);
return null;
@ -74,7 +74,7 @@ export class NodesApi {
async createFiles(names: string[], relativePath = '/'): Promise<NodePaging> {
try {
return this.createContent({ files: names }, relativePath);
return await this.createContent({ files: names }, relativePath);
} catch (error) {
console.error(`${this.constructor.name} ${this.createFiles.name}: ${error}`);
return null;
@ -83,7 +83,7 @@ export class NodesApi {
async createFolders(names: string[], relativePath = '/'): Promise<NodePaging> {
try {
return this.createContent({ folders: names }, relativePath);
return await this.createContent({ folders: names }, relativePath);
} catch (error) {
console.error(`${this.constructor.name} ${this.createFolders.name}: ${error}`);
return null;

View File

@ -50,7 +50,7 @@ export class QueriesApi {
}
};
return Utils.retryCall(sites);
return await Utils.retryCall(sites);
} catch (error) {
console.error(`QueriesApi waitForSites : catch : `);
console.error(`\tExpected: ${data.expect} items, but found ${error}`);

View File

@ -73,7 +73,7 @@ export class SearchPageApi {
}
};
return Utils.retryCall(searchFiles);
return await Utils.retryCall(searchFiles);
} catch {}
}
}

View File

@ -89,7 +89,7 @@ export class SharedLinksApi {
}
};
return Utils.retryCall(sharedFile);
return await Utils.retryCall(sharedFile);
} catch (error) {
console.error(`SharedLinksApi waitForFilesToBeShared : catch : ${error}`);
console.error(`\tWait timeout reached waiting for files to be shared`);
@ -132,7 +132,7 @@ export class SharedLinksApi {
}
};
return Utils.retryCall(sharedFile);
return await Utils.retryCall(sharedFile);
} catch (error) {
console.error(`SharedLinksApi waitForFilesToNotBeShared : catch : ${error}`);
console.error(`\tWait timeout reached waiting for files to no longer be shared`);