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:
Martin Muller
2019-11-18 18:08:32 +01:00
committed by GitHub
parent fd71e2daf4
commit b228ca2f64
22 changed files with 301 additions and 142 deletions

View File

@@ -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[]
) {}
}

View File

@@ -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);

View File

@@ -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);