mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
[ACS-5994] Remove redundant deleteNodes method from e2e (#3587)
* [ACS-5994] remove redundant deleteNodes method [ci:force] * [link-adf:dev-mmaliarchuk/ACS-5994-fix-jsApi-deleteNodes][affected:*][ci:force] * rebase
This commit is contained in:
committed by
GitHub
parent
ff57112d99
commit
3f182a5a68
@@ -166,9 +166,7 @@ export class NodesApi extends RepoApi {
|
||||
async deleteNodesById(ids: string[], permanent: boolean = true): Promise<void> {
|
||||
try {
|
||||
await this.apiAuth();
|
||||
for (const id of ids) {
|
||||
await this.nodesApi.deleteNode(id, { permanent });
|
||||
}
|
||||
await this.nodesApi.deleteNodes(ids, { permanent });
|
||||
} catch (error) {
|
||||
this.handleError(`${this.constructor.name} ${this.deleteNodesById.name}`, error);
|
||||
}
|
||||
|
@@ -69,21 +69,6 @@ export class UserActions {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Delete multiple nodes.
|
||||
* @param nodeIds The list of node IDs to delete.
|
||||
* @param permanent Delete permanently, without moving to the trashcan? (default: true)
|
||||
*/
|
||||
async deleteNodes(nodeIds: string[], permanent: boolean = true): Promise<any> {
|
||||
try {
|
||||
for (const nodeId of nodeIds) {
|
||||
await this.nodesApi.deleteNode(nodeId, { permanent });
|
||||
}
|
||||
} catch (error) {
|
||||
this.handleError('User Actions - deleteNodes failed : ', error);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Empties the trashcan. Uses multiple batches 1000 nodes each.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user