Closed kwhitley closed 9 years ago
Compared to (working):
tree.setOptions({ log: true }).grow([
{ 'foo': 'bar', 'logs:id': 'abc', 'logs:a:b': 1 },
{ 'foo': 'bar', 'logs:id': 'abc', 'logs:a:b': 2 },
{ 'foo': 'baz', 'logs:id': 'abc', 'logs:a:b': 3 },
]);
SIGNATURE> { nodes:
[ { path: '',
attributes: [ { name: 'foo', key: 'foo' } ],
blueprint: [ { name: 'foo', key: 'foo' } ],
isCollection: true,
name: undefined,
depth: 0,
parent: '' },
{ path: 'logs',
attributes: [ { name: 'id', key: 'logs:id' } ],
blueprint: [ { name: 'id', key: 'logs:id' } ],
isCollection: true,
name: 'logs',
depth: 1,
parent: '' },
{ path: 'logs:a',
attributes: [ { name: 'b', key: 'logs:a:b' } ],
blueprint: [ { name: 'b', key: 'logs:a:b' } ],
isCollection: false,
name: 'a',
depth: 2,
parent: 'logs' } ],
type: 'object',
isFixed: false }
PROCESSING NODE> { path: '',
attributes: [ { name: 'foo', key: 'foo' } ],
blueprint: [ { name: 'foo', key: 'foo' } ],
isCollection: true,
name: undefined,
depth: 0,
parent: '' }
creating attribute "foo" within blueprint baz
creating attribute "foo" within extended blueprint baz
EXTENDED BLUEPRINT> { foo: 'baz' }
BLUEPRINT> { foo: 'baz' }
PARENT TRAIL NOT FOUND (ROOT?)
PROCESSING NODE> { path: 'logs',
attributes: [ { name: 'id', key: 'logs:id' } ],
blueprint: [ { name: 'id', key: 'logs:id' } ],
isCollection: true,
name: 'logs',
depth: 1,
parent: '' }
creating attribute "id" within blueprint abc
creating attribute "id" within extended blueprint abc
EXTENDED BLUEPRINT> { id: 'abc' }
BLUEPRINT> { id: 'abc' }
inserting into collection node { foo: 'baz' }
PROCESSING NODE> { path: 'logs:a',
attributes: [ { name: 'b', key: 'logs:a:b' } ],
blueprint: [ { name: 'b', key: 'logs:a:b' } ],
isCollection: false,
name: 'a',
depth: 2,
parent: 'logs' }
creating attribute "b" within blueprint 3
creating attribute "b" within extended blueprint 3
EXTENDED BLUEPRINT> { b: 3 }
BLUEPRINT> { b: 3 }
inserting into non-collection node
create object
BASE> [ { foo: 'bar', logs: [ { id: 'abc', a: { b: 2 } } ] },
{ foo: 'baz', logs: [ { id: 'abc', a: { b: 3 } } ] } ]
STATS> { time: { total: 18, signatures: 2 }, rows: 3, sources: 1 }
fails with output: