Issue 53: Allow to use treeAttribute as external key#68
Issue 53: Allow to use treeAttribute as external key#68mikehaertl wants to merge 1 commit intocreocoder:masterfrom
Conversation
6e86f13 to
5796682
Compare
5796682 to
17b9e62
Compare
There was a problem hiding this comment.
@creocoder Before merging, maybe you can explain why at this point there is no tree with tree Id 10 here. It is created in the previous test and the DB is not cleared as far as I can see. I'm still quite confused about the state of the DB for each test. I only came up with this solution by trial and error.
|
@creocoder Any news on this? |
|
@mikehaertl In general fix is much more complex than introduced in that PR. So i'll take this ticket myself. I'll explain why. There should be special "externalRoots" mode. And behavior should take that into account. For example |
|
Hmm, can you explain that a bit more? I don't think that such a mode is really neccessary. And why do you think that The only problem i can see is something like this: The last call to |
|
@mikehaertl Seems you misunderstood original issue. External roots mean roots in different table. So no roots in NS table at all. Your PR is about allow use custom ids for roots, but roots is still exists inside NS table. This not solve original issue. |
|
Hmm. But won't you always need a root node to have a consistent tree in your node table? |
Fix for issue #53