mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-05-12 17:04:46 +00:00
[ACS-8924] Failing Sonar job (#4219)
This commit is contained in:
parent
ad0ec78e02
commit
27e318aaa0
@ -32,6 +32,7 @@
|
|||||||
[value]="option"
|
[value]="option"
|
||||||
[title]="option.tooltip | translate"
|
[title]="option.tooltip | translate"
|
||||||
[attr.data-automation-id]="option.id"
|
[attr.data-automation-id]="option.id"
|
||||||
|
(keyup.enter)="runAction(option)"
|
||||||
(click)="runAction(option)"
|
(click)="runAction(option)"
|
||||||
>
|
>
|
||||||
<div class="aca-bulk-actions-option-content">
|
<div class="aca-bulk-actions-option-content">
|
||||||
|
@ -44,6 +44,7 @@
|
|||||||
[(ngModel)]="option.value"
|
[(ngModel)]="option.value"
|
||||||
[disabled]="option.shouldDisable()"
|
[disabled]="option.shouldDisable()"
|
||||||
(change)="searchByOption()"
|
(change)="searchByOption()"
|
||||||
|
(keyup.enter)="$event.stopPropagation()"
|
||||||
(click)="$event.stopPropagation()"
|
(click)="$event.stopPropagation()"
|
||||||
>
|
>
|
||||||
{{ option.key | translate }}
|
{{ option.key | translate }}
|
||||||
|
@ -89,7 +89,7 @@ export class FavoritesPageApi {
|
|||||||
return Promise.resolve(isFavorite);
|
return Promise.resolve(isFavorite);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
return Utils.retryCall(favorite);
|
return await Utils.retryCall(favorite);
|
||||||
} catch (error) {}
|
} catch (error) {}
|
||||||
return isFavorite;
|
return isFavorite;
|
||||||
}
|
}
|
||||||
@ -112,7 +112,7 @@ export class FavoritesPageApi {
|
|||||||
return Promise.resolve(totalItems);
|
return Promise.resolve(totalItems);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
return Utils.retryCall(favoriteFiles);
|
return await Utils.retryCall(favoriteFiles);
|
||||||
} catch {}
|
} catch {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -125,7 +125,7 @@ export class FileActionsApi {
|
|||||||
return Promise.resolve(isLocked);
|
return Promise.resolve(isLocked);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
return Utils.retryCall(locked, data.retry);
|
return await Utils.retryCall(locked, data.retry);
|
||||||
} catch {}
|
} catch {}
|
||||||
return isLocked;
|
return isLocked;
|
||||||
}
|
}
|
||||||
|
@ -48,7 +48,7 @@ export class NodesApi {
|
|||||||
aspectNames: string[] = null
|
aspectNames: string[] = null
|
||||||
): Promise<NodeEntry | null> {
|
): Promise<NodeEntry | null> {
|
||||||
try {
|
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) {
|
} catch (error) {
|
||||||
console.error(`${this.constructor.name} ${this.createFolder.name}`, error);
|
console.error(`${this.constructor.name} ${this.createFolder.name}`, error);
|
||||||
return null;
|
return null;
|
||||||
@ -65,7 +65,7 @@ export class NodesApi {
|
|||||||
aspectNames: string[] = null
|
aspectNames: string[] = null
|
||||||
): Promise<NodeEntry> {
|
): Promise<NodeEntry> {
|
||||||
try {
|
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) {
|
} catch (error) {
|
||||||
console.error(`${this.constructor.name} ${this.createFile.name}`, error);
|
console.error(`${this.constructor.name} ${this.createFile.name}`, error);
|
||||||
return null;
|
return null;
|
||||||
@ -74,7 +74,7 @@ export class NodesApi {
|
|||||||
|
|
||||||
async createFiles(names: string[], relativePath = '/'): Promise<NodePaging> {
|
async createFiles(names: string[], relativePath = '/'): Promise<NodePaging> {
|
||||||
try {
|
try {
|
||||||
return this.createContent({ files: names }, relativePath);
|
return await this.createContent({ files: names }, relativePath);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(`${this.constructor.name} ${this.createFiles.name}: ${error}`);
|
console.error(`${this.constructor.name} ${this.createFiles.name}: ${error}`);
|
||||||
return null;
|
return null;
|
||||||
@ -83,7 +83,7 @@ export class NodesApi {
|
|||||||
|
|
||||||
async createFolders(names: string[], relativePath = '/'): Promise<NodePaging> {
|
async createFolders(names: string[], relativePath = '/'): Promise<NodePaging> {
|
||||||
try {
|
try {
|
||||||
return this.createContent({ folders: names }, relativePath);
|
return await this.createContent({ folders: names }, relativePath);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(`${this.constructor.name} ${this.createFolders.name}: ${error}`);
|
console.error(`${this.constructor.name} ${this.createFolders.name}: ${error}`);
|
||||||
return null;
|
return null;
|
||||||
|
@ -50,7 +50,7 @@ export class QueriesApi {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
return Utils.retryCall(sites);
|
return await Utils.retryCall(sites);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(`QueriesApi waitForSites : catch : `);
|
console.error(`QueriesApi waitForSites : catch : `);
|
||||||
console.error(`\tExpected: ${data.expect} items, but found ${error}`);
|
console.error(`\tExpected: ${data.expect} items, but found ${error}`);
|
||||||
|
@ -73,7 +73,7 @@ export class SearchPageApi {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
return Utils.retryCall(searchFiles);
|
return await Utils.retryCall(searchFiles);
|
||||||
} catch {}
|
} catch {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -89,7 +89,7 @@ export class SharedLinksApi {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
return Utils.retryCall(sharedFile);
|
return await Utils.retryCall(sharedFile);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(`SharedLinksApi waitForFilesToBeShared : catch : ${error}`);
|
console.error(`SharedLinksApi waitForFilesToBeShared : catch : ${error}`);
|
||||||
console.error(`\tWait timeout reached waiting for files to be shared`);
|
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) {
|
} catch (error) {
|
||||||
console.error(`SharedLinksApi waitForFilesToNotBeShared : catch : ${error}`);
|
console.error(`SharedLinksApi waitForFilesToNotBeShared : catch : ${error}`);
|
||||||
console.error(`\tWait timeout reached waiting for files to no longer be shared`);
|
console.error(`\tWait timeout reached waiting for files to no longer be shared`);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user