mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-31 17:38:28 +00:00
Try latest ACS com to see if e2e are passing (#1248)
* use latest ACS com * add workaround for REPO-4772 * due to the workaround done for REPO-4772, files now have an initial version set to MAJOR 1.0 * add workaround for REPO-4772 for bulk create files * Get ACS log if something goes wrong * wait for the dialog to close only in specific cases * Import Custom Model into ACS. Update proxy to work with Share.
This commit is contained in:
@@ -33,6 +33,7 @@ export class NodeBodyCreate {
|
||||
public name: string,
|
||||
public nodeType: string,
|
||||
public relativePath: string = '/',
|
||||
public aspectNames?: string[], // workaround for REPO-4772
|
||||
public properties?: any[]
|
||||
) {}
|
||||
}
|
||||
|
@@ -35,6 +35,7 @@ export interface NodeContentTree {
|
||||
|
||||
export function flattenNodeContentTree(content: NodeContentTree, relativePath: string = '/'): NodeBodyCreate[] {
|
||||
const { name, files, folders, title, description } = content;
|
||||
const aspectNames: string[] = ['cm:versionable'];
|
||||
let data: NodeBodyCreate[] = [];
|
||||
let properties: any;
|
||||
|
||||
@@ -75,7 +76,8 @@ export function flattenNodeContentTree(content: NodeContentTree, relativePath: s
|
||||
.map((filename: string): NodeBodyCreate => ({
|
||||
nodeType: NODE_TYPE_FILE,
|
||||
name: filename,
|
||||
relativePath
|
||||
relativePath,
|
||||
aspectNames
|
||||
}));
|
||||
|
||||
data = data.concat(filesData);
|
||||
|
@@ -222,7 +222,8 @@ export class NodesApi extends RepoApi {
|
||||
'cm:title': title,
|
||||
'cm:description': description,
|
||||
'cm:author': author
|
||||
}
|
||||
},
|
||||
aspectNames: ['cm:versionable'] // workaround for REPO-4772
|
||||
};
|
||||
if (imageProps) {
|
||||
nodeBody.properties = Object.assign(nodeBody.properties, imageProps);
|
||||
|
Reference in New Issue
Block a user